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.
Files changed (132) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spree/backend/admin.js.erb +1 -1
  3. data/app/assets/javascripts/spree/backend/payments/edit.js.coffee +2 -2
  4. data/app/assets/javascripts/spree/backend/shipments.js.erb +11 -12
  5. data/app/assets/javascripts/spree/backend/spree-select2.js.erb +1 -1
  6. data/app/assets/javascripts/spree/backend/taxon_tree_menu.js.coffee +4 -4
  7. data/app/assets/javascripts/spree/backend/variant_autocomplete.js.erb +2 -2
  8. data/app/assets/stylesheets/spree/backend/components/_date-picker.scss +2 -2
  9. data/app/assets/stylesheets/spree/backend/hacks/_ie.scss +2 -2
  10. data/app/assets/stylesheets/spree/backend/hacks/_mozilla.scss +1 -1
  11. data/app/assets/stylesheets/spree/backend/hacks/_opera.scss +1 -1
  12. data/app/assets/stylesheets/spree/backend/plugins/_jstree.scss +6 -6
  13. data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +5 -7
  14. data/app/assets/stylesheets/spree/backend/shared/_icons.scss +17 -7
  15. data/app/assets/stylesheets/spree/backend/shared/_tables.scss +9 -9
  16. data/app/controllers/spree/admin/orders/customer_details_controller.rb +1 -1
  17. data/app/controllers/spree/admin/products_controller.rb +1 -1
  18. data/app/controllers/spree/admin/promotions_controller.rb +1 -0
  19. data/app/controllers/spree/admin/resource_controller.rb +1 -1
  20. data/app/controllers/spree/admin/variants_controller.rb +1 -1
  21. data/app/helpers/spree/admin/adjustments_helper.rb +1 -1
  22. data/app/helpers/spree/admin/base_helper.rb +3 -3
  23. data/app/helpers/spree/admin/navigation_helper.rb +8 -8
  24. data/app/helpers/spree/admin/orders_helper.rb +1 -1
  25. data/app/views/spree/admin/adjustments/edit.html.erb +4 -4
  26. data/app/views/spree/admin/adjustments/index.html.erb +5 -5
  27. data/app/views/spree/admin/adjustments/new.html.erb +4 -4
  28. data/app/views/spree/admin/countries/edit.html.erb +1 -1
  29. data/app/views/spree/admin/countries/index.html.erb +1 -1
  30. data/app/views/spree/admin/countries/new.html.erb +1 -1
  31. data/app/views/spree/admin/general_settings/edit.html.erb +2 -2
  32. data/app/views/spree/admin/images/edit.html.erb +3 -3
  33. data/app/views/spree/admin/images/index.html.erb +2 -2
  34. data/app/views/spree/admin/images/new.html.erb +2 -2
  35. data/app/views/spree/admin/log_entries/index.html.erb +5 -5
  36. data/app/views/spree/admin/option_types/edit.html.erb +2 -2
  37. data/app/views/spree/admin/option_types/index.html.erb +1 -1
  38. data/app/views/spree/admin/orders/_line_items.html.erb +4 -4
  39. data/app/views/spree/admin/orders/_shipment.html.erb +16 -15
  40. data/app/views/spree/admin/orders/_shipment_manifest.html.erb +5 -5
  41. data/app/views/spree/admin/orders/customer_details/_form.html.erb +1 -1
  42. data/app/views/spree/admin/orders/customer_details/edit.html.erb +2 -4
  43. data/app/views/spree/admin/orders/edit.html.erb +2 -3
  44. data/app/views/spree/admin/orders/index.html.erb +3 -3
  45. data/app/views/spree/admin/payment_methods/edit.html.erb +3 -3
  46. data/app/views/spree/admin/payment_methods/index.html.erb +1 -1
  47. data/app/views/spree/admin/payment_methods/new.html.erb +2 -2
  48. data/app/views/spree/admin/payments/_form.html.erb +1 -1
  49. data/app/views/spree/admin/payments/_list.html.erb +1 -1
  50. data/app/views/spree/admin/payments/credit.html.erb +1 -1
  51. data/app/views/spree/admin/payments/index.html.erb +3 -3
  52. data/app/views/spree/admin/payments/new.html.erb +3 -3
  53. data/app/views/spree/admin/payments/show.html.erb +4 -4
  54. data/app/views/spree/admin/product_properties/index.html.erb +2 -2
  55. data/app/views/spree/admin/products/_add_stock_form.html.erb +2 -2
  56. data/app/views/spree/admin/products/edit.html.erb +2 -2
  57. data/app/views/spree/admin/products/index.html.erb +3 -3
  58. data/app/views/spree/admin/products/stock.html.erb +2 -2
  59. data/app/views/spree/admin/promotions/_actions.html.erb +2 -2
  60. data/app/views/spree/admin/promotions/_promotion_action.html.erb +1 -1
  61. data/app/views/spree/admin/promotions/_promotion_rule.html.erb +1 -1
  62. data/app/views/spree/admin/promotions/_rules.html.erb +2 -2
  63. data/app/views/spree/admin/promotions/actions/_create_line_items.html.erb +7 -3
  64. data/app/views/spree/admin/promotions/edit.html.erb +1 -1
  65. data/app/views/spree/admin/promotions/index.html.erb +2 -2
  66. data/app/views/spree/admin/promotions/new.html.erb +1 -1
  67. data/app/views/spree/admin/properties/edit.html.erb +1 -1
  68. data/app/views/spree/admin/properties/index.html.erb +1 -1
  69. data/app/views/spree/admin/prototypes/_prototypes.html.erb +1 -1
  70. data/app/views/spree/admin/prototypes/edit.html.erb +1 -1
  71. data/app/views/spree/admin/prototypes/index.html.erb +1 -1
  72. data/app/views/spree/admin/reports/sales_total.html.erb +1 -1
  73. data/app/views/spree/admin/return_authorizations/edit.html.erb +5 -5
  74. data/app/views/spree/admin/return_authorizations/index.html.erb +4 -4
  75. data/app/views/spree/admin/return_authorizations/new.html.erb +4 -4
  76. data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
  77. data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
  78. data/app/views/spree/admin/shared/_order_submenu.html.erb +5 -5
  79. data/app/views/spree/admin/shared/_product_tabs.html.erb +5 -5
  80. data/app/views/spree/admin/shared/_report_criteria.html.erb +2 -2
  81. data/app/views/spree/admin/shared/_report_order_criteria.html.erb +2 -2
  82. data/app/views/spree/admin/shared/_routes.html.erb +1 -0
  83. data/app/views/spree/admin/shared/_tabs.html.erb +6 -6
  84. data/app/views/spree/admin/shipping_categories/edit.html.erb +1 -1
  85. data/app/views/spree/admin/shipping_categories/index.html.erb +1 -1
  86. data/app/views/spree/admin/shipping_categories/new.html.erb +1 -1
  87. data/app/views/spree/admin/shipping_methods/_form.html.erb +6 -5
  88. data/app/views/spree/admin/shipping_methods/edit.html.erb +1 -1
  89. data/app/views/spree/admin/shipping_methods/index.html.erb +2 -2
  90. data/app/views/spree/admin/shipping_methods/new.html.erb +1 -1
  91. data/app/views/spree/admin/states/_state_list.html.erb +1 -1
  92. data/app/views/spree/admin/states/edit.html.erb +2 -2
  93. data/app/views/spree/admin/states/index.html.erb +1 -1
  94. data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +2 -2
  95. data/app/views/spree/admin/stock_locations/edit.html.erb +2 -2
  96. data/app/views/spree/admin/stock_locations/index.html.erb +2 -2
  97. data/app/views/spree/admin/stock_locations/new.html.erb +1 -1
  98. data/app/views/spree/admin/stock_movements/edit.html.erb +1 -1
  99. data/app/views/spree/admin/stock_movements/index.html.erb +3 -3
  100. data/app/views/spree/admin/stock_movements/new.html.erb +1 -1
  101. data/app/views/spree/admin/stock_transfers/index.html.erb +3 -3
  102. data/app/views/spree/admin/stock_transfers/new.html.erb +4 -4
  103. data/app/views/spree/admin/stock_transfers/show.html.erb +4 -4
  104. data/app/views/spree/admin/tax_categories/edit.html.erb +1 -1
  105. data/app/views/spree/admin/tax_categories/index.html.erb +1 -1
  106. data/app/views/spree/admin/tax_categories/new.html.erb +1 -1
  107. data/app/views/spree/admin/tax_rates/edit.html.erb +1 -1
  108. data/app/views/spree/admin/tax_rates/index.html.erb +1 -1
  109. data/app/views/spree/admin/tax_rates/new.html.erb +1 -1
  110. data/app/views/spree/admin/tax_settings/edit.html.erb +1 -1
  111. data/app/views/spree/admin/taxonomies/edit.erb +3 -3
  112. data/app/views/spree/admin/taxonomies/index.html.erb +1 -1
  113. data/app/views/spree/admin/taxonomies/new.html.erb +2 -2
  114. data/app/views/spree/admin/taxons/edit.html.erb +3 -3
  115. data/app/views/spree/admin/trackers/edit.html.erb +1 -1
  116. data/app/views/spree/admin/trackers/index.html.erb +1 -1
  117. data/app/views/spree/admin/trackers/new.html.erb +1 -1
  118. data/app/views/spree/admin/users/_sidebar.html.erb +4 -4
  119. data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -1
  120. data/app/views/spree/admin/users/edit.html.erb +3 -3
  121. data/app/views/spree/admin/users/index.html.erb +2 -2
  122. data/app/views/spree/admin/users/new.html.erb +1 -1
  123. data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +2 -2
  124. data/app/views/spree/admin/variants/_split.js.erb +2 -2
  125. data/app/views/spree/admin/variants/index.html.erb +2 -2
  126. data/app/views/spree/admin/zones/edit.html.erb +1 -1
  127. data/app/views/spree/admin/zones/index.html.erb +1 -1
  128. data/app/views/spree/admin/zones/new.html.erb +1 -1
  129. data/config/routes.rb +1 -2
  130. metadata +7 -9
  131. data/app/assets/javascripts/spree/backend/spree_backend.js +0 -20
  132. 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 => 'icon-plus', 'data-update' => 'new_property', :id => 'new_property_link' } %>
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 icon-ok' %>
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 => 'icon-arrow-left' %>
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 => 'icon-plus', 'data-update' => 'new_prototype', :id => 'new_prototype_link'} %>
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 'icon-arrow-left', Spree.t(:back_to_reports_list), spree.admin_reports_url, :class => 'button' %></li>
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 => 'icon-download-alt' %>
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 => 'icon-remove' %>
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="icon-arrow-right"></i> <%= Spree.t(:return_authorization) %> <%= @return_authorization.number %> (<%= Spree.t(@return_authorization.state.downcase) %>)
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'), 'icon-repeat' %>
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 => 'icon-remove' %>
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 => 'icon-plus' %>
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 => 'icon-arrow-left' %></li>
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="icon-arrow-right"></i> <%= Spree.t(:return_authorizations) %>
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 => 'icon-arrow-right' %>
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="icon-arrow-right"></i> <%= Spree.t(:new_return_authorization) %>
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 => 'icon-arrow-left' %></li>
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), 'icon-arrow-right' %>
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 => 'icon-remove' %>
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'), 'icon-refresh' %>
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 => 'icon-remove' %>
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'), 'icon-ok' %>
2
+ <%= button Spree.t('actions.create'), 'ok' %>
3
3
  <span class="or"><%= Spree.t(:or) %></span>
