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
@@ -3,7 +3,7 @@ module Spree
3
3
  module AdjustmentsHelper
4
4
  def adjustment_state(adjustment)
5
5
  state = adjustment.state.to_sym
6
- icon = { closed: 'icon-lock', open: 'icon-unlock' }
6
+ icon = { closed: 'lock', open: 'unlock' }
7
7
  content_tag(:span, '', class: icon[state])
8
8
  end
9
9
 
@@ -62,7 +62,7 @@ module Spree
62
62
  def remove_nested(fields)
63
63
  out = ''
64
64
  out << fields.hidden_field(:_destroy) unless fields.object.new_record?
65
- out << (link_to icon('icon-remove'), "#", :class => 'remove')
65
+ out << (link_to icon('remove'), "#", :class => 'remove')
66
66
  out.html_safe
67
67
  end
68
68
 
@@ -143,7 +143,7 @@ module Spree
143
143
  def link_to_add_fields(name, target, options = {})
144
144
  name = '' if options[:no_text]
145
145
  css_classes = options[:class] ? options[:class] + " spree_add_fields" : "spree_add_fields"
146
- link_to_with_icon('icon-plus', name, 'javascript:', :data => { :target => target }, :class => css_classes)
146
+ link_to_with_icon('plus', name, 'javascript:', :data => { :target => target }, :class => css_classes)
147
147
  end
148
148
 
149
149
  # renders hidden field and link to remove record using nested_attributes
@@ -152,7 +152,7 @@ module Spree
152
152
  options[:class] = '' unless options[:class]
153
153
  options[:class] += 'no-text with-tip' if options[:no_text]
154
154
  url = f.object.persisted? ? [:admin, f.object] : '#'
155
- link_to_with_icon('icon-trash', name, url, :class => "spree_remove_fields #{options[:class]}", :data => {:action => 'remove'}, :title => Spree.t(:remove)) + f.hidden_field(:_destroy)
155
+ link_to_with_icon('trash', name, url, :class => "spree_remove_fields #{options[:class]}", :data => {:action => 'remove'}, :title => Spree.t(:remove)) + f.hidden_field(:_destroy)
156
156
  end
157
157
 
158
158
  def spree_dom_id(record)
@@ -62,23 +62,23 @@ module Spree
62
62
 
63
63
  def link_to_clone(resource, options={})
64
64
  options[:data] = {:action => 'clone'}
65
- link_to_with_icon('icon-copy', Spree.t(:clone), clone_object_url(resource), options)
65
+ link_to_with_icon('copy', Spree.t(:clone), clone_object_url(resource), options)
66
66
  end
67
67
 
68
68
  def link_to_new(resource)
69
69
  options[:data] = {:action => 'new'}
70
- link_to_with_icon('icon-plus', Spree.t(:new), edit_object_url(resource))
70
+ link_to_with_icon('plus', Spree.t(:new), edit_object_url(resource))
71
71
  end
72
72
 
73
73
  def link_to_edit(resource, options={})
74
74
  url = options[:url] || edit_object_url(resource)
75
75
  options[:data] = {:action => 'edit'}
76
- link_to_with_icon('icon-edit', Spree.t(:edit), url, options)
76
+ link_to_with_icon('edit', Spree.t(:edit), url, options)
77
77
  end
78
78
 
79
79
  def link_to_edit_url(url, options={})
80
80
  options[:data] = {:action => 'edit'}
81
- link_to_with_icon('icon-edit', Spree.t(:edit), url, options)
81
+ link_to_with_icon('edit', Spree.t(:edit), url, options)
82
82
  end
83
83
 
84
84
  def link_to_delete(resource, options={})
@@ -86,11 +86,11 @@ module Spree
86
86
  name = options[:name] || Spree.t(:delete)
87
87
  options[:class] = "delete-resource"
88
88
  options[:data] = { :confirm => Spree.t(:are_you_sure), :action => 'remove' }
