spree_zone_pricing 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ <% content_for :sub_menu do %>
2
+ <ul id="sub_nav" data-hook="admin_product_sub_tabs">
3
+ <%= tab :products, :match_path => '/products' %>
4
+ <%= tab :option_types, :match_path => '/option_types' %>
5
+ <%= tab :properties %>
6
+ <%= tab :prototypes %>
7
+ <%= tab :prototypes %>
8
+ </ul>
9
+ <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_zone_pricing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -20,11 +20,7 @@ extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
22
  - app/models/zone_price.rb
23
- - app/views/admin/shared/_zone_prices.html.erb
24
- - app/views/admin/shared/_zp_product_tab.html.erb
25
- - app/views/admin/variants/zone_prices.html.erb
26
- - app/views/shared/_country_select.html.erb
27
- - app/views/shared/_store_menu.html.erb
23
+ - app/views/spree/admin/shared/_product_sub_menu.html.erb
28
24
  - config/routes.rb
29
25
  - config/locales/en_spree.yml
30
26
  - db/seeds.rb
@@ -1,20 +0,0 @@
1
- <table class="index">
2
- <thead>
3
- <tr>
4
- <th><%= t("zone") %></th>
5
- <th><%= t("price") %></th>
6
- </tr>
7
- </thead>
8
- <tbody id="zone_prices">
9
- <% for zone in Zone.all %>
10
- <tr>
11
- <td>
12
- <%= zone.name %>
13
- </td>
14
- <td>
15
- <%= text_field_tag "variant[zone_price_attributes][#{zone.id}][price]", zone.zone_prices.find_by_variant_id(@variant.id).try(:price) %>
16
- </td>
17
- </tr>
18
- <% end %>
19
- </tbody>
20
- </table>
@@ -1,5 +0,0 @@
1
- <% if url_options_authenticate?(:controller => 'admin/taxons') %>
2
- <li <%= ' class="active"' if current == t("zone_pricing") %>>
3
- <%= link_to(t("zone_pricing"), zone_prices_admin_product_variant_url(@product, @product.master)) %>
4
- </li>
5
- <% end %>
@@ -1,15 +0,0 @@
1
- <%= render :partial => 'admin/shared/product_sub_menu' %>
2
-
3
- <%= render :partial => 'admin/shared/product_tabs', :locals => {:current => t("zone_pricing")} %>
4
-
5
- <%= error_messages_for :variant %>
6
-
7
- <% form_for(:variant, :url => admin_product_variant_url(@product, @variant), :html => { :method => :put }) do |f| %>
8
-
9
- <h3><%= t("zone_pricing") %></h3>
10
- <%= render 'admin/shared/zone_prices' %>
11
- <br/><br/>
12
-
13
- <%= render :partial => 'admin/shared/edit_resource_links' %>
14
- <% end %>
15
-
@@ -1,7 +0,0 @@
1
- <% form_tag :controller => 'countries', :action => 'set' do %>
2
- <%= label_tag t('country') %>
3
- <%= select_tag 'id',
4
- options_for_select(Country.order_by_name.collect{ |c| [c.name, c.id] }, get_user_country_id),
5
- :onchange => "this.form.submit();" %>
6
- <%= content_tag(:noscript, submit_tag(t('change'))) %>
7
- <% end %>
@@ -1,4 +0,0 @@
1
- <li><%= link_to t("home") , root_path %></li>
2
- <li class="cart-indicator"><%= link_to_cart %></li>
3
- <br>
4
- <li><%= render 'shared/country_select' %></li>