spree_backend 2.2.1 → 2.2.2
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/spree/backend/admin.js.erb +1 -1
- data/app/assets/javascripts/spree/backend/payments/edit.js.coffee +2 -2
- data/app/assets/javascripts/spree/backend/shipments.js.erb +11 -12
- data/app/assets/javascripts/spree/backend/spree-select2.js.erb +1 -1
- data/app/assets/javascripts/spree/backend/taxon_tree_menu.js.coffee +4 -4
- data/app/assets/javascripts/spree/backend/variant_autocomplete.js.erb +2 -2
- data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +2 -2
- data/app/assets/stylesheets/spree/backend/hacks/_ie.scss +2 -2
- data/app/assets/stylesheets/spree/backend/hacks/_mozilla.scss +1 -1
- data/app/assets/stylesheets/spree/backend/hacks/_opera.scss +1 -1
- data/app/assets/stylesheets/spree/backend/plugins/_jstree.scss +6 -6
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +5 -7
- data/app/assets/stylesheets/spree/backend/shared/_icons.scss +17 -7
- data/app/assets/stylesheets/spree/backend/shared/_tables.scss +9 -9
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +1 -1
- data/app/controllers/spree/admin/products_controller.rb +1 -1
- data/app/controllers/spree/admin/promotions_controller.rb +1 -0
- data/app/controllers/spree/admin/resource_controller.rb +1 -1
- data/app/controllers/spree/admin/variants_controller.rb +1 -1
- data/app/helpers/spree/admin/adjustments_helper.rb +1 -1
- data/app/helpers/spree/admin/base_helper.rb +3 -3
- data/app/helpers/spree/admin/navigation_helper.rb +8 -8
- data/app/helpers/spree/admin/orders_helper.rb +1 -1
- data/app/views/spree/admin/adjustments/edit.html.erb +4 -4
- data/app/views/spree/admin/adjustments/index.html.erb +5 -5
- data/app/views/spree/admin/adjustments/new.html.erb +4 -4
- data/app/views/spree/admin/countries/edit.html.erb +1 -1
- data/app/views/spree/admin/countries/index.html.erb +1 -1
- data/app/views/spree/admin/countries/new.html.erb +1 -1
- data/app/views/spree/admin/general_settings/edit.html.erb +2 -2
- data/app/views/spree/admin/images/edit.html.erb +3 -3
- data/app/views/spree/admin/images/index.html.erb +2 -2
- data/app/views/spree/admin/images/new.html.erb +2 -2
- data/app/views/spree/admin/log_entries/index.html.erb +5 -5
- data/app/views/spree/admin/option_types/edit.html.erb +2 -2
- data/app/views/spree/admin/option_types/index.html.erb +1 -1
- data/app/views/spree/admin/orders/_line_items.html.erb +4 -4
- data/app/views/spree/admin/orders/_shipment.html.erb +16 -15
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +5 -5
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_details/edit.html.erb +2 -4
- data/app/views/spree/admin/orders/edit.html.erb +2 -3
- data/app/views/spree/admin/orders/index.html.erb +3 -3
- data/app/views/spree/admin/payment_methods/edit.html.erb +3 -3
- data/app/views/spree/admin/payment_methods/index.html.erb +1 -1
- data/app/views/spree/admin/payment_methods/new.html.erb +2 -2
- data/app/views/spree/admin/payments/_form.html.erb +1 -1
- data/app/views/spree/admin/payments/_list.html.erb +1 -1
- data/app/views/spree/admin/payments/credit.html.erb +1 -1
- data/app/views/spree/admin/payments/index.html.erb +3 -3
- data/app/views/spree/admin/payments/new.html.erb +3 -3
- data/app/views/spree/admin/payments/show.html.erb +4 -4
- data/app/views/spree/admin/product_properties/index.html.erb +2 -2
- data/app/views/spree/admin/products/_add_stock_form.html.erb +2 -2
- data/app/views/spree/admin/products/edit.html.erb +2 -2
- data/app/views/spree/admin/products/index.html.erb +3 -3
- data/app/views/spree/admin/products/stock.html.erb +2 -2
- data/app/views/spree/admin/promotions/_actions.html.erb +2 -2
- data/app/views/spree/admin/promotions/_promotion_action.html.erb +1 -1
- data/app/views/spree/admin/promotions/_promotion_rule.html.erb +1 -1
- data/app/views/spree/admin/promotions/_rules.html.erb +2 -2
- data/app/views/spree/admin/promotions/actions/_create_line_items.html.erb +7 -3
- data/app/views/spree/admin/promotions/edit.html.erb +1 -1
- data/app/views/spree/admin/promotions/index.html.erb +2 -2
- data/app/views/spree/admin/promotions/new.html.erb +1 -1
- data/app/views/spree/admin/properties/edit.html.erb +1 -1
- data/app/views/spree/admin/properties/index.html.erb +1 -1
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +1 -1
- data/app/views/spree/admin/prototypes/edit.html.erb +1 -1
- data/app/views/spree/admin/prototypes/index.html.erb +1 -1
- data/app/views/spree/admin/reports/sales_total.html.erb +1 -1
- data/app/views/spree/admin/return_authorizations/edit.html.erb +5 -5
- data/app/views/spree/admin/return_authorizations/index.html.erb +4 -4
- data/app/views/spree/admin/return_authorizations/new.html.erb +4 -4
- data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_order_submenu.html.erb +5 -5
- data/app/views/spree/admin/shared/_product_tabs.html.erb +5 -5
- data/app/views/spree/admin/shared/_report_criteria.html.erb +2 -2
- data/app/views/spree/admin/shared/_report_order_criteria.html.erb +2 -2
- data/app/views/spree/admin/shared/_routes.html.erb +1 -0
- data/app/views/spree/admin/shared/_tabs.html.erb +6 -6
- data/app/views/spree/admin/shipping_categories/edit.html.erb +1 -1
- data/app/views/spree/admin/shipping_categories/index.html.erb +1 -1
- data/app/views/spree/admin/shipping_categories/new.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/_form.html.erb +6 -5
- data/app/views/spree/admin/shipping_methods/edit.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/index.html.erb +2 -2
- data/app/views/spree/admin/shipping_methods/new.html.erb +1 -1
- data/app/views/spree/admin/states/_state_list.html.erb +1 -1
- data/app/views/spree/admin/states/edit.html.erb +2 -2
- data/app/views/spree/admin/states/index.html.erb +1 -1
- data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +2 -2
- data/app/views/spree/admin/stock_locations/edit.html.erb +2 -2
- data/app/views/spree/admin/stock_locations/index.html.erb +2 -2
- data/app/views/spree/admin/stock_locations/new.html.erb +1 -1
- data/app/views/spree/admin/stock_movements/edit.html.erb +1 -1
- data/app/views/spree/admin/stock_movements/index.html.erb +3 -3
- data/app/views/spree/admin/stock_movements/new.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/index.html.erb +3 -3
- data/app/views/spree/admin/stock_transfers/new.html.erb +4 -4
- data/app/views/spree/admin/stock_transfers/show.html.erb +4 -4
- data/app/views/spree/admin/tax_categories/edit.html.erb +1 -1
- data/app/views/spree/admin/tax_categories/index.html.erb +1 -1
- data/app/views/spree/admin/tax_categories/new.html.erb +1 -1
- data/app/views/spree/admin/tax_rates/edit.html.erb +1 -1
- data/app/views/spree/admin/tax_rates/index.html.erb +1 -1
- data/app/views/spree/admin/tax_rates/new.html.erb +1 -1
- data/app/views/spree/admin/tax_settings/edit.html.erb +1 -1
- data/app/views/spree/admin/taxonomies/edit.erb +3 -3
- data/app/views/spree/admin/taxonomies/index.html.erb +1 -1
- data/app/views/spree/admin/taxonomies/new.html.erb +2 -2
- data/app/views/spree/admin/taxons/edit.html.erb +3 -3
- data/app/views/spree/admin/trackers/edit.html.erb +1 -1
- data/app/views/spree/admin/trackers/index.html.erb +1 -1
- data/app/views/spree/admin/trackers/new.html.erb +1 -1
- data/app/views/spree/admin/users/_sidebar.html.erb +4 -4
- data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -1
- data/app/views/spree/admin/users/edit.html.erb +3 -3
- data/app/views/spree/admin/users/index.html.erb +2 -2
- data/app/views/spree/admin/users/new.html.erb +1 -1
- data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +2 -2
- data/app/views/spree/admin/variants/_split.js.erb +2 -2
- data/app/views/spree/admin/variants/index.html.erb +2 -2
- data/app/views/spree/admin/zones/edit.html.erb +1 -1
- data/app/views/spree/admin/zones/index.html.erb +1 -1
- data/app/views/spree/admin/zones/new.html.erb +1 -1
- data/config/routes.rb +1 -2
- metadata +7 -9
- data/app/assets/javascripts/spree/backend/spree_backend.js +0 -20
- data/app/assets/stylesheets/spree/backend/spree_backend.css +0 -17
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
6
|
<li id="new_property_link">
|
7
|
-
<%= button_link_to Spree.t(:new_property), new_admin_property_url, { :remote => true, :icon => '
|
7
|
+
<%= button_link_to Spree.t(:new_property), new_admin_property_url, { :remote => true, :icon => 'plus', 'data-update' => 'new_property', :id => 'new_property_link' } %>
|
8
8
|
</li>
|
9
9
|
<% end %>
|
10
10
|
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<tr id="row_<%= prototype.id %>" data-hook="available_row" class="<%= cycle('odd', 'even')%>">
|
15
15
|
<td><%= prototype.name %></td>
|
16
16
|
<td class="actions">
|
17
|
-
<%= link_to Spree.t(:select), select_admin_prototype_url(prototype), :class => 'ajax button select_properties_from_prototype
|
17
|
+
<%= link_to Spree.t(:select), select_admin_prototype_url(prototype), :class => 'ajax button select_properties_from_prototype fa fa-check' %>
|
18
18
|
</td>
|
19
19
|
</tr>
|
20
20
|
<% end %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
8
|
<li>
|
9
|
-
<%= button_link_to Spree.t(:back_to_prototypes_list), spree.admin_prototypes_path, :icon => '
|
9
|
+
<%= button_link_to Spree.t(:back_to_prototypes_list), spree.admin_prototypes_path, :icon => 'arrow-left' %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
6
|
<li id="new_prototype_link">
|
7
|
-
<%= button_link_to Spree.t(:new_prototype), new_admin_prototype_url, {:remote => true, :icon => '
|
7
|
+
<%= button_link_to Spree.t(:new_prototype), new_admin_prototype_url, {:remote => true, :icon => 'plus', 'data-update' => 'new_prototype', :id => 'new_prototype_link'} %>
|
8
8
|
</li>
|
9
9
|
<% end %>
|
10
10
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<li><%= link_to_with_icon '
|
6
|
+
<li><%= link_to_with_icon 'arrow-left', Spree.t(:back_to_reports_list), spree.admin_reports_url, :class => 'button' %></li>
|
7
7
|
<% end %>
|
8
8
|
|
9
9
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<% content_for :page_actions do %>
|
2
2
|
<li>
|
3
3
|
<% if @return_authorization.can_receive? %>
|
4
|
-
<%= button_link_to Spree.t(:receive), fire_admin_order_return_authorization_url(@order, @return_authorization, :e => 'receive'), :method => :put, :data => { :confirm => Spree.t(:are_you_sure) }, :icon => '
|
4
|
+
<%= button_link_to Spree.t(:receive), fire_admin_order_return_authorization_url(@order, @return_authorization, :e => 'receive'), :method => :put, :data => { :confirm => Spree.t(:are_you_sure) }, :icon => 'download-alt' %>
|
5
5
|
<% end %>
|
6
6
|
</li>
|
7
7
|
<li>
|
8
8
|
<% if @return_authorization.can_cancel? %>
|
9
|
-
<%= button_link_to Spree.t('actions.cancel'), fire_admin_order_return_authorization_url(@order, @return_authorization, :e => 'cancel'), :method => :put, :data => { :confirm => Spree.t(:are_you_sure) }, :icon => '
|
9
|
+
<%= button_link_to Spree.t('actions.cancel'), fire_admin_order_return_authorization_url(@order, @return_authorization, :e => 'cancel'), :method => :put, :data => { :confirm => Spree.t(:are_you_sure) }, :icon => 'remove' %>
|
10
10
|
<% end %>
|
11
11
|
</li>
|
12
12
|
<% end %>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Return Authorizations' } %>
|
15
15
|
|
16
16
|
<% content_for :page_title do %>
|
17
|
-
<i class="
|
17
|
+
<i class="fa fa-arrow-right"></i> <%= Spree.t(:return_authorization) %> <%= @return_authorization.number %> (<%= Spree.t(@return_authorization.state.downcase) %>)
|
18
18
|
<% end %>
|
19
19
|
|
20
20
|
|
@@ -24,9 +24,9 @@
|
|
24
24
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
25
25
|
|
26
26
|
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
27
|
-
<%= button Spree.t('actions.update'), '
|
27
|
+
<%= button Spree.t('actions.update'), 'repeat' %>
|
28
28
|
<span class="or"><%= Spree.t(:or) %></span>
|
29
|
-
<%= button_link_to Spree.t('actions.cancel'), admin_order_return_authorizations_url(@order), :icon => '
|
29
|
+
<%= button_link_to Spree.t('actions.cancel'), admin_order_return_authorizations_url(@order), :icon => 'remove' %>
|
30
30
|
</div>
|
31
31
|
</fieldset>
|
32
32
|
<% end %>
|
@@ -3,14 +3,14 @@
|
|
3
3
|
<% content_for :page_actions do %>
|
4
4
|
<% if @order.shipments.any? &:shipped? %>
|
5
5
|
<li>
|
6
|
-
<%= button_link_to Spree.t(:new_return_authorization), new_admin_order_return_authorization_url(@order), :icon => '
|
6
|
+
<%= button_link_to Spree.t(:new_return_authorization), new_admin_order_return_authorization_url(@order), :icon => 'plus' %>
|
7
7
|
</li>
|
8
8
|
<% end %>
|
9
|
-
<li><%= button_link_to Spree.t(:back_to_orders_list), spree.admin_orders_path, :icon => '
|
9
|
+
<li><%= button_link_to Spree.t(:back_to_orders_list), spree.admin_orders_path, :icon => 'arrow-left' %></li>
|
10
10
|
<% end %>
|
11
11
|
|
12
12
|
<% content_for :page_title do %>
|
13
|
-
<i class="
|
13
|
+
<i class="fa fa-arrow-right"></i> <%= Spree.t(:return_authorizations) %>
|
14
14
|
<% end %>
|
15
15
|
|
16
16
|
<% if @order.shipments.any?(&:shipped?) || @order.return_authorizations.any? %>
|
@@ -49,4 +49,4 @@
|
|
49
49
|
</div>
|
50
50
|
<% end %>
|
51
51
|
|
52
|
-
<%= button_link_to Spree.t(:continue), admin_orders_url, :icon => '
|
52
|
+
<%= button_link_to Spree.t(:continue), admin_orders_url, :icon => 'arrow-right' %>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Return Authorizations' } %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
|
-
<i class="
|
4
|
+
<i class="fa fa-arrow-right"></i> <%= Spree.t(:new_return_authorization) %>
|
5
5
|
<% end %>
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
|
-
<li><%= button_link_to Spree.t(:back_to_return_authorizations_list), spree.admin_order_return_authorizations_url, :icon => '
|
8
|
+
<li><%= button_link_to Spree.t(:back_to_return_authorizations_list), spree.admin_order_return_authorizations_url, :icon => 'arrow-left' %></li>
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @return_authorization } %>
|
@@ -14,9 +14,9 @@
|
|
14
14
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
15
15
|
|
16
16
|
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
17
|
-
<%= button Spree.t(:continue), '
|
17
|
+
<%= button Spree.t(:continue), 'arrow-right' %>
|
18
18
|
<span class="or"><%= Spree.t(:or) %></span>
|
19
|
-
<%= button_link_to Spree.t('actions.cancel'), admin_order_return_authorizations_url(@order), :icon => '
|
19
|
+
<%= button_link_to Spree.t('actions.cancel'), admin_order_return_authorizations_url(@order), :icon => 'remove' %>
|
20
20
|
</div>
|
21
21
|
</fieldset>
|
22
22
|
<% end %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
2
|
-
<%= button Spree.t('actions.update'), '
|
2
|
+
<%= button Spree.t('actions.update'), 'refresh' %>
|
3
3
|
<span class="or"><%= Spree.t(:or) %></span>
|
4
|
-
<%= button_link_to Spree.t('actions.cancel'), collection_url, :icon => '
|
4
|
+
<%= button_link_to Spree.t('actions.cancel'), collection_url, :icon => 'remove' %>
|
5
5
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
2
|
-
<%= button Spree.t('actions.create'), '
|
2
|
+
<%= button Spree.t('actions.create'), 'ok' %>
|
3
3
|
<span class="or"><%= Spree.t(:or) %></span>
|
4
|
-
<%= link_to_with_icon '
|
4
|
+
<%= link_to_with_icon 'remove', Spree.t('actions.cancel'), collection_url, :class => 'button' %>
|
5
5
|
</div>
|
@@ -2,32 +2,32 @@
|
|
2
2
|
<ul data-hook="admin_order_tabs">
|
3
3
|
<% if can? :update, @order %>
|
4
4
|
<li<%== ' class="active"' if current == 'Order Details' %>>
|
5
|
-
<%= link_to_with_icon '
|
5
|
+
<%= link_to_with_icon 'edit', Spree.t(:order_details), edit_admin_order_url(@order) %>
|
6
6
|
</li>
|
7
7
|
<% end %>
|
8
8
|
|
9
9
|
<% if can?(:update, @order) && checkout_steps.include?("address") %>
|
10
10
|
<li<%== ' class="active"' if current == 'Customer Details' %>>
|
11
|
-
<%= link_to_with_icon '
|
11
|
+
<%= link_to_with_icon 'user', Spree.t(:customer_details), admin_order_customer_url(@order) %>
|
12
12
|
</li>
|
13
13
|
<% end %>
|
14
14
|
|
15
15
|
<% if can? :index, Spree::Adjustment %>
|
16
16
|
<li<%== ' class="active"' if current == 'Adjustments' %>>
|
17
|
-
<%= link_to_with_icon '
|
17
|
+
<%= link_to_with_icon 'cogs', Spree.t(:adjustments), admin_order_adjustments_url(@order) %>
|
18
18
|
</li>
|
19
19
|
<% end %>
|
20
20
|
|
21
21
|
<% if can?(:index, Spree::Payment) %>
|
22
22
|
<li<%== ' class="active"' if current == 'Payments' %>>
|
23
|
-
<%= link_to_with_icon '
|
23
|
+
<%= link_to_with_icon 'credit-card', Spree.t(:payments), admin_order_payments_url(@order) %>
|
24
24
|
</li>
|
25
25
|
<% end %>
|
26
26
|
|
27
27
|
<% if can? :index, Spree::ReturnAuthorization %>
|
28
28
|
<% if @order.completed? %>
|
29
29
|
<li<%== ' class="active"' if current == 'Return Authorizations' %>>
|
30
|
-
<%= link_to_with_icon '
|
30
|
+
<%= link_to_with_icon 'share', Spree.t(:return_authorizations), admin_order_return_authorizations_url(@order) %>
|
31
31
|
</li>
|
32
32
|
<% end %>
|
33
33
|
<% end %>
|
@@ -10,19 +10,19 @@
|
|
10
10
|
<nav class="menu">
|
11
11
|
<ul data-hook="admin_product_tabs">
|
12
12
|
<%= content_tag :li, :class => ('active' if current == 'Product Details') do %>
|
13
|
-
<%= link_to_with_icon '
|
13
|
+
<%= link_to_with_icon 'edit', Spree.t(:product_details), edit_admin_product_url(@product) %>
|
14
14
|
<% end if can?(:admin, Spree::Product) %>
|
15
15
|
<%= content_tag :li, :class => ('active' if current == 'Images') do %>
|
16
|
-
<%= link_to_with_icon '
|
16
|
+
<%= link_to_with_icon 'picture', Spree.t(:images), admin_product_images_url(@product) %>
|
17
17
|
<% end if can?(:admin, Spree::Image) %>
|
18
18
|
<%= content_tag :li, :class => ('active' if current == 'Variants') do %>
|
19
|
-
<%= link_to_with_icon '
|
19
|
+
<%= link_to_with_icon 'th-large', Spree.t(:variants), admin_product_variants_url(@product) %>
|
20
20
|
<% end if can?(:admin, Spree::Variant) %>
|
21
21
|
<%= content_tag :li, :class => ('active' if current == 'Product Properties') do %>
|
22
|
-
<%= link_to_with_icon '
|
22
|
+
<%= link_to_with_icon 'tasks', Spree.t(:product_properties), admin_product_product_properties_url(@product) %>
|
23
23
|
<% end if can?(:admin, Spree::ProductProperty) %>
|
24
24
|
<%= content_tag :li, :class => ('active' if current == 'Stock Management') do %>
|
25
|
-
<%= link_to_with_icon '
|
25
|
+
<%= link_to_with_icon 'tasks', Spree.t(:stock_management), stock_admin_product_url(@product) %>
|
26
26
|
<% end if can?(:stock, Spree::Product) %>
|
27
27
|
</li>
|
28
28
|
</ul>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= s.text_field :created_at_gt, :class => 'datepicker datepicker-from', :value => datepicker_field_value(params[:q][:created_at_gt]) %>
|
5
5
|
|
6
6
|
<span class="range-divider">
|
7
|
-
<i class="
|
7
|
+
<i class="fa fa-arrow-right"></i>
|
8
8
|
</span>
|
9
9
|
|
10
10
|
<%= s.text_field :created_at_lt, :class => 'datepicker datepicker-to', :value => datepicker_field_value(params[:q][:created_at_lt]) %>
|
@@ -12,6 +12,6 @@
|
|
12
12
|
</div>
|
13
13
|
|
14
14
|
<div class="actions filter-actions">
|
15
|
-
<%= button Spree.t(:search), '
|
15
|
+
<%= button Spree.t(:search), 'search' %>
|
16
16
|
</div>
|
17
17
|
<% end %>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= s.text_field :completed_at_gt, :class => 'datepicker datepicker-from', :value => datepicker_field_value(params[:q][:completed_at_gt]) %>
|
5
5
|
|
6
6
|
<span class="range-divider">
|
7
|
-
<i class="
|
7
|
+
<i class="fa fa-arrow-right"></i>
|
8
8
|
</span>
|
9
9
|
|
10
10
|
<%= s.text_field :completed_at_lt, :class => 'datepicker datepicker-to', :value => datepicker_field_value(params[:q][:completed_at_lt]) %>
|
@@ -12,6 +12,6 @@
|
|
12
12
|
</div>
|
13
13
|
|
14
14
|
<div class="actions filter-actions">
|
15
|
-
<%= button Spree.t(:search), '
|
15
|
+
<%= button Spree.t(:search), 'search' %>
|
16
16
|
</div>
|
17
17
|
<% end %>
|
@@ -12,5 +12,6 @@
|
|
12
12
|
Spree.routes.classifications_api = "<%= spree.api_classifications_url(:format => 'json') %>";
|
13
13
|
Spree.routes.taxon_products_api = "<%= spree.api_taxon_products_url(:format => 'json') %>";
|
14
14
|
Spree.routes.payments_api = "<%= spree.api_order_payments_url(:format => 'json') if params[:order_id] %>";
|
15
|
+
Spree.routes.shipments_api = "<%= spree.api_shipments_url(:format => 'json') %>";
|
15
16
|
Spree.routes.stock_items_api = "<%= spree.api_stock_location_stock_items_url(:format => 'json') if params[:stock_location_id] %>";
|
16
17
|
</script>
|
@@ -1,16 +1,16 @@
|
|
1
1
|
<% if can? :admin, Spree::Order %>
|
2
|
-
<%= tab :orders, :payments, :creditcard_payments, :shipments, :credit_cards, :return_authorizations, :icon => '
|
2
|
+
<%= tab :orders, :payments, :creditcard_payments, :shipments, :credit_cards, :return_authorizations, :icon => 'shopping-cart' %>
|
3
3
|
<% end %>
|
4
4
|
<% if can? :admin, Spree::Product %>
|
5
|
-
<%= tab :products, :option_types, :properties, :prototypes, :variants, :product_properties, :taxonomies, :icon => '
|
5
|
+
<%= tab :products, :option_types, :properties, :prototypes, :variants, :product_properties, :taxonomies, :icon => 'th-large' %>
|
6
6
|
<% end %>
|
7
7
|
<% if can? :admin, Spree::Admin::ReportsController %>
|
8
|
-
<%= tab :reports, :icon => '
|
8
|
+
<%= tab :reports, :icon => 'file' %>
|
9
9
|
<% end %>
|
10
|
-
<%= tab :configurations, :general_settings, :mail_methods, :tax_categories, :tax_rates, :tax_settings, :zones, :countries, :states, :payment_methods, :shipping_methods, :shipping_categories, :stock_transfers, :stock_locations, :trackers, :label => 'configuration', :icon => '
|
10
|
+
<%= tab :configurations, :general_settings, :mail_methods, :tax_categories, :tax_rates, :tax_settings, :zones, :countries, :states, :payment_methods, :shipping_methods, :shipping_categories, :stock_transfers, :stock_locations, :trackers, :label => 'configuration', :icon => 'wrench', :url => spree.edit_admin_general_settings_path %>
|
11
11
|
<% if can? :admin, Spree::Promotion %>
|
12
|
-
<%= tab(:promotions, :url => spree.admin_promotions_path, :icon => '
|
12
|
+
<%= tab(:promotions, :url => spree.admin_promotions_path, :icon => 'bullhorn') %>
|
13
13
|
<% end %>
|
14
14
|
<% if Spree.user_class && can?(:admin, Spree.user_class) %>
|
15
|
-
<%= tab(:users, :url => spree.admin_users_path, :icon => '
|
15
|
+
<%= tab(:users, :url => spree.admin_users_path, :icon => 'user') %>
|
16
16
|
<% end %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
8
|
<li>
|
9
|
-
<%= button_link_to Spree.t(:back_to_shipping_categories), spree.admin_shipping_categories_path, :icon => '
|
9
|
+
<%= button_link_to Spree.t(:back_to_shipping_categories), spree.admin_shipping_categories_path, :icon => 'arrow-left' %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
8
|
<li>
|
9
|
-
<%= button_link_to Spree.t(:back_to_shipping_categories_list), spree.admin_shipping_categories_path, :icon => '
|
9
|
+
<%= button_link_to Spree.t(:back_to_shipping_categories_list), spree.admin_shipping_categories_path, :icon => 'arrow-left' %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div data-hook="admin_shipping_method_form_fields" class="alpha twelve columns">
|
2
|
-
<div class="alpha six columns">
|
2
|
+
<div data-hook="admin_shipping_method_form_name_field" class="alpha six columns">
|
3
3
|
<%= f.field_container :name do %>
|
4
4
|
<%= f.label :name, Spree.t(:name) %><br />
|
5
5
|
<%= f.text_field :name, :class => 'fullwidth' %>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<% end %>
|
8
8
|
</div>
|
9
9
|
|
10
|
-
<div class="omega six columns">
|
10
|
+
<div data-hook="admin_shipping_method_form_display_field" class="omega six columns">
|
11
11
|
<%= f.field_container :display_on do %>
|
12
12
|
<%= f.label :display_on, Spree.t(:display) %><br />
|
13
13
|
<%= select(:shipping_method, :display_on, Spree::ShippingMethod::DISPLAY.collect { |display| [Spree.t(display), display == :both ? nil : display.to_s] }, {}, {:class => 'select2 fullwidth'}) %>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
</div>
|
17
17
|
|
18
18
|
<div class="alpha omega twelve columns">
|
19
|
-
<div class="alpha six columns">
|
19
|
+
<div data-hook="admin_shipping_method_form_internal_name_field" class="alpha six columns">
|
20
20
|
<%= f.field_container :admin_name do %>
|
21
21
|
<%= f.label :admin_name, Spree.t(:internal_name) %><br />
|
22
22
|
<%= f.text_field :admin_name, :class => 'fullwidth', :label => false %>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
</div>
|
26
26
|
</div>
|
27
27
|
|
28
|
-
<div class="alpha twelve columns">
|
28
|
+
<div data-hook="admin_shipping_method_form_tracking_url_field" class="alpha twelve columns">
|
29
29
|
<%= f.field_container :tracking_url do %>
|
30
30
|
<%= f.label :tracking_url, Spree.t(:tracking_url) %><br />
|
31
31
|
<%= f.text_field :tracking_url, :class => 'fullwidth', :placeholder => Spree.t(:tracking_url_placeholder) %>
|
@@ -54,9 +54,10 @@
|
|
54
54
|
<fieldset class="no-border-bottom">
|
55
55
|
<legend align="center"><%= Spree.t(:zones) %></legend>
|
56
56
|
<%= f.field_container :zones do %>
|
57
|
+
<% shipping_method_zones = @shipping_method.zones.to_a %>
|
57
58
|
<% Spree::Zone.all.each do |zone| %>
|
58
59
|
<%= label_tag do %>
|
59
|
-
<%= check_box_tag('shipping_method[zones][]', zone.id,
|
60
|
+
<%= check_box_tag('shipping_method[zones][]', zone.id, shipping_method_zones.include?(zone)) %>
|
60
61
|
<%= zone.name %>
|
61
62
|
<% end %>
|
62
63
|
<br>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
8
|
<li>
|
9
|
-
<%= button_link_to Spree.t(:back_to_shipping_methods_list), spree.admin_shipping_methods_path, :icon => '
|
9
|
+
<%= button_link_to Spree.t(:back_to_shipping_methods_list), spree.admin_shipping_methods_path, :icon => 'arrow-left' %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
8
|
<li>
|
9
|
-
<%= button_link_to Spree.t(:new_shipping_method), new_object_url, :icon => '
|
9
|
+
<%= button_link_to Spree.t(:new_shipping_method), new_object_url, :icon => 'plus', :id => 'admin_new_shipping_method_link' %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
|
@@ -29,7 +29,7 @@
|
|
29
29
|
</tr>
|
30
30
|
</thead>
|
31
31
|
<tbody>
|
32
|
-
<% @shipping_methods.each do |shipping_method|%>
|
32
|
+
<% @shipping_methods.includes(:zones, :calculator).each do |shipping_method|%>
|
33
33
|
<tr id="<%= spree_dom_id shipping_method %>" data-hook="admin_shipping_methods_index_rows" class="<%= cycle('odd', 'even')%>">
|
34
34
|
<td class="align-center"><%= shipping_method.admin_name + ' / ' if shipping_method.admin_name.present? %><%= shipping_method.name %></td>
|
35
35
|
<td class="align-center"><%= shipping_method.zones.collect(&:name).join(", ") if shipping_method.zones %></td>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
8
|
<li>
|
9
|
-
<%= button_link_to Spree.t(:back_to_shipping_methods_list), spree.admin_shipping_methods_path, :icon => '
|
9
|
+
<%= button_link_to Spree.t(:back_to_shipping_methods_list), spree.admin_shipping_methods_path, :icon => 'arrow-left' %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<td><%= state.name %></td>
|
20
20
|
<td class="align-center"><%= state.abbr %></td>
|
21
21
|
<td class="actions">
|
22
|
-
<%= link_to_with_icon '
|
22
|
+
<%= link_to_with_icon 'edit', Spree.t(:edit), edit_admin_country_state_url(@country, state), :no_text => true %>
|
23
23
|
<%= link_to_delete state, :no_text => true %>
|
24
24
|
</td>
|
25
25
|
</tr>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<%= render :partial => 'spree/admin/shared/configuration_menu' %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
|
-
<%= Spree.t(:editing_state) %> <i class="
|
4
|
+
<%= Spree.t(:editing_state) %> <i class="fa fa-arrow-right"></i> <%= @state.name %>
|
5
5
|
<% end %>
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
8
|
<li>
|
9
|
-
<%= button_link_to Spree.t(:back_to_states_list), spree.admin_country_states_url(@country), :icon => '
|
9
|
+
<%= button_link_to Spree.t(:back_to_states_list), spree.admin_country_states_url(@country), :icon => 'arrow-left' %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
8
|
<li id="new_state_link">
|
9
|
-
<%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { :remote => true, :icon => '
|
9
|
+
<%= button_link_to Spree.t(:new_state), new_admin_country_state_url(@country), { :remote => true, :icon => 'plus', :id => 'new_state_link' } %>
|
10
10
|
</li>
|
11
11
|
<% end %>
|
12
12
|
|
@@ -31,9 +31,9 @@
|
|
31
31
|
</div>
|
32
32
|
|
33
33
|
<div class="form-buttons filter-actions actions" data-hook="buttons">
|
34
|
-
<%= button Spree.t(:transfer_stock), '
|
34
|
+
<%= button Spree.t(:transfer_stock), 'plus' %>
|
35
35
|
<span class="or"><%= Spree.t(:or) %></span>
|
36
|
-
<%= link_to_with_icon '
|
36
|
+
<%= link_to_with_icon 'remove', Spree.t('actions.cancel'), collection_url, :class => 'button' %>
|
37
37
|
</div>
|
38
38
|
</fieldset>
|
39
39
|
<% end %>
|