89
- link_to_with_icon 'icon-trash', name, url, options
89
+ link_to_with_icon 'trash', name, url, options
90
90
  end
91
91
 
92
92
  def link_to_with_icon(icon_name, text, url, options = {})
93
- options[:class] = (options[:class].to_s + " icon_link with-tip #{icon_name}").strip
93
+ options[:class] = (options[:class].to_s + " fa fa-#{icon_name} icon_link with-tip").strip
94
94
  options[:class] += ' no-text' if options[:no_text]
95
95
  options[:title] = text if options[:no_text]
96
96
  text = options[:no_text] ? '' : raw("<span class='text'>#{text}</span>")
@@ -103,7 +103,7 @@ module Spree
103
103
  end
104
104
 
105
105
  def button(text, icon_name = nil, button_type = 'submit', options={})
106
- button_tag(text, options.merge(:type => button_type, :class => "#{icon_name} button"))
106
+ button_tag(text, options.merge(:type => button_type, :class => "fa fa-#{icon_name} button"))
107
107
  end
108
108
 
109
109
  def button_link_to(text, url, html_options = {})
@@ -124,7 +124,7 @@ module Spree
124
124
  html_options[:class] = 'button'
125
125
 
126
126
  if html_options[:icon]
127
- html_options[:class] += " #{html_options[:icon]}"
127
+ html_options[:class] += " fa fa-#{html_options[:icon]}"
128
128
  end
129
129
  link_to(text_for_button_link(text, html_options), url, html_options)
130
130
  end
@@ -8,7 +8,7 @@ module Spree
8
8
  if @order.send("can_#{event}?")
9
9
  links << button_link_to(Spree.t(event), [event, :admin, @order],
10
10
  :method => :put,
11
- :icon => "icon-#{event}",
11
+ :icon => "#{event}",
12
12
  :data => { :confirm => Spree.t(:order_sure_want_to, :event => Spree.t(event)) })
13
13
  end
14
14
  end
@@ -1,11 +1,11 @@
1
1
  <%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Adjustments' } %>
2
2
 
3
3
  <% content_for :page_title do %>
4
- <i class="icon-arrow-right"></i> <%= Spree.t(:edit) %> <%= Spree.t(:adjustment) %>
4
+ <i class="fa fa-arrow-right"></i> <%= Spree.t(:edit) %> <%= Spree.t(:adjustment) %>
5
5
  <% end %>
6
6
 
7
7
  <% content_for :page_actions do %>
8
- <li><%= button_link_to Spree.t(:back_to_adjustments_list), spree.admin_order_adjustments_url(@order), :icon => 'icon-arrow-left' %></li>
8
+ <li><%= button_link_to Spree.t(:back_to_adjustments_list), spree.admin_order_adjustments_url(@order), :icon => 'arrow-left' %></li>
9
9
  <% end %>
10
10
 
11
11
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @adjustment } %>
@@ -14,9 +14,9 @@
14
14
  <%= render :partial => 'form', :locals => { :f => f } %>
15
15
 
16
16
  <div class="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
- <%= link_to_with_icon 'icon-remove', Spree.t('actions.cancel'), admin_order_adjustments_url(@order), :class => 'button' %>
19
+ <%= link_to_with_icon 'remove', Spree.t('actions.cancel'), admin_order_adjustments_url(@order), :class => 'button' %>
20
20
  </div>
21
21
  </fieldset>
22
22
  <% end %>
@@ -1,12 +1,12 @@
1
1
  <%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Adjustments' } %>
2
2
 
3
3
  <% content_for :page_title do %>
4
- <i class="icon-arrow-right"></i> <%= Spree.t(:adjustments) %>
4
+ <i class="fa fa-arrow-right"></i> <%= Spree.t(:adjustments) %>
5
5
  <% end %>
6
6
 
7
7
  <% content_for :page_actions do %>