4
- <%= link_to_with_icon 'icon-remove', Spree.t('actions.cancel'), collection_url, :class => 'button' %>
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 'icon-edit', Spree.t(:order_details), edit_admin_order_url(@order) %>
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 'icon-user', Spree.t(:customer_details), admin_order_customer_url(@order) %>
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 'icon-cogs', Spree.t(:adjustments), admin_order_adjustments_url(@order) %>
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 'icon-credit-card', Spree.t(:payments), admin_order_payments_url(@order) %>
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 'icon-share-alt', Spree.t(:return_authorizations), admin_order_return_authorizations_url(@order) %>
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 'icon-edit', Spree.t(:product_details), edit_admin_product_url(@product) %>
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 'icon-picture', Spree.t(:images), admin_product_images_url(@product) %>
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 'icon-th-large', Spree.t(:variants), admin_product_variants_url(@product) %>
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 'icon-tasks', Spree.t(:product_properties), admin_product_product_properties_url(@product) %>
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 'icon-tasks', Spree.t(:stock_management), stock_admin_product_url(@product) %>
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="icon-arrow-right"></i>
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), 'icon-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="icon-arrow-right"></i>
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), 'icon-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 => 'icon-shopping-cart' %>
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 => 'icon-th-large' %>
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 => 'icon-file' %>
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 => 'icon-wrench', :url => spree.edit_admin_general_settings_path %>
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 => 'icon-bullhorn') %>
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 => 'icon-user') %>
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 => 'icon-arrow-left' %>
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(:new_shipping_category), new_object_url, :icon => 'icon-plus' %>
9
+ <%= button_link_to Spree.t(:new_shipping_category), new_object_url, :icon => 'plus' %>
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 => 'icon-arrow-left' %>
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, @shipping_method.zones.include?(zone)) %>
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 => 'icon-arrow-left' %>
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 => 'icon-plus', :id => 'admin_new_shipping_method_link' %>
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 => 'icon-arrow-left' %>
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 'icon-edit', Spree.t(:edit), edit_admin_country_state_url(@country, state), :no_text => true %>
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="icon-arrow-right"></i> <%= @state.name %>
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 => 'icon-arrow-left' %>
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 => 'icon-plus', :id => 'new_state_link' } %>
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), 'icon-plus' %>
34
+ <%= button Spree.t(:transfer_stock), 'plus' %>
35
35
  <span class="or"><%= Spree.t(:or) %></span>
36
- <%= link_to_with_icon 'icon-remove', Spree.t('actions.cancel'), collection_url, :class => 'button' %>
36
+ <%= link_to_with_icon 'remove', Spree.t('actions.cancel'), collection_url, :class => 'button' %>
37
37
  </div>
38
38
  </fieldset>
39
39
  <% end %>