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
@@ -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('
|
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('
|
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('
|
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('
|
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('
|
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('
|
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('
|
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 '
|
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
|
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 => "
|
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] += "
|
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 => "
|
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="
|
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 => '
|
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), '
|
17
|
+
<%= button Spree.t(:continue), 'arrow-right' %>
|
18
18
|
<span class="or"><%= Spree.t(:or) %></span>
|
19
|
-
<%= link_to_with_icon '
|
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="
|
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 => '
|
9
|
-
<li><%= button_link_to Spree.t(:back_to_orders_list), admin_orders_path, :icon => '
|
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), '
|
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 => '
|
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="
|
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 => '
|
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), '
|
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 => '
|
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 => '
|
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 => '
|
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 '
|
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'), '
|
78
|
+
<%= button Spree.t('actions.update'), 'refresh' %>
|
79
79
|
<span class="or"><%= Spree.t(:or) %></span>
|
80
|
-
<%= link_to_with_icon '
|
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 => '
|
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'), '
|
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
|
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('
|
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 '
|
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'), '
|
8
|
+
<%= button Spree.t('actions.update'), 'refresh' %>
|
9
9
|
<span class="or"><%= Spree.t(:or) %></span>
|
10
|
-
<%= link_to_with_icon '
|
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="
|
4
|
+
<i class="fa fa-arrow-right"></i>
|
5
5
|
<%= I18n.t(:one, scope: "activerecord.models.spree/payment") %>
|
6
|
-
<i class="
|
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 => '
|
12
|
-
<li><%= button_link_to Spree.t(:back_to_payment), spree.admin_order_payment_url(@order, @payment), :icon => '
|
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='
|
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
|
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 => '
|
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 => '
|
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
|
37
|
-
<%= link_to '', '#', :class => 'cancel-line-item
|
38
|
-
<%= link_to '', '#', :class => 'edit-line-item
|
39
|
-
<%= link_to '', '#', :class => 'delete-line-item
|
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
|
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',
|
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
|
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
|
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.
|
60
|
+
<% if rate = shipment.selected_shipping_rate %>
|
60
61
|
<td colspan="4">
|
61
|
-
<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
|
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
|
-
|
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
|
86
|
-
<%= link_to '', '#', :class => 'cancel-tracking
|
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
|
92
|
+
<% if order.special_instructions.present? %>
|
92
93
|
<tr class='special_instructions'>
|
93
94
|
<td colspan="5">
|
94
|
-
<strong><%= Spree.t(:special_instructions) %>: </strong><%=
|
95
|
+
<strong><%= Spree.t(:special_instructions) %>: </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
|
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>
|