8
- <li><%= button_link_to Spree.t(:new_adjustment), new_admin_order_adjustment_url(@order), :icon => 'icon-plus' %></li>
9
- <li><%= button_link_to Spree.t(:back_to_orders_list), admin_orders_path, :icon => 'icon-arrow-left' %></li>
8
+ <li><%= button_link_to Spree.t(:new_adjustment), new_admin_order_adjustment_url(@order), :icon => 'plus' %></li>
9
+ <li><%= button_link_to Spree.t(:back_to_orders_list), admin_orders_path, :icon => 'arrow-left' %></li>
10
10
  <% end %>
11
11
 
12
12
  <%= render :partial => 'adjustments_table' %>
@@ -14,11 +14,11 @@
14
14
  <% if @order.can_add_coupon? %>
15
15
  <div data-hook="adjustments_new_coupon_code">
16
16
  <%= text_field_tag "coupon_code", "", :placeholder => Spree.t(:coupon_code) %>
17
- <%= button Spree.t(:add_coupon_code), 'icon-plus', 'submit', :id => "add_coupon_code" %>
17
+ <%= button Spree.t(:add_coupon_code), 'plus', 'submit', :id => "add_coupon_code" %>
18
18
  </div>
19
19
  <% end %>
20
20
  <%= javascript_tag do -%>
21
21
  var order_number = '<%= @order.number %>';
22
22
  <% end -%>
23
23
 
24
- <%= button_link_to Spree.t(:continue), @order.cart? ? new_admin_order_payment_url(@order) : admin_orders_url, :icon => 'icon-arrow-right' %>
24
+ <%= button_link_to Spree.t(:continue), @order.cart? ? new_admin_order_payment_url(@order) : admin_orders_url, :icon => 'arrow-right' %>
@@ -1,11 +1,11 @@
1
1
  <%= render :partial => 'spree/admin/shared/order_tabs', :locals => { :current => 'Adjustments' } %>
2
2
 
3
3
  <% content_for :page_title do %>
4
- <i class="icon-arrow-right"></i> <%= Spree.t(:new_adjustment) %>
4
+ <i class="fa fa-arrow-right"></i> <%= Spree.t(:new_adjustment) %>
5
5
  <% end %>
6
6
 
7
7
  <% content_for :page_actions do %>
8
- <li><%= button_link_to Spree.t(:back_to_adjustments_list), spree.admin_order_adjustments_url(@order), :icon => 'icon-arrow-left' %></li>
8
+ <li><%= button_link_to Spree.t(:back_to_adjustments_list), spree.admin_order_adjustments_url(@order), :icon => 'arrow-left' %></li>
9
9
  <% end %>
10
10
 
11
11
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @adjustment } %>
@@ -15,9 +15,9 @@
15
15
  <%= render :partial => 'form', :locals => { :f => f } %>
16
16
 
17
17
  <div class="filter-actions actions" data-hook="buttons">
18
- <%= button Spree.t(:continue), 'icon-arrow-right' %>
18
+ <%= button Spree.t(:continue), 'arrow-right' %>
19
19
  <span class="or"><%= Spree.t(:or) %></span>
20
- <%= button_link_to Spree.t('actions.cancel'), admin_order_adjustments_url(@order), :icon => 'icon-remove' %>
20
+ <%= button_link_to Spree.t('actions.cancel'), admin_order_adjustments_url(@order), :icon => 'remove' %>
21
21
  </div>
22
22
  </fieldset>
23
23
  <% 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_countries_list), spree.admin_countries_path, :icon => 'icon-arrow-left' %>
9
+ <%= button_link_to Spree.t(:back_to_countries_list), spree.admin_countries_path, :icon => 'arrow-left' %>
10
10
  </li>
11
11
  <% end %>
12
12
 
@@ -7,7 +7,7 @@
7
7
  <% content_for :page_actions do %>
8
8
  <ul class="actions inline-menu">
9
9
  <li>
