spree_backend 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/admin/address_states.js +19 -15
- data/app/assets/javascripts/admin/admin.js.erb +1 -5
- data/app/assets/javascripts/admin/nested-attribute.js +15 -11
- data/app/assets/javascripts/admin/option_type_autocomplete.js.erb +20 -16
- data/app/assets/javascripts/admin/orders/edit.js +17 -12
- data/app/assets/javascripts/admin/orders/edit_form.js +16 -12
- data/app/assets/javascripts/admin/product_picker.js +22 -16
- data/app/assets/javascripts/admin/promotions.js +34 -35
- data/app/assets/javascripts/admin/shipments.js.erb +35 -27
- data/app/assets/javascripts/admin/spree-select2.js.erb +2 -1
- data/app/assets/javascripts/admin/spree_backend.js +0 -1
- data/app/assets/javascripts/admin/states.js +10 -8
- data/app/assets/javascripts/admin/stock_management.js.coffee +2 -2
- data/app/assets/javascripts/admin/taxon_autocomplete.js.erb +32 -19
- data/app/assets/javascripts/admin/user_picker.js +21 -13
- data/app/assets/javascripts/admin/variant_autocomplete.js.erb +16 -4
- data/app/assets/stylesheets/admin/plugins/_select2.scss +5 -3
- data/app/assets/stylesheets/admin/sections/_alerts.scss +27 -0
- data/app/assets/stylesheets/admin/spree_admin.scss +1 -0
- data/app/controllers/spree/admin/base_controller.rb +11 -13
- data/app/controllers/spree/admin/images_controller.rb +4 -5
- data/app/controllers/spree/admin/mail_methods_controller.rb +1 -1
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +1 -1
- data/app/controllers/spree/admin/orders_controller.rb +3 -7
- data/app/controllers/spree/admin/payments_controller.rb +1 -1
- data/app/controllers/spree/admin/resource_controller.rb +6 -2
- data/app/helpers/spree/admin/navigation_helper.rb +4 -2
- data/app/helpers/spree/admin/stock_locations_helper.rb +15 -0
- data/app/views/spree/admin/countries/index.html.erb +2 -2
- data/app/views/spree/admin/general_settings/edit.html.erb +3 -3
- data/app/views/spree/admin/option_types/index.html.erb +15 -5
- data/app/views/spree/admin/orders/_shipment.html.erb +2 -2
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +8 -8
- data/app/views/spree/admin/orders/index.html.erb +4 -3
- data/app/views/spree/admin/payment_methods/index.html.erb +7 -4
- data/app/views/spree/admin/payments/_form.html.erb +1 -1
- data/app/views/spree/admin/payments/show.html.erb +2 -2
- data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +1 -1
- data/app/views/spree/admin/product_properties/index.html.erb +9 -13
- data/app/views/spree/admin/products/index.html.erb +3 -3
- data/app/views/spree/admin/products/stock.html.erb +10 -8
- data/app/views/spree/admin/promotions/index.html.erb +6 -6
- data/app/views/spree/admin/properties/index.html.erb +12 -5
- data/app/views/spree/admin/prototypes/_form.html.erb +1 -1
- data/app/views/spree/admin/prototypes/index.html.erb +9 -2
- data/app/views/spree/admin/reports/index.html.erb +2 -3
- data/app/views/spree/admin/shared/_address_form.html.erb +11 -11
- data/app/views/spree/admin/shared/_alert.html.erb +3 -3
- data/app/views/spree/admin/shared/_routes.html.erb +1 -0
- data/app/views/spree/admin/shared/_tabs.html.erb +2 -2
- data/app/views/spree/admin/shared/_translations.html.erb +3 -0
- data/app/views/spree/admin/shipping_categories/index.html.erb +9 -2
- data/app/views/spree/admin/shipping_methods/_form.html.erb +10 -0
- data/app/views/spree/admin/shipping_methods/index.html.erb +9 -5
- data/app/views/spree/admin/stock_locations/_form.html.erb +15 -11
- data/app/views/spree/admin/stock_locations/index.html.erb +9 -6
- data/app/views/spree/admin/stock_movements/index.html.erb +7 -0
- data/app/views/spree/admin/stock_transfers/index.html.erb +19 -18
- data/app/views/spree/admin/stock_transfers/new.html.erb +24 -21
- data/app/views/spree/admin/stock_transfers/show.html.erb +13 -9
- data/app/views/spree/admin/tax_categories/index.html.erb +12 -8
- data/app/views/spree/admin/tax_rates/_form.html.erb +8 -8
- data/app/views/spree/admin/tax_rates/index.html.erb +12 -11
- data/app/views/spree/admin/taxonomies/_list.html.erb +5 -5
- data/app/views/spree/admin/taxonomies/index.html.erb +11 -4
- data/app/views/spree/admin/taxons/_form.html.erb +6 -5
- data/app/views/spree/admin/taxons/edit.html.erb +17 -2
- data/app/views/spree/admin/trackers/index.html.erb +10 -10
- data/app/views/spree/admin/variants/_autocomplete.js.erb +3 -3
- data/app/views/spree/admin/variants/index.html.erb +9 -7
- data/app/views/spree/admin/zones/_country_members.html.erb +10 -0
- data/app/views/spree/admin/zones/_form.html.erb +4 -1
- data/app/views/spree/admin/zones/_state_members.html.erb +10 -0
- data/app/views/spree/admin/zones/edit.html.erb +3 -7
- data/app/views/spree/admin/zones/index.html.erb +11 -10
- data/vendor/assets/javascripts/trunk8.js +362 -226
- metadata +11 -11
- data/app/views/spree/admin/zones/_country_member.html.erb +0 -5
- data/app/views/spree/admin/zones/_member_type.html.erb +0 -19
- data/app/views/spree/admin/zones/_state_member.html.erb +0 -5
- data/vendor/assets/javascripts/jquery.horizontalNav.js +0 -141
@@ -1,8 +1,6 @@
|
|
1
|
-
<%= render
|
2
|
-
|
3
|
-
<%= render
|
4
|
-
|
5
|
-
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @product } %>
|
1
|
+
<%= render 'spree/admin/shared/product_sub_menu' %>
|
2
|
+
<%= render 'spree/admin/shared/product_tabs', :current => 'Product Properties' %>
|
3
|
+
<%= render 'spree/shared/error_messages', :target => @product %>
|
6
4
|
|
7
5
|
<% content_for :page_actions do %>
|
8
6
|
<ul class="tollbar inline-menu">
|
@@ -12,7 +10,7 @@
|
|
12
10
|
<li>
|
13
11
|
<span id="new_ptype_link">
|
14
12
|
<%= link_to Spree.t(:select_from_prototype), available_admin_prototypes_url, :remote => true, 'data-update' => 'prototypes', :class => 'button icon-copy' %>
|
15
|
-
</span>
|
13
|
+
</span>
|
16
14
|
</li>
|
17
15
|
</ul>
|
18
16
|
<% end %>
|
@@ -20,10 +18,10 @@
|
|
20
18
|
<%= form_for @product, :url => admin_product_url(@product), :method => :put do |f| %>
|
21
19
|
<fieldset class="no-border-top">
|
22
20
|
<div class="add_product_properties" data-hook="add_product_properties"></div>
|
23
|
-
|
21
|
+
|
24
22
|
<div id="prototypes" data-hook></div>
|
25
23
|
<%= image_tag 'select2-spinner.gif', :plugin => 'spree', :style => 'display:none;', :id => 'busy_indicator' %>
|
26
|
-
|
24
|
+
|
27
25
|
<table class="index sortable" data-hook data-sortable-link="<%= update_positions_admin_product_product_properties_url %>">
|
28
26
|
<thead>
|
29
27
|
<tr data-hook="product_properties_header">
|
@@ -34,12 +32,12 @@
|
|
34
32
|
</thead>
|
35
33
|
<tbody id="product_properties" data-hook>
|
36
34
|
<%= f.fields_for :product_properties do |pp_form| %>
|
37
|
-
<%= render
|
35
|
+
<%= render 'product_property_fields', :f => pp_form %>
|
38
36
|
<% end %>
|
39
37
|
</tbody>
|
40
38
|
</table>
|
41
39
|
|
42
|
-
<%= render
|
40
|
+
<%= render 'spree/admin/shared/edit_resource_links' %>
|
43
41
|
|
44
42
|
<%= hidden_field_tag 'clear_product_properties', 'true' %>
|
45
43
|
</fieldset>
|
@@ -47,8 +45,7 @@
|
|
47
45
|
|
48
46
|
<%= javascript_tag do -%>
|
49
47
|
var properties = <%= raw(@properties.to_json) %>;
|
50
|
-
|
51
|
-
$("#product_properties input.autocomplete").live("keydown", function(){
|
48
|
+
$('#product_properties').on('keydown', 'input.autocomplete', function() {
|
52
49
|
already_auto_completed = $(this).is('ac_input');
|
53
50
|
if (!already_auto_completed) {
|
54
51
|
$(this).autocomplete({source: properties});
|
@@ -56,4 +53,3 @@
|
|
56
53
|
}
|
57
54
|
});
|
58
55
|
<% end -%>
|
59
|
-
|
@@ -93,10 +93,10 @@
|
|
93
93
|
</tbody>
|
94
94
|
</table>
|
95
95
|
<% else %>
|
96
|
-
<div class="no-objects-found">
|
97
|
-
<%= Spree.t(:
|
96
|
+
<div class="alpha twelve columns no-objects-found">
|
97
|
+
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/product')) %>,
|
98
|
+
<%= link_to Spree.t(:add_one), spree.new_admin_product_path %>!
|
98
99
|
</div>
|
99
100
|
<% end %>
|
100
101
|
|
101
102
|
<%= paginate @collection %>
|
102
|
-
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<thead>
|
21
21
|
<tr data-hook="admin_product_stock_management_index_headers">
|
22
22
|
<th><%= Spree.t(:variant) %></th>
|
23
|
-
<th colspan="
|
23
|
+
<th colspan="4"><%= Spree.t(:stock_location_info) %></th>
|
24
24
|
</tr>
|
25
25
|
</thead>
|
26
26
|
<tbody>
|
@@ -37,23 +37,23 @@
|
|
37
37
|
<td colspan="4" class="stock_location_info">
|
38
38
|
<table>
|
39
39
|
<colgroup>
|
40
|
-
<col style="width:
|
41
|
-
<col style="width: 20%" />
|
40
|
+
<col style="width: 45%" />
|
42
41
|
<col style="width: 20%" />
|
43
42
|
<col style="width: 20%" />
|
43
|
+
<col style="width: 15%" />
|
44
44
|
</colgroup>
|
45
45
|
<thead>
|
46
46
|
<th><%= Spree.t(:stock_location) %></th>
|
47
47
|
<th><%= Spree.t(:count_on_hand) %></th>
|
48
48
|
<th><%= Spree.t(:backorderable) %></th>
|
49
|
-
<th></th>
|
49
|
+
<th class="actions"></th>
|
50
50
|
</thead>
|
51
51
|
<tbody>
|
52
52
|
<% variant.stock_items.each do |item| %>
|
53
53
|
<% next unless @stock_locations.include?(item.stock_location) %>
|
54
54
|
|
55
55
|
<tr id="stock-item-<%= item.id %>" class="<%= cycle('odd', 'even', :name => 'stock_locations')%>">
|
56
|
-
<td><%= item.stock_location.name %></td>
|
56
|
+
<td class="align-center"><%= item.stock_location.name %></td>
|
57
57
|
<td class="align-center"><%= item.count_on_hand %></td>
|
58
58
|
<td class="align-center">
|
59
59
|
<%= form_tag admin_stock_item_path(item), method: :put, class: 'toggle_stock_item_backorderable' do %>
|
@@ -62,9 +62,11 @@
|
|
62
62
|
id: "stock_item_backorderable_#{item.stock_location.id}" %>
|
63
63
|
<% end %>
|
64
64
|
</td>
|
65
|
-
<td class="
|
66
|
-
<%= link_to
|
67
|
-
|
65
|
+
<td class="actions">
|
66
|
+
<%= link_to(icon('delete'), [:admin, item],
|
67
|
+
method: :delete, remote: true, confirm: Spree.t(:are_you_sure),
|
68
|
+
class: 'icon_link with-tip icon-trash no-text',
|
69
|
+
title: Spree.t(:remove), data: { action: :remove }) %>
|
68
70
|
</td>
|
69
71
|
</tr>
|
70
72
|
<% end %>
|
@@ -8,12 +8,7 @@
|
|
8
8
|
</li>
|
9
9
|
<% end %>
|
10
10
|
|
11
|
-
<%
|
12
|
-
<div class="no-objects-found">
|
13
|
-
<%= Spree.t(:no_promotions_found) %>.
|
14
|
-
<%= link_to Spree.t(:add_one), spree.new_admin_promotion_path %>!
|
15
|
-
</div>
|
16
|
-
<% else %>
|
11
|
+
<% if @promotions.any? %>
|
17
12
|
<table class="index">
|
18
13
|
<colgroup>
|
19
14
|
<col style="width: 20%">
|
@@ -49,4 +44,9 @@
|
|
49
44
|
<% end %>
|
50
45
|
</tbody>
|
51
46
|
</table>
|
47
|
+
<% else %>
|
48
|
+
<div class="alpha twelve columns no-objects-found">
|
49
|
+
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/promotion')) %>,
|
50
|
+
<%= link_to Spree.t(:add_one), spree.new_admin_promotion_path %>!
|
51
|
+
</div>
|
52
52
|
<% end %>
|
@@ -8,15 +8,16 @@
|
|
8
8
|
</li>
|
9
9
|
<% end %>
|
10
10
|
|
11
|
-
<%= render
|
11
|
+
<%= render 'spree/admin/shared/product_sub_menu' %>
|
12
12
|
|
13
13
|
<div id="new_property"></div>
|
14
14
|
|
15
|
+
<% if @properties.any? %>
|
15
16
|
<table class="index" id='listing_properties' data-hook>
|
16
17
|
<colgroup>
|
18
|
+
<col style="width: 40%">
|
17
19
|
<col style="width: 45%">
|
18
|
-
<col style="width:
|
19
|
-
<col style="width: 10%">
|
20
|
+
<col style="width: 15%">
|
20
21
|
</colgroup>
|
21
22
|
<thead>
|
22
23
|
<tr data-hook="listing_properties_header">
|
@@ -28,8 +29,8 @@
|
|
28
29
|
<tbody>
|
29
30
|
<% @properties.each do |property| %>
|
30
31
|
<tr id="<%= spree_dom_id property %>" data-hook="listing_properties_row" class="<%= cycle('odd', 'even')%>">
|
31
|
-
<td><%= property.name %></td>
|
32
|
-
<td><%= property.presentation %></td>
|
32
|
+
<td style="padding-left:1em"><%= property.name %></td>
|
33
|
+
<td style="padding-left:1em"><%= property.presentation %></td>
|
33
34
|
<td class="actions">
|
34
35
|
<%= link_to_edit(property, :no_text => true) %>
|
35
36
|
<%= link_to_delete(property, :no_text => true) %>
|
@@ -38,4 +39,10 @@
|
|
38
39
|
<% end %>
|
39
40
|
</tbody>
|
40
41
|
</table>
|
42
|
+
<% else %>
|
43
|
+
<div class="alpha twelve columns no-objects-found">
|
44
|
+
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/property')) %>,
|
45
|
+
<%= link_to Spree.t(:add_one), spree.new_admin_property_path %>!
|
46
|
+
</div>
|
47
|
+
<% end %>
|
41
48
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div data-hook="admin_prototype_form_fields" class="row">
|
2
2
|
<div class="alpha four columns">
|
3
3
|
<%= f.field_container :name do %>
|
4
|
-
<%= f.label :name, Spree.t(:name) %>
|
4
|
+
<%= f.label :name, Spree.t(:name) %> <span class="required">*</span><br />
|
5
5
|
<%= f.text_field :name, :class => 'fullwidth' %>
|
6
6
|
<%= f.error_message_on :name %>
|
7
7
|
<% end %>
|
@@ -8,13 +8,14 @@
|
|
8
8
|
</li>
|
9
9
|
<% end %>
|
10
10
|
|
11
|
-
<%= render
|
11
|
+
<%= render 'spree/admin/shared/product_sub_menu' %>
|
12
12
|
|
13
13
|
<%= image_tag 'select2-spinner.gif', :plugin => 'spree', :style => 'display: none', :id => 'busy_indicator' %>
|
14
14
|
|
15
15
|
<%# Placeholder for new prototype form %>
|
16
16
|
<div id="new_prototype"></div>
|
17
17
|
|
18
|
+
<% if @prototypes.any? %>
|
18
19
|
<table class="index" id='listing_prototypes' data-hook>
|
19
20
|
<colgroup>
|
20
21
|
<col style="width: 90%">
|
@@ -29,7 +30,7 @@
|
|
29
30
|
<tbody>
|
30
31
|
<% @prototypes.each do |prototype| %>
|
31
32
|
<tr id="<%= spree_dom_id prototype %>" data-hook="prototypes_row" class="<%= cycle('odd', 'even')%>">
|
32
|
-
<td><%= prototype.name %></td>
|
33
|
+
<td style="padding-left:1em"><%= prototype.name %></td>
|
33
34
|
<td class="actions">
|
34
35
|
<%= link_to_edit(prototype, :no_text => true, :class => 'admin_edit_prototype') %>
|
35
36
|
<%= link_to_delete(prototype, :no_text => true) %>
|
@@ -38,3 +39,9 @@
|
|
38
39
|
<% end %>
|
39
40
|
</tbody>
|
40
41
|
</table>
|
42
|
+
<% else %>
|
43
|
+
<div class="alpha twelve columns no-objects-found">
|
44
|
+
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/prototype')) %>,
|
45
|
+
<%= link_to Spree.t(:add_one), spree.new_admin_prototype_path %>!
|
46
|
+
</div>
|
47
|
+
<% end %>
|
@@ -12,10 +12,9 @@
|
|
12
12
|
<tbody>
|
13
13
|
<% @reports.each do |key, value| %>
|
14
14
|
<tr data-hook="reports_row">
|
15
|
-
<td><%= link_to value[:name], send("#{key}_admin_reports_url".to_sym) %></td>
|
16
|
-
<td><%= value[:description] %></td>
|
15
|
+
<td class="align-center"><%= link_to value[:name], send("#{key}_admin_reports_url".to_sym) %></td>
|
16
|
+
<td style="padding-left:1em"><%= value[:description] %></td>
|
17
17
|
</tr>
|
18
18
|
<% end %>
|
19
19
|
</tbody>
|
20
20
|
</table>
|
21
|
-
|
@@ -13,52 +13,52 @@
|
|
13
13
|
|
14
14
|
<div id="<%= is_shipping_address ? 'shipping' : 'billing' %>" style="display: <%= (use_billing && (!(@order.bill_address.empty? && @order.ship_address.empty?) && @order.bill_address.eql?(@order.ship_address))) ? 'none' : 'block' %>" data-hook="address_fields">
|
15
15
|
<div class="field <%= "#{shipping_or_billing}-row" %>">
|
16
|
-
<%= f.label :firstname, Spree.t(:first_name)
|
16
|
+
<%= f.label :firstname, Spree.t(:first_name) %>
|
17
17
|
<%= f.text_field :firstname, :class => 'fullwidth' %>
|
18
18
|
</div>
|
19
19
|
<div class="field <%= "#{shipping_or_billing}-row" %>">
|
20
|
-
<%= f.label :lastname, Spree.t(:last_name)
|
20
|
+
<%= f.label :lastname, Spree.t(:last_name) %>
|
21
21
|
<%= f.text_field :lastname, :class => 'fullwidth' %>
|
22
22
|
</div>
|
23
23
|
<% if Spree::Config[:company] %>
|
24
24
|
<div class="field <%= "#{shipping_or_billing}-row" %>">
|
25
|
-
<%= f.label :company, Spree.t(:company)
|
25
|
+
<%= f.label :company, Spree.t(:company) %>
|
26
26
|
<%= f.text_field :company, :class => 'fullwidth' %>
|
27
27
|
</div>
|
28
28
|
<% end %>
|
29
29
|
<div class="field <%= "#{shipping_or_billing}-row" %>">
|
30
|
-
<%= f.label :address1, Spree.t(:street_address)
|
30
|
+
<%= f.label :address1, Spree.t(:street_address) %>
|
31
31
|
<%= f.text_field :address1, :class => 'fullwidth' %>
|
32
32
|
</div>
|
33
33
|
<div class="field <%= "#{shipping_or_billing}-row" %>">
|
34
|
-
<%= f.label :address2, Spree.t(:street_address_2)
|
34
|
+
<%= f.label :address2, Spree.t(:street_address_2) %>
|
35
35
|
<%= f.text_field :address2, :class => 'fullwidth' %>
|
36
36
|
</div>
|
37
37
|
<div class="field <%= "#{shipping_or_billing}-row" %>">
|
38
|
-
<%= f.label :city, Spree.t(:city)
|
38
|
+
<%= f.label :city, Spree.t(:city) %>
|
39
39
|
<%= f.text_field :city, :class => 'fullwidth' %>
|
40
40
|
</div>
|
41
41
|
<div class="field <%= "#{shipping_or_billing}-row" %>">
|
42
|
-
<%= f.label :zipcode, Spree.t(:zip)
|
42
|
+
<%= f.label :zipcode, Spree.t(:zip) %>
|
43
43
|
<%= f.text_field :zipcode, :class => 'fullwidth' %>
|
44
44
|
</div>
|
45
45
|
<div class="field <%= "#{shipping_or_billing}-row" %>">
|
46
|
-
<%= f.label :country_id, Spree.t(:country)
|
46
|
+
<%= f.label :country_id, Spree.t(:country) %>
|
47
47
|
<span id="<%= s_or_b %>country">
|
48
48
|
<%= f.collection_select :country_id, available_countries, :id, :name, {}, {:class => 'select2 fullwidth'} %>
|
49
49
|
</span>
|
50
50
|
</div>
|
51
51
|
<div class="field <%= "#{shipping_or_billing}-row" %>">
|
52
|
-
<%= f.label :state_id, Spree.t(:state)
|
52
|
+
<%= f.label :state_id, Spree.t(:state) %>
|
53
53
|
<span id="<%= s_or_b %>state">
|
54
|
-
<%= f.text_field :state_name,
|
54
|
+
<%= f.text_field :state_name,
|
55
55
|
:style => "display: #{f.object.country.states.empty? ? 'block' : 'none' };",
|
56
56
|
:disabled => !f.object.country.states.empty?, :class => 'fullwidth state_name' %>
|
57
57
|
<%= f.collection_select :state_id, f.object.country.states.sort, :id, :name, {:include_blank => true}, {:class => 'select2 fullwidth', :style => "display: #{f.object.country.states.empty? ? 'none' : 'block' };", :disabled => f.object.country.states.empty?} %>
|
58
58
|
</span>
|
59
59
|
</div>
|
60
60
|
<div class="field <%= "#{shipping_or_billing}-row" %>">
|
61
|
-
<%= f.label :phone, Spree.t(:phone)
|
61
|
+
<%= f.label :phone, Spree.t(:phone) %>
|
62
62
|
<%= f.phone_field :phone, :class => 'fullwidth' %>
|
63
63
|
</div>
|
64
64
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<div class="alert <%= alert
|
2
|
-
<%= alert
|
3
|
-
<%= link_to 'X', spree.dismiss_alert_admin_general_settings_path(:alert_id => alert
|
1
|
+
<div class="alert <%= alert['severity'].downcase %>">
|
2
|
+
<%= alert['message'] %> <%= link_to alert['url_name'], alert['url'] if alert['url'] %>
|
3
|
+
<%= link_to 'X', spree.dismiss_alert_admin_general_settings_path(:alert_id => alert['id']),
|
4
4
|
:remote => true, :method => :post, :class => 'dismiss' %>
|
5
5
|
</div>
|
@@ -6,6 +6,7 @@
|
|
6
6
|
Spree.routes.product_search = "<%= spree.api_products_url(:format => 'json') %>";
|
7
7
|
Spree.routes.option_type_search = "<%= spree.api_option_types_url(:format => 'json') %>";
|
8
8
|
Spree.routes.orders_api = "<%= spree.api_orders_url(:format => 'json') %>";
|
9
|
+
Spree.routes.checkouts_api = "<%= spree.api_checkouts_url(:format => 'json') %>";
|
9
10
|
Spree.routes.stock_locations_api = "<%= spree.api_stock_locations_url(:format => 'json') %>";
|
10
11
|
Spree.routes.variants_api = "<%= spree.api_variants_url(:format => 'json') %>";
|
11
12
|
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<% if can? :admin, Spree::Admin::ReportsController %>
|
8
8
|
<%= tab :reports, :icon => 'icon-file' %>
|
9
9
|
<% end %>
|
10
|
-
<%= tab :configurations, :general_settings, :mail_methods, :tax_categories, :zones, :states, :payment_methods, :taxonomies, :shipping_methods, :trackers, :label => 'configuration', :icon => 'icon-wrench', :url => spree.edit_admin_general_settings_path %>
|
10
|
+
<%= tab :configurations, :general_settings, :mail_methods, :image_settings, :tax_categories, :tax_rates, :tax_settings, :zones, :countries, :states, :payment_methods, :taxonomies, :shipping_methods, :shipping_categories, :stock_transfers, :stock_locations, :trackers, :label => 'configuration', :icon => 'icon-wrench', :url => spree.edit_admin_general_settings_path %>
|
11
11
|
<% if can? :admin, Spree::Promotion %>
|
12
12
|
<%= tab(:promotions, :url => spree.admin_promotions_path, :icon => 'icon-bullhorn') %>
|
13
|
-
<% end %>
|
13
|
+
<% end %>
|
@@ -12,6 +12,9 @@
|
|
12
12
|
:cut => Spree.t(:cut),
|
13
13
|
:destroy => Spree.t(:destroy),
|
14
14
|
:edit => Spree.t(:edit),
|
15
|
+
:first_day => Spree.t(:first_day,
|
16
|
+
:scope => 'date_picker',
|
17
|
+
:default => 0).to_i,
|
15
18
|
:loading => Spree.t(:loading),
|
16
19
|
:month_names => I18n.t(:month_names, :scope => :date).reject(&:blank?),
|
17
20
|
:more => Spree.t(:more),
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render 'spree/admin/shared/configuration_menu' %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
4
|
<%= Spree.t(:shipping_categories) %>
|
@@ -10,6 +10,7 @@
|
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
|
13
|
+
<% if @shipping_categories.any? %>
|
13
14
|
<table class="index">
|
14
15
|
<colgroup>
|
15
16
|
<col style="width: 85%">
|
@@ -24,7 +25,7 @@
|
|
24
25
|
<tbody>
|
25
26
|
<% @shipping_categories.each do |shipping_category|%>
|
26
27
|
<tr id="<%= spree_dom_id shipping_category %>" data-hook="category_row" class="<%= cycle('odd', 'even')%>">
|
27
|
-
<td style="width:350px;"><%= shipping_category.name %></td>
|
28
|
+
<td class="align-center" style="width:350px;"><%= shipping_category.name %></td>
|
28
29
|
<td class="actions">
|
29
30
|
<%= link_to_edit shipping_category, :no_text => true %>
|
30
31
|
<%= link_to_delete shipping_category, :no_text => true %>
|
@@ -33,3 +34,9 @@
|
|
33
34
|
<% end %>
|
34
35
|
</tbody>
|
35
36
|
</table>
|
37
|
+
<% else %>
|
38
|
+
<div class="alpha twelve columns no-objects-found">
|
39
|
+
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/shipping_category')) %>,
|
40
|
+
<%= link_to Spree.t(:add_one), spree.new_admin_shipping_category_path %>!
|
41
|
+
</div>
|
42
|
+
<% end %>
|
@@ -15,6 +15,16 @@
|
|
15
15
|
<% end %>
|
16
16
|
</div>
|
17
17
|
|
18
|
+
<div class="alpha omega twelve columns">
|
19
|
+
<div class="alpha six columns">
|
20
|
+
<%= f.field_container :admin_name do %>
|
21
|
+
<%= f.label :admin_name, Spree.t(:internal_name) %><br />
|
22
|
+
<%= f.text_field :admin_name, :class => 'fullwidth', :label => false %>
|
23
|
+
<%= error_message_on :shipping_method, :admin_name %>
|
24
|
+
<% end %>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
|
18
28
|
<div class="alpha twelve columns">
|
19
29
|
<%= f.field_container :tracking_url do %>
|
20
30
|
<%= f.label :tracking_url, Spree.t(:tracking_url) %><br />
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render 'spree/admin/shared/configuration_menu' %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
4
|
<%= Spree.t(:shipping_methods) %>
|
@@ -9,6 +9,7 @@
|
|
9
9
|
<%= button_link_to Spree.t(:new_shipping_method), new_object_url, :icon => 'icon-plus', :id => 'admin_new_shipping_method_link' %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
|
+
|
12
13
|
<% if @shipping_methods.any? %>
|
13
14
|
<table class="index" id='listing_shipping_methods'>
|
14
15
|
<colgroup>
|
@@ -30,9 +31,9 @@
|
|
30
31
|
<tbody>
|
31
32
|
<% @shipping_methods.each do |shipping_method|%>
|
32
33
|
<tr id="<%= spree_dom_id shipping_method %>" data-hook="admin_shipping_methods_index_rows" class="<%= cycle('odd', 'even')%>">
|
33
|
-
<td><%= shipping_method.name %></td>
|
34
|
-
<td><%= shipping_method.zones.collect(&:name).join(", ") if shipping_method.zones %></td>
|
35
|
-
<td><%= shipping_method.calculator.description %></td>
|
34
|
+
<td class="align-center"><%= shipping_method.admin_name + ' / ' if shipping_method.admin_name.present? %><%= shipping_method.name %></td>
|
35
|
+
<td class="align-center"><%= shipping_method.zones.collect(&:name).join(", ") if shipping_method.zones %></td>
|
36
|
+
<td class="align-center"><%= shipping_method.calculator.description %></td>
|
36
37
|
<td class="align-center"><%= shipping_method.display_on.blank? ? Spree.t(:both) : Spree.t(shipping_method.display_on) %></td>
|
37
38
|
<td data-hook="admin_shipping_methods_index_row_actions" class="actions">
|
38
39
|
<%= link_to_edit shipping_method, :no_text => true %>
|
@@ -43,6 +44,9 @@
|
|
43
44
|
</tbody>
|
44
45
|
</table>
|
45
46
|
<% else %>
|
46
|
-
<div class="alpha twelve columns no-objects-found"
|
47
|
+
<div class="alpha twelve columns no-objects-found">
|
48
|
+
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/shipping_method')) %>,
|
49
|
+
<%= link_to Spree.t(:add_one), spree.new_admin_shipping_method_path %>!
|
50
|
+
</div>
|
47
51
|
<% end %>
|
48
52
|
|
@@ -2,8 +2,12 @@
|
|
2
2
|
<div class="row">
|
3
3
|
<div class="alpha twelve columns">
|
4
4
|
<%= f.field_container :name do %>
|
5
|
-
<%= f.label :name, Spree.t(:name) %>
|
5
|
+
<%= f.label :name, Spree.t(:name) %> <span class="required">*</span><br />
|
6
6
|
<%= f.text_field :name, :class => 'fullwidth' %>
|
7
|
+
<% end %><br>
|
8
|
+
<%= f.field_container :admin_name do %>
|
9
|
+
<%= f.label :admin_name, Spree.t(:internal_name) %>
|
10
|
+
<%= f.text_field :admin_name, :class => 'fullwidth', :label => false %>
|
7
11
|
<% end %>
|
8
12
|
</div>
|
9
13
|
<div class="omega four columns">
|
@@ -11,15 +15,15 @@
|
|
11
15
|
<label for="active"><%= Spree.t(:state) %></label>
|
12
16
|
<ul>
|
13
17
|
<li>
|
14
|
-
<%= f.label :active, Spree.t(:active)
|
18
|
+
<%= f.label :active, Spree.t(:active) %>
|
15
19
|
<%= f.check_box :active %>
|
16
20
|
</li>
|
17
21
|
<li>
|
18
|
-
<%= f.label :active, Spree.t(:backorderable_default)
|
22
|
+
<%= f.label :active, Spree.t(:backorderable_default) %>
|
19
23
|
<%= f.check_box :backorderable_default %>
|
20
24
|
</li>
|
21
25
|
<li>
|
22
|
-
<%= f.label :active, Spree.t(:propagate_all_variants)
|
26
|
+
<%= f.label :active, Spree.t(:propagate_all_variants) %>
|
23
27
|
<%= f.check_box :propagate_all_variants %>
|
24
28
|
</li>
|
25
29
|
</ul>
|
@@ -30,27 +34,27 @@
|
|
30
34
|
<div class="row">
|
31
35
|
<div class="alpha four columns">
|
32
36
|
<div class="field ">
|
33
|
-
<%= f.label :address1, Spree.t(:street_address)
|
37
|
+
<%= f.label :address1, Spree.t(:street_address) %>
|
34
38
|
<%= f.text_field :address1, :class => 'fullwidth' %>
|
35
39
|
</div>
|
36
40
|
</div>
|
37
41
|
|
38
42
|
<div class="four columns">
|
39
43
|
<div class="field ">
|
40
|
-
<%= f.label :address2, Spree.t(:street_address_2)
|
44
|
+
<%= f.label :address2, Spree.t(:street_address_2) %>
|
41
45
|
<%= f.text_field :address2, :class => 'fullwidth' %>
|
42
46
|
</div>
|
43
47
|
</div>
|
44
48
|
<div class="four columns">
|
45
49
|
<div class="field ">
|
46
|
-
<%= f.label :city, Spree.t(:city)
|
50
|
+
<%= f.label :city, Spree.t(:city) %>
|
47
51
|
<%= f.text_field :city, :class => 'fullwidth' %>
|
48
52
|
</div>
|
49
53
|
</div>
|
50
54
|
|
51
55
|
<div class="omega four columns">
|
52
56
|
<div class="field ">
|
53
|
-
<%= f.label :zipcode, Spree.t(:zip)
|
57
|
+
<%= f.label :zipcode, Spree.t(:zip) %>
|
54
58
|
<%= f.text_field :zipcode, :class => 'fullwidth' %>
|
55
59
|
</div>
|
56
60
|
</div>
|
@@ -59,7 +63,7 @@
|
|
59
63
|
<div class="row">
|
60
64
|
<div class="alpha eight columns">
|
61
65
|
<div class="field ">
|
62
|
-
<%= f.label :country_id, Spree.t(:country)
|
66
|
+
<%= f.label :country_id, Spree.t(:country) %>
|
63
67
|
<span id="country"><%= f.collection_select :country_id, available_countries, :id, :name, {}, {:class => 'select2 fullwidth'} %></span>
|
64
68
|
</div>
|
65
69
|
</div>
|
@@ -67,7 +71,7 @@
|
|
67
71
|
<div class="four columns">
|
68
72
|
<div class="field ">
|
69
73
|
<% if f.object.country %>
|
70
|
-
<%= f.label :state_id, Spree.t(:state)
|
74
|
+
<%= f.label :state_id, Spree.t(:state) %>
|
71
75
|
<span id="state" class="region">
|
72
76
|
<%= f.text_field :state_name, :style => "display: #{f.object.country.states.empty? ? 'block' : 'none' };", :disabled => !f.object.country.states.empty?, :class => 'fullwidth state_name' %>
|
73
77
|
<%= f.collection_select :state_id, f.object.country.states.sort, :id, :name, {:include_blank => true}, {:class => 'select2 fullwidth', :style => "display: #{f.object.country.states.empty? ? 'none' : 'block' };", :disabled => f.object.country.states.empty?} %>
|
@@ -78,7 +82,7 @@
|
|
78
82
|
|
79
83
|
<div class="omega four columns">
|
80
84
|
<div class="field ">
|
81
|
-
<%= f.label :phone, Spree.t(:phone)
|
85
|
+
<%= f.label :phone, Spree.t(:phone) %>
|
82
86
|
<%= f.phone_field :phone, :class => 'fullwidth' %>
|
83
87
|
</div>
|
84
88
|
</div>
|
@@ -18,9 +18,9 @@
|
|
18
18
|
<% if @stock_locations.any? %>
|
19
19
|
<table class="index" id='listing_stock_locations' data-hook>
|
20
20
|
<colgroup>
|
21
|
-
<col style="width:
|
21
|
+
<col style="width: 40%" />
|
22
22
|
<col style="width: 15%" />
|
23
|
-
<col style="width:
|
23
|
+
<col style="width: 30%" />
|
24
24
|
<col style="width: 15%" />
|
25
25
|
</colgroup>
|
26
26
|
<thead>
|
@@ -37,9 +37,9 @@
|
|
37
37
|
@delete_url = admin_stock_location_path(stock_location)
|
38
38
|
%>
|
39
39
|
<tr id="<%= spree_dom_id stock_location %>" data-hook="stock_location_row" class="<%= cycle('odd', 'even')%>">
|
40
|
-
<td><%= stock_location
|
41
|
-
<td><span class="state <%= stock_location
|
42
|
-
<td><%= link_to Spree.t(:stock_movements), admin_stock_location_stock_movements_path(stock_location.id) %> </td>
|
40
|
+
<td class="align-center"><%= display_name(stock_location) %></td>
|
41
|
+
<td class="align-center"><span class="state <%= state(stock_location) %>"><%= state(stock_location) %></span></td>
|
42
|
+
<td class="align-center"><%= link_to Spree.t(:stock_movements), admin_stock_location_stock_movements_path(stock_location.id) %> </td>
|
43
43
|
<td class="actions">
|
44
44
|
<%= link_to_edit stock_location, :no_text => true %>
|
45
45
|
<%= link_to_delete stock_location, :no_text => true %>
|
@@ -49,5 +49,8 @@
|
|
49
49
|
</tbody>
|
50
50
|
</table>
|
51
51
|
<% else %>
|
52
|
-
<div class="alpha twelve columns no-objects-found"
|
52
|
+
<div class="alpha twelve columns no-objects-found">
|
53
|
+
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/stock_location')) %>,
|
54
|
+
<%= link_to Spree.t(:add_one), spree.new_admin_stock_location_path %>!
|
55
|
+
</div>
|
53
56
|
<% end %>
|
@@ -13,6 +13,7 @@
|
|
13
13
|
</li>
|
14
14
|
<% end %>
|
15
15
|
|
16
|
+
<% if @stock_movements.any? %>
|
16
17
|
<table class="index" id='listing_stock_movements'>
|
17
18
|
<colgroup>
|
18
19
|
<col style="width: 35%">
|
@@ -36,5 +37,11 @@
|
|
36
37
|
<% end %>
|
37
38
|
</tbody>
|
38
39
|
</table>
|
40
|
+
<% else %>
|
41
|
+
<div class="alpha twelve columns no-objects-found">
|
42
|
+
<%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/stock_movement')) %>,
|
43
|
+
<%= link_to Spree.t(:add_one), spree.new_admin_stock_movement_path %>!
|
44
|
+
</div>
|
45
|
+
<% end %>
|
39
46
|
|
40
47
|
<%= paginate @stock_movements %>
|