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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c28791d3f7243ffae36fe5fa92d3d8ac759d88b
|
4
|
+
data.tar.gz: 1407c077a4ff761036dfc7c4db6cb045d39e9093
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f31473246ca26399b5436fe419204235fdb2576da21b0b9a3a3273f669c72cee56edd4f7591ea3448e4affac1ea59a1bc37655553a92c0b5985f039117e268cb
|
7
|
+
data.tar.gz: dc5cb36da3effc2be58c104e3abeb4e24a4dada50c14fa5ae8eb8458cf10ec573bf244f561cd3ff567f8f6250e3f00c8eb7c5bb68c6aa90796001ae49ba56b9a
|
@@ -22,7 +22,7 @@ jQuery(function($) {
|
|
22
22
|
# like states_spec and shipping_methods_spec. Let's not do this. %>
|
23
23
|
<% unless Rails.env.test? %>
|
24
24
|
$('.main-menu-wrapper ul').AdaptiveMenu({
|
25
|
-
text: "<a href='#'><i class='
|
25
|
+
text: "<a href='#'><i class='fa fa-chevron-down'></i> " + Spree.translations.more + "</a>",
|
26
26
|
klass: "dropdown"
|
27
27
|
});
|
28
28
|
<% end %>
|
@@ -49,7 +49,7 @@ jQuery ($) ->
|
|
49
49
|
$new_button: (action) ->
|
50
50
|
$('<a />')
|
51
51
|
.attr
|
52
|
-
class: "
|
52
|
+
class: "fa fa-#{action} icon_link no-text with-tip"
|
53
53
|
title: Spree.translations[action]
|
54
54
|
.data
|
55
55
|
action: action
|
@@ -66,7 +66,7 @@ jQuery ($) ->
|
|
66
66
|
fadeOutTime: 50
|
67
67
|
|
68
68
|
$buttons: ->
|
69
|
-
@$actions().find(".
|
69
|
+
@$actions().find(".fa-#{@action}, .fa-cancel")
|
70
70
|
|
71
71
|
$actions: ->
|
72
72
|
@$el.find('.actions')
|
@@ -59,10 +59,10 @@ $(document).ready(function () {
|
|
59
59
|
});
|
60
60
|
|
61
61
|
// handle ship click
|
62
|
-
$('[data-hook=
|
62
|
+
$('[data-hook=admin_shipment_form] a.ship').on('click', function () {
|
63
63
|
var link = $(this);
|
64
64
|
var shipment_number = link.data('shipment-number');
|
65
|
-
var url = Spree.url(Spree.routes.
|
65
|
+
var url = Spree.url(Spree.routes.shipments_api + '/' + shipment_number + '/ship.json');
|
66
66
|
$.ajax({
|
67
67
|
type: 'PUT',
|
68
68
|
url: url
|
@@ -78,12 +78,12 @@ $(document).ready(function () {
|
|
78
78
|
$('a.cancel-method').click(toggleMethodEdit);
|
79
79
|
|
80
80
|
// handle shipping method save
|
81
|
-
$('[data-hook=
|
81
|
+
$('[data-hook=admin_shipment_form] a.save-method').on('click', function () {
|
82
82
|
var link = $(this);
|
83
83
|
var shipment_number = link.data('shipment-number');
|
84
84
|
var selected_shipping_rate_id = link.parents('tbody').find("select#selected_shipping_rate_id[data-shipment-number='" + shipment_number + "']").val();
|
85
85
|
var unlock = link.parents('tbody').find("input[name='open_adjustment'][data-shipment-number='" + shipment_number + "']:checked").val();
|
86
|
-
var url = Spree.url(Spree.routes.
|
86
|
+
var url = Spree.url(Spree.routes.shipments_api + '/' + shipment_number + '.json');
|
87
87
|
|
88
88
|
$.ajax({
|
89
89
|
type: 'PUT',
|
@@ -106,11 +106,11 @@ $(document).ready(function () {
|
|
106
106
|
$('a.cancel-tracking').on('click', toggleTrackingEdit);
|
107
107
|
|
108
108
|
// handle tracking save
|
109
|
-
$('[data-hook=
|
109
|
+
$('[data-hook=admin_shipment_form] a.save-tracking').on('click', function () {
|
110
110
|
var link = $(this);
|
111
111
|
var shipment_number = link.data('shipment-number');
|
112
112
|
var tracking = link.parents('tbody').find('input#tracking').val();
|
113
|
-
var url = Spree.url(Spree.routes.
|
113
|
+
var url = Spree.url(Spree.routes.shipments_api + '/' + shipment_number + '.json');
|
114
114
|
|
115
115
|
$.ajax({
|
116
116
|
type: 'PUT',
|
@@ -129,12 +129,11 @@ $(document).ready(function () {
|
|
129
129
|
|
130
130
|
});
|
131
131
|
|
132
|
-
|
133
132
|
adjustShipmentItems = function(shipment_number, variant_id, quantity){
|
134
133
|
var shipment = _.findWhere(shipments, {number: shipment_number + ''});
|
135
134
|
var inventory_units = _.where(shipment.inventory_units, {variant_id: variant_id});
|
136
135
|
|
137
|
-
var url = Spree.routes.
|
136
|
+
var url = Spree.routes.shipments_api + "/" + shipment_number;
|
138
137
|
|
139
138
|
var new_quantity = 0;
|
140
139
|
if(inventory_units.length<quantity){
|
@@ -242,7 +241,7 @@ completeItemSplit = function(event) {
|
|
242
241
|
$.ajax({
|
243
242
|
type: "PUT",
|
244
243
|
async: false,
|
245
|
-
url: Spree.url(Spree.routes.
|
244
|
+
url: Spree.url(Spree.routes.shipments_api + "/" + original_shipment_number + "/remove.json"),
|
246
245
|
data: { variant_id: variant_id, quantity: quantity }
|
247
246
|
});
|
248
247
|
|
@@ -250,7 +249,7 @@ completeItemSplit = function(event) {
|
|
250
249
|
$.ajax({
|
251
250
|
type: "POST",
|
252
251
|
async: false,
|
253
|
-
url: Spree.url(Spree.routes.
|
252
|
+
url: Spree.url(Spree.routes.shipments_api + "?shipment[order_id]=" + order_number),
|
254
253
|
data: { variant_id: variant_id, quantity: quantity, stock_location_id: stock_location_id }
|
255
254
|
}).done(function(msg) {
|
256
255
|
advanceOrder();
|
@@ -259,7 +258,7 @@ completeItemSplit = function(event) {
|
|
259
258
|
$.ajax({
|
260
259
|
type: "PUT",
|
261
260
|
async: false,
|
262
|
-
url: Spree.url(Spree.routes.
|
261
|
+
url: Spree.url(Spree.routes.shipments_api + "/" + target_shipment_number + "/add.json"),
|
263
262
|
data: { variant_id: variant_id, quantity: quantity }
|
264
263
|
}).done(function(msg) {
|
265
264
|
advanceOrder();
|
@@ -302,7 +301,7 @@ addVariantFromStockLocation = function() {
|
|
302
301
|
if(shipment==undefined){
|
303
302
|
$.ajax({
|
304
303
|
type: "POST",
|
305
|
-
url: Spree.url(Spree.routes.
|
304
|
+
url: Spree.url(Spree.routes.shipments_api + "?shipment[order_id]=" + order_number),
|
306
305
|
data: { variant_id: variant_id, quantity: quantity, stock_location_id: stock_location_id }
|
307
306
|
}).done(function( msg ) {
|
308
307
|
advanceOrder();
|
@@ -8,15 +8,15 @@ root.taxon_tree_menu = (obj, context) ->
|
|
8
8
|
edit_url.setPath(edit_url.path() + '/' + obj.attr("id") + "/edit");
|
9
9
|
|
10
10
|
create:
|
11
|
-
label: "<i class='
|
11
|
+
label: "<i class='fa fa-plus'></i> " + Spree.translations.add,
|
12
12
|
action: (obj) -> context.create(obj)
|
13
13
|
rename:
|
14
|
-
label: "<i class='
|
14
|
+
label: "<i class='fa fa-pencil'></i> " + Spree.translations.rename,
|
15
15
|
action: (obj) -> context.rename(obj)
|
16
16
|
remove:
|
17
|
-
label: "<i class='
|
17
|
+
label: "<i class='fa fa-trash'></i> " + Spree.translations.remove,
|
18
18
|
action: (obj) -> context.remove(obj)
|
19
19
|
edit:
|
20
20
|
separator_before: true,
|
21
|
-
label: "<i class='
|
21
|
+
label: "<i class='fa fa-edit'></i> " + Spree.translations.edit,
|
22
22
|
action: (obj) -> window.location = edit_url.toString()
|
@@ -10,8 +10,8 @@ $(document).ready(function() {
|
|
10
10
|
});
|
11
11
|
|
12
12
|
formatVariantResult = function(variant) {
|
13
|
-
if (variant["images"][0] != undefined && variant["images"][0].
|
14
|
-
variant.image = variant.images[0].
|
13
|
+
if (variant["images"][0] != undefined && variant["images"][0].mini_url != undefined) {
|
14
|
+
variant.image = variant.images[0].mini_url
|
15
15
|
}
|
16
16
|
return variantTemplate({ variant: variant })
|
17
17
|
}
|
@@ -2,10 +2,10 @@
|
|
2
2
|
html.ie {
|
3
3
|
|
4
4
|
// Properly align icons in circle
|
5
|
-
table td.actions .no-text.
|
5
|
+
table td.actions .no-text.fa-edit {
|
6
6
|
padding-top: 3px !important;
|
7
7
|
}
|
8
|
-
table td.actions .no-text.
|
8
|
+
table td.actions .no-text.fa-envelope-alt {
|
9
9
|
padding-top: 4px !important;
|
10
10
|
}
|
11
11
|
|
@@ -8,10 +8,10 @@
|
|
8
8
|
}
|
9
9
|
|
10
10
|
.jstree-open > .jstree-icon {
|
11
|
-
@extend .
|
11
|
+
@extend .fa-caret-down;
|
12
12
|
}
|
13
13
|
.jstree-closed > .jstree-icon {
|
14
|
-
@extend .
|
14
|
+
@extend .fa-caret-right;
|
15
15
|
}
|
16
16
|
|
17
17
|
li {
|
@@ -31,7 +31,7 @@
|
|
31
31
|
|
32
32
|
.jstree-icon {
|
33
33
|
padding-left: 0px;
|
34
|
-
@extend .
|
34
|
+
@extend .fa-arrows;
|
35
35
|
}
|
36
36
|
}
|
37
37
|
}
|
@@ -45,16 +45,16 @@
|
|
45
45
|
@extend [class^="icon-"]:before;
|
46
46
|
}
|
47
47
|
#vakata-dragged.jstree-apple .jstree-invalid {
|
48
|
-
@extend .
|
48
|
+
@extend .fa-bars;
|
49
49
|
color: $color-5;
|
50
50
|
}
|
51
51
|
#vakata-dragged.jstree-apple .jstree-ok {
|
52
|
-
@extend .
|
52
|
+
@extend .fa-check;
|
53
53
|
color: $color-2;
|
54
54
|
}
|
55
55
|
|
56
56
|
#jstree-marker {
|
57
|
-
@extend .
|
57
|
+
@extend .fa-caret-right;
|
58
58
|
color: $color-body-text !important;
|
59
59
|
width: 4px !important;
|
60
60
|
}
|
@@ -23,9 +23,6 @@
|
|
23
23
|
.select2-search-choice-close {
|
24
24
|
background-image: none !important;
|
25
25
|
font-size: 100% !important;
|
26
|
-
@extend .icon-remove;
|
27
|
-
@extend [class^="icon-"]:before;
|
28
|
-
margin-top: 2px;
|
29
26
|
}
|
30
27
|
}
|
31
28
|
|
@@ -35,7 +32,7 @@
|
|
35
32
|
}
|
36
33
|
|
37
34
|
&.select2-dropdown-open .select2-choice div b {
|
38
|
-
@extend .
|
35
|
+
@extend .fa-caret-up
|
39
36
|
}
|
40
37
|
}
|
41
38
|
}
|
@@ -53,7 +50,8 @@
|
|
53
50
|
}
|
54
51
|
|
55
52
|
.select2-search {
|
56
|
-
@extend .
|
53
|
+
@extend .fa;
|
54
|
+
@extend .fa-search;
|
57
55
|
|
58
56
|
font-size: 100%;
|
59
57
|
color: darken($color-border, 15);
|
@@ -174,8 +172,8 @@
|
|
174
172
|
.select2-search-choice-close {
|
175
173
|
background-image: none !important;
|
176
174
|
font-size: 85% !important;
|
177
|
-
@extend .
|
178
|
-
@extend
|
175
|
+
@extend .fa;
|
176
|
+
@extend .fa-bars;
|
179
177
|
margin-left: 2px;
|
180
178
|
color: $color-1;
|
181
179
|
}
|
@@ -14,12 +14,22 @@
|
|
14
14
|
}
|
15
15
|
}
|
16
16
|
|
17
|
-
.
|
18
|
-
.
|
19
|
-
.
|
17
|
+
.fa-email:before { @extend .fa-envelope:before }
|
18
|
+
.fa-resume:before { @extend .fa-refresh:before }
|
19
|
+
.fa-approve:before { @extend .fa-check:before }
|
20
20
|
|
21
|
-
.
|
22
|
-
.
|
21
|
+
.fa-cancel:before,
|
22
|
+
.fa-void:before { @extend .fa-times:before }
|
23
23
|
|
24
|
-
.
|
25
|
-
|
24
|
+
.fa-trash:before { @extend .fa-trash-o:before }
|
25
|
+
|
26
|
+
.fa-capture:before { @extend .fa-check:before }
|
27
|
+
.fa-credit:before { @extend .fa-check:before }
|
28
|
+
.fa-approve:before { @extend .fa-check:before }
|
29
|
+
|
30
|
+
|
31
|
+
button, a {
|
32
|
+
&.fa:before {
|
33
|
+
padding-right: 5px;
|
34
|
+
}
|
35
|
+
}
|
@@ -41,7 +41,7 @@ table {
|
|
41
41
|
font-size: $body-font-size;
|
42
42
|
}
|
43
43
|
|
44
|
-
[class*='
|
44
|
+
[class*='fa-'].no-text {
|
45
45
|
font-size: 120%;
|
46
46
|
background-color: very-light($color-3);
|
47
47
|
border: 1px solid $color-border;
|
@@ -49,7 +49,7 @@ table {
|
|
49
49
|
width: 29px;
|
50
50
|
height: 29px;
|
51
51
|
display: inline-block;
|
52
|
-
padding-top:
|
52
|
+
padding-top: 6px;
|
53
53
|
|
54
54
|
&:before {
|
55
55
|
text-align: center !important;
|
@@ -62,12 +62,12 @@ table {
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
|
65
|
-
button[class*='
|
65
|
+
button[class*='fa-'] {
|
66
66
|
color: $color-link;
|
67
67
|
padding: 0 !important;
|
68
68
|
}
|
69
69
|
|
70
|
-
.
|
70
|
+
.fa-envelope-alt, .fa-eye-open {
|
71
71
|
color: $color-link;
|
72
72
|
padding-left: 0px;
|
73
73
|
|
@@ -76,19 +76,19 @@ table {
|
|
76
76
|
color: $color-1;
|
77
77
|
}
|
78
78
|
}
|
79
|
-
.
|
79
|
+
.fa-trash:hover, .fa-void:hover {
|
80
80
|
background-color: $color-error;
|
81
81
|
color: $color-1;
|
82
82
|
}
|
83
|
-
.
|
83
|
+
.fa-cancel:hover {
|
84
84
|
background-color: $color-notice;
|
85
85
|
color: $color-1;
|
86
86
|
}
|
87
|
-
.
|
87
|
+
.fa-edit:hover, .fa-capture:hover, .fa-check:hover, .fa-plus:hover, .fa-save:hover {
|
88
88
|
background-color: $color-success;
|
89
89
|
color: $color-1;
|
90
90
|
}
|
91
|
-
.
|
91
|
+
.fa-copy:hover {
|
92
92
|
background-color: $color-notice;
|
93
93
|
color: $color-1;
|
94
94
|
}
|
@@ -105,7 +105,7 @@ table {
|
|
105
105
|
|
106
106
|
.handle {
|
107
107
|
@extend [class^="icon-"]:before;
|
108
|
-
@extend .
|
108
|
+
@extend .fa-bars;
|
109
109
|
cursor: move;
|
110
110
|
}
|
111
111
|
|
@@ -21,7 +21,7 @@ module Spree
|
|
21
21
|
def update
|
22
22
|
if @order.update_attributes(order_params)
|
23
23
|
if params[:guest_checkout] == "false"
|
24
|
-
@order.associate_user!(Spree.user_class.
|
24
|
+
@order.associate_user!(Spree.user_class.find(params[:user_id]), @order.email.blank?)
|
25
25
|
end
|
26
26
|
while @order.next; end
|
27
27
|
|
@@ -99,7 +99,7 @@ module Spree
|
|
99
99
|
|
100
100
|
params[:q][:s] ||= "name asc"
|
101
101
|
@collection = super
|
102
|
-
@collection = @collection.with_deleted if params[:q]
|
102
|
+
@collection = @collection.with_deleted if params[:q][:deleted_at_null] == '0'
|
103
103
|
# @search needs to be defined as this is passed to search_form_for
|
104
104
|
@search = @collection.ransack(params[:q])
|
105
105
|
@collection = @search.result.
|
@@ -59,7 +59,7 @@ class Spree::Admin::ResourceController < Spree::Admin::BaseController
|
|
59
59
|
|
60
60
|
def update_positions
|
61
61
|
params[:positions].each do |id, index|
|
62
|
-
model_class.
|
62
|
+
model_class.find(id).update_attributes(:position => index)
|
63
63
|
end
|
64
64
|
|
65
65
|
respond_to do |format|
|