10
- <%= button_link_to Spree.t(:new_country), new_object_url, { :icon => 'icon-plus', :id => 'admin_new_country' } %>
10
+ <%= button_link_to Spree.t(:new_country), new_object_url, { :icon => 'plus', :id => 'admin_new_country' } %>
11
11
  </li>
12
12
  </ul>
13
13
  <% end %>
@@ -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_countries_list), admin_countries_path, :class => 'button' %></li>
6
+ <li><%= link_to_with_icon 'arrow-left', Spree.t(:back_to_countries_list), admin_countries_path, :class => 'button' %></li>
7
7
  <% end %>
8
8
 
9
9
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @countries } %>
@@ -75,9 +75,9 @@
75
75
  </div>
76
76
 
77
77
  <div class="form-buttons filter-actions actions" data-hook="buttons">
78
- <%= button Spree.t('actions.update'), 'icon-refresh' %>
78
+ <%= button Spree.t('actions.update'), 'refresh' %>
79
79
  <span class="or"><%= Spree.t(:or) %></span>
80
- <%= link_to_with_icon 'icon-remove', Spree.t('actions.cancel'), edit_admin_general_settings_url, :class => 'button' %>
80
+ <%= link_to_with_icon 'remove', Spree.t('actions.cancel'), edit_admin_general_settings_url, :class => 'button' %>
81
81
  </div>
82
82
 
83
83
  </fieldset>
@@ -5,7 +5,7 @@
5
5
  <%= render :partial => 'spree/shared/error_messages', :locals => { :target => @image } %>
6
6
 
7
7
  <% content_for :page_actions do %>
8
- <li><%= button_link_to Spree.t(:back_to_images_list), admin_product_images_url(@product), :icon => 'icon-arrow-left' %></li>
8
+ <li><%= button_link_to Spree.t(:back_to_images_list), admin_product_images_url(@product), :icon => 'arrow-left' %></li>
9
9
  <% end %>
10
10
 
11
11
  <%= form_for [:admin, @product, @image], :html => { :multipart => true } do |f| %>
@@ -20,9 +20,9 @@
20
20
  </div>
21
21
  <div class="clear"></div>
22
22
  <div class="form-buttons filter-actions actions" data-hook="buttons">
23
- <%= button Spree.t('actions.update'), 'icon-refresh' %>
23
+ <%= button Spree.t('actions.update'), 'refresh' %>
24
24
  <span class="or"><%= Spree.t(:or) %></span>
25
- <%= link_to Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button icon-remove' %>
25
+ <%= link_to Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button remove' %>
26
26
  </div>
27
27
  </fieldset>
28
28
  <% end %>
@@ -3,7 +3,7 @@
3
3
  <%= render :partial => 'spree/admin/shared/product_tabs', :locals => {:current => 'Images'} %>
4
4
 
5
5
  <% content_for :page_actions do %>
6
- <li><%= link_to_with_icon('icon-plus', Spree.t(:new_image), new_admin_product_image_url(@product), :id => 'new_image_link', :class => 'button') %></li>
6
+ <li><%= link_to_with_icon('plus', Spree.t(:new_image), new_admin_product_image_url(@product), :id => 'new_image_link', :class => 'button') %></li>
7
7
  <% end %>
8
8
 
9
9
  <div id="images" data-hook></div>
@@ -48,7 +48,7 @@
48
48
  <% end %>
49
49
  <td><%= image.alt %></td>
50
50
  <td class="actions">
51
- <%= link_to_with_icon 'icon-edit', Spree.t(:edit), edit_admin_product_image_url(@product, image), :no_text => true, :data => {:action => 'edit'} %>
51
+ <%= link_to_with_icon 'edit', Spree.t(:edit), edit_admin_product_image_url(@product, image), :no_text => true, :data => {:action => 'edit'} %>
52
52
  <%= link_to_delete image, { :url => admin_product_image_url(@product, image), :no_text => true } %>
53
53
  </td>
54
54
  </tr>
@@ -5,9 +5,9 @@
5
5
  <%= render :partial => 'form', :locals => { :f => f } %>
6
6
 
7
7
  <div class="form-buttons filter-actions actions" data-hook="buttons">
8
- <%= button Spree.t('actions.update'), 'icon-refresh' %>
8
+ <%= button Spree.t('actions.update'), 'refresh' %>
9
9
  <span class="or"><%= Spree.t(:or) %></span>
10
- <%= link_to_with_icon 'icon-remove', Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button' %>
10
+ <%= link_to_with_icon 'remove', Spree.t('actions.cancel'), admin_product_images_url(@product), :id => 'cancel_link', :class => 'button' %>
11
11
  </div>
12
12
  </fieldset>
13
13
  <% end %>
@@ -1,15 +1,15 @@
1
1
  <%= render :partial => 'spree/admin/shared/order_tabs', locals: { current: 'Payments' }%>
2
2
 
3
3
  <% content_for :page_title do %>
4
- <i class="icon-arrow-right"></i>
4
+ <i class="fa fa-arrow-right"></i>
5
5
  <%= I18n.t(:one, scope: "activerecord.models.spree/payment") %>
6
- <i class="icon-arrow-right"></i>
6
+ <i class="fa fa-arrow-right"></i>
7
7
  <%= Spree.t(:log_entries) %>
8
8
  <% end %>
9
9
 
10
10
  <% content_for :page_actions do %>
11
- <li><%= button_link_to Spree.t(:logs), spree.admin_order_payment_log_entries_url(@order, @payment), :icon => 'icon-archive' %></li>
12
- <li><%= button_link_to Spree.t(:back_to_payment), spree.admin_order_payment_url(@order, @payment), :icon => 'icon-arrow-left' %></li>
11
+ <li><%= button_link_to Spree.t(:logs), spree.admin_order_payment_log_entries_url(@order, @payment), :icon => 'archive' %></li>
12
+ <li><%= button_link_to Spree.t(:back_to_payment), spree.admin_order_payment_url(@order, @payment), :icon => 'arrow-left' %></li>
13
13
  <% end %>
14
14
 
15
15
  <table class='index' id='listing_log_entries'>
@@ -17,7 +17,7 @@
17
17
  <thead>
18
18
  <tr class="log_entry <%= entry.parsed_details.success? ? 'success' : 'fail' %>">
19
19
  <td colspan='2'>
20
- <h4><i class='icon icon-<%= entry.parsed_details.success? ? 'ok-circle' : 'remove-sign' %>'></i> <%= pretty_time(entry.created_at) %></h4>
20
+ <h4><i class='fa fa-<%= entry.parsed_details.success? ? 'ok-circle' : 'remove-sign' %>'></i> <%= pretty_time(entry.created_at) %></h4>
21
21
  </td>
22
22
  </tr>
23
23
  </thead>
@@ -7,11 +7,11 @@
7
7
  <% content_for :page_actions do %>
8
8
  <li>
9
9
  <span id="new_add_option_value" data-hook>
10
- <%= link_to_add_fields Spree.t(:add_option_value), "tbody#option_values", :class => 'button icon-plus' %>
10
+ <%= link_to_add_fields Spree.t(:add_option_value), "tbody#option_values", :class => 'button fa fa-plus' %>
11
11
  </span>
12
12
  </li>
13
13
  <li>
14
- <%= button_link_to Spree.t(:back_to_option_types_list), spree.admin_option_types_path, :icon => 'icon-arrow-left' %>
14
+ <%= button_link_to Spree.t(:back_to_option_types_list), spree.admin_option_types_path, :icon => 'arrow-left' %>
15
15
  </li>
16
16
  <% end %>
17
17
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  <% content_for :page_actions do %>
6
6
  <li id="new_ot_link">
7
- <%= button_link_to Spree.t(:new_option_type), new_admin_option_type_url, { :remote => true, :icon => 'icon-plus', :id => 'new_option_type_link' } %>
7
+ <%= button_link_to Spree.t(:new_option_type), new_admin_option_type_url, { :remote => true, :icon => 'plus', :id => 'new_option_type_link' } %>
8
8
  </li>
9
9
  <% end %>
10
10
 
@@ -33,10 +33,10 @@
33
33
  <td class="line-item-total align-center"><%= line_item_shipment_price(item, item.quantity) %></td>
34
34
  <td class="cart-line-item-delete actions" data-hook="cart_line_item_delete">
35
35
  <% if can? :update, item %>
36
- <%= link_to '', '#', :class => 'save-line-item icon_link icon-ok no-text with-tip', :data => { 'line-item-id' => item.id, :action => 'save'}, :title => Spree.t('actions.save'), :style => 'display: none' %>
37
- <%= link_to '', '#', :class => 'cancel-line-item icon_link icon-cancel no-text with-tip', :data => {:action => 'cancel'}, :title => Spree.t('actions.cancel'), :style => 'display: none' %>
38
- <%= link_to '', '#', :class => 'edit-line-item icon_link icon-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('edit') %>
39
- <%= link_to '', '#', :class => 'delete-line-item icon-trash no-text with-tip', :data => { 'line-item-id' => item.id, :action => 'remove'}, :title => Spree.t('delete') %>
36
+ <%= link_to '', '#', :class => 'save-line-item fa fa-check no-text with-tip', :data => { 'line-item-id' => item.id, :action => 'save'}, :title => Spree.t('actions.save'), :style => 'display: none' %>
37
+ <%= link_to '', '#', :class => 'cancel-line-item fa fa-cancel no-text with-tip', :data => {:action => 'cancel'}, :title => Spree.t('actions.cancel'), :style => 'display: none' %>
38
+ <%= link_to '', '#', :class => 'edit-line-item fa fa-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('edit') %>
39
+ <%= link_to '', '#', :class => 'delete-line-item fa fa-trash no-text with-tip', :data => { 'line-item-id' => item.id, :action => 'remove'}, :title => Spree.t('delete') %>
40
40
  <% end %>
41
41
  </td>
42
42
  </tr>
@@ -1,4 +1,4 @@
1
- <div id="<%= "shipment_#{shipment.id}" %>">
1
+ <div id="<%= "shipment_#{shipment.id}" %>" data-hook="admin_shipment_form">
2
2
  <%= render :partial => "spree/admin/variants/split", :formats => :js %>
3
3
  <fieldset class="no-border-bottom">
4
4
  <legend align="center" class="stock-location" data-hook="stock-location">
@@ -9,7 +9,7 @@
9
9
  <strong class="stock-location-name" data-hook="stock-location-name">'<%= shipment.stock_location.name %>'</strong>
10
10
  <% if shipment.ready? and can? :update, shipment %>
11
11
  -
12
- <%= link_to Spree.t(:ship), '#', :class => 'ship button icon-arrow-right', :data => {'shipment-number' => shipment.number} %>
12
+ <%= link_to Spree.t(:ship), '#', :class => 'ship button fa fa-arrow-right', :data => {'shipment-number' => shipment.number} %>
13
13
  <% end %>
14
14
  </legend>
15
15
  </fieldset>
@@ -33,7 +33,7 @@
33
33
  </thead>
34
34
 
35
35
  <tbody data-shipment-number="<%= shipment.number %>" data-order-number="<%= order.number %>">
36
- <%= render 'spree/admin/orders/shipment_manifest', order: order, shipment: shipment %>
36
+ <%= render 'spree/admin/orders/shipment_manifest', shipment: shipment %>
37
37
 
38
38
  <% unless shipment.shipped? %>
39
39
  <tr class="edit-method hidden total">
@@ -47,18 +47,19 @@
47
47
  </td>
48
48
  <td class="actions">
49
49
  <% if can? :update, shipment %>
50
- <%= link_to '', '#', :class => 'save-method icon_link icon-ok no-text with-tip',
50
+ <%= link_to '', '#', :class => 'save-method fa fa-check no-text with-tip',
51
51
  :data => {'shipment-number' => shipment.number, :action => 'save'}, title: Spree.t('actions.save') %>
52
- <%= link_to '', '#', :class => 'cancel-method icon_link icon-cancel no-text with-tip',
52
+ <%= link_to '', '#', :class => 'cancel-method fa fa-cancel no-text with-tip',
53
53
  :data => {:action => 'cancel'}, :title => Spree.t('actions.cancel') %>
54
54
  <% end %>
55
55
  </td>
56
56
  </tr>
57
+ <% end %>
57
58
 
58
59
  <tr class="show-method total">
59
- <% if shipment.shipping_method %>
60
+ <% if rate = shipment.selected_shipping_rate %>
60
61
  <td colspan="4">
61
- <strong><%= shipment.shipping_method.name %></strong>
62
+ <strong><%= rate.name %></strong>
62
63
  </td>
63
64
  <td class="total" align="center">
64
65
  <span><%= shipment.display_cost %></span>
@@ -68,12 +69,12 @@
68
69
  <% end %>
69
70
 
70
71
  <td class="actions">
71
- <% if can? :update, shipment %>
72
- <%= link_to '', '#', :class => 'edit-method icon_link icon-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('edit') %>
72
+ <% if( (can? :update, shipment) and !shipment.shipped?) %>
73
+ <%= link_to '', '#', :class => 'edit-method fa fa-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('edit') %>
73
74
  <% end %>
74
75
  </td>
75
76
  </tr>
76
- <% end %>
77
+
77
78
 
78
79
  <tr class="edit-tracking hidden total">
79
80
  <td colspan="5">
@@ -82,16 +83,16 @@
82
83
  </td>
83
84
  <td class="actions">
84
85
  <% if can? :update, shipment %>
85
- <%= link_to '', '#', :class => 'save-tracking icon_link icon-ok no-text with-tip', :data => {'shipment-number' => shipment.number, :action => 'save'}, :title => Spree.t('actions.save') %>
86
- <%= link_to '', '#', :class => 'cancel-tracking icon_link icon-cancel no-text with-tip', :data => {:action => 'cancel'}, :title => Spree.t('actions.cancel') %>
86
+ <%= link_to '', '#', :class => 'save-tracking fa fa-check no-text with-tip', :data => {'shipment-number' => shipment.number, :action => 'save'}, :title => Spree.t('actions.save') %>
87
+ <%= link_to '', '#', :class => 'cancel-tracking fa fa-cancel no-text with-tip', :data => {:action => 'cancel'}, :title => Spree.t('actions.cancel') %>
87
88
  <% end %>
88
89
  </td>
89
90
  </tr>
90
91
 
91
- <% if @order.special_instructions.present? %>
92
+ <% if order.special_instructions.present? %>
92
93
  <tr class='special_instructions'>
93
94
  <td colspan="5">
94
- <strong><%= Spree.t(:special_instructions) %>:&nbsp;</strong><%= @order.special_instructions %>
95
+ <strong><%= Spree.t(:special_instructions) %>:&nbsp;</strong><%= order.special_instructions %>
95
96
  </td>
96
97
  </tr>
97
98
  <% end %>
@@ -106,7 +107,7 @@
106
107
  </td>
107
108
  <td class="actions">
108
109
  <% if can? :update, shipment %>
109
- <%= link_to '', '#', :class => 'edit-tracking icon_link icon-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('edit') %>
110
+ <%= link_to '', '#', :class => 'edit-tracking fa fa-edit no-text with-tip', :data => {:action => 'edit'}, :title => Spree.t('edit') %>
110
111
  <% end %>
111
112
  </td>
112
113
  </tr>