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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b64003f2a6519db60fa7c939b19cbb0a0843f46e
4
- data.tar.gz: 01aa9c882c54b3b5ea6ddcac76adceb038c2faa9
3
+ metadata.gz: 9c28791d3f7243ffae36fe5fa92d3d8ac759d88b
4
+ data.tar.gz: 1407c077a4ff761036dfc7c4db6cb045d39e9093
5
5
  SHA512:
6
- metadata.gz: f327dd06a82084cfe7dcbd14bf1042fc44b881d00263065a6549492ab39076a0c75ac442ebfdc8880e21975170ed876b9810813d694b56fb170438f18fdacaa3
7
- data.tar.gz: 7704dc393a526fbc4082cb96f98c6d17f3f30caa180f996d3a700079ea5844061c30526f8b01cff747ee198576bf5ed60cf43e7fc59c1758b577ca4584de25c6
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='icon-chevron-down'></i> " + Spree.translations.more + "</a>",
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: "icon-#{action} icon_link no-text with-tip"
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(".icon-#{@action}, .icon-cancel")
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=admin_order_edit_form] a.ship').on('click', function () {
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.orders_api + '/' + order_number + '/shipments/' + shipment_number + '/ship.json');
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=admin_order_edit_form] a.save-method').on('click', function () {
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.orders_api + '/' + order_number + '/shipments/' + shipment_number + '.json');
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=admin_order_edit_form] a.save-tracking').on('click', function () {
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.orders_api + '/' + order_number + '/shipments/' + shipment_number + '.json');
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.orders_api + "/" + order_number + "/shipments/" + shipment_number;
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.orders_api + "/" + order_number + "/shipments/" + original_shipment_number + "/remove.json"),
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.orders_api + "/" + order_number + "/shipments.json"),
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.orders_api + "/" + order_number + "/shipments/" + target_shipment_number + "/add.json"),
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.orders_api + "/" + order_number + "/shipments.json"),
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();
@@ -7,7 +7,7 @@ jQuery(function($) {
7
7
  });
8
8
 
9
9
  function format_taxons(taxon) {
10
- new_taxon = taxon.text.replace('->', '<i class="icon-arrow-right">')
10
+ new_taxon = taxon.text.replace('->', '<i class="fa fa-arrow-right">')
11
11
  return new_taxon;
12
12
  }
13
13
 
@@ -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='icon-plus'></i> " + Spree.translations.add,
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='icon-pencil'></i> " + Spree.translations.rename,
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='icon-trash'></i> " + Spree.translations.remove,
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='icon-edit'></i> " + Spree.translations.edit,
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].urls != undefined) {
14
- variant.image = variant.images[0].urls.mini
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
  }
@@ -63,14 +63,14 @@
63
63
  left: 0;
64
64
 
65
65
  .ui-icon {
66
- @extend .icon-arrow-left;
66
+ @extend .fa-arrow-left;
67
67
  }
68
68
  }
69
69
  .ui-datepicker-next {
70
70
  right: 0;
71
71
 
72
72
  .ui-icon {
73
- @extend .icon-arrow-right;
73
+ @extend .fa-arrow-right;
74
74
  }
75
75
 
76
76
  &:hover {
@@ -2,10 +2,10 @@
2
2
  html.ie {
3
3
 
4
4
  // Properly align icons in circle
5
- table td.actions .no-text.icon-edit {
5
+ table td.actions .no-text.fa-edit {
6
6
  padding-top: 3px !important;
7
7
  }
8
- table td.actions .no-text.icon-envelope-alt {
8
+ table td.actions .no-text.fa-envelope-alt {
9
9
  padding-top: 4px !important;
10
10
  }
11
11
 
@@ -6,7 +6,7 @@ html.firefox {
6
6
  }
7
7
 
8
8
  // Properly align icons in circle
9
- table td.actions .no-text.icon-edit {
9
+ table td.actions .no-text.fa-edit {
10
10
  padding-left: 1px;
11
11
  }
12
12
 
@@ -6,7 +6,7 @@ html.opera {
6
6
  }
7
7
 
8
8
  // Properly align icons in circle
9
- table td.actions .no-text.icon-edit {
9
+ table td.actions .no-text.fa-edit {
10
10
  padding-left: 1px;
11
11
  }
12
12
 
@@ -8,10 +8,10 @@
8
8
  }
9
9
 
10
10
  .jstree-open > .jstree-icon {
11
- @extend .icon-caret-down;
11
+ @extend .fa-caret-down;
12
12
  }
13
13
  .jstree-closed > .jstree-icon {
14
- @extend .icon-caret-right;
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 .icon-move;
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 .icon-remove;
48
+ @extend .fa-bars;
49
49
  color: $color-5;
50
50
  }
51
51
  #vakata-dragged.jstree-apple .jstree-ok {
52
- @extend .icon-ok;
52
+ @extend .fa-check;
53
53
  color: $color-2;
54
54
  }
55
55
 
56
56
  #jstree-marker {
57
- @extend .icon-caret-right;
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 .icon-caret-up
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 .icon-search;
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 .icon-remove;
178
- @extend [class^="icon-"]:before;
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
- .icon-email:before { @extend .icon-envelope:before }
18
- .icon-resume:before { @extend .icon-refresh:before }
19
- .icon-approve:before { @extend .icon-ok:before }
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
- .icon-cancel:before,
22
- .icon-void:before { @extend .icon-remove:before }
21
+ .fa-cancel:before,
22
+ .fa-void:before { @extend .fa-times:before }
23
23
 
24
- .icon-capture:before { @extend .icon-ok:before }
25
- .icon-credit:before { @extend .icon-ok:before }
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*='icon-'].no-text {
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: 2px;
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*='icon-'] {
65
+ button[class*='fa-'] {
66
66
  color: $color-link;
67
67
  padding: 0 !important;
68
68
  }
69
69
 
70
- .icon-envelope-alt, .icon-eye-open {
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
- .icon-trash:hover, .icon-void:hover {
79
+ .fa-trash:hover, .fa-void:hover {
80
80
  background-color: $color-error;
81
81
  color: $color-1;
82
82
  }
83
- .icon-cancel:hover {
83
+ .fa-cancel:hover {
84
84
  background-color: $color-notice;
85
85
  color: $color-1;
86
86
  }
87
- .icon-edit:hover, .icon-capture:hover, .icon-ok:hover, .icon-plus:hover, .icon-save:hover {
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
- .icon-copy:hover {
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 .icon-reorder;
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.find_by_email(@order.email))
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].delete(:deleted_at_null).blank?
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.
@@ -17,6 +17,7 @@ module Spree
17
17
  def collection
18
18
  return @collection if @collection.present?
19
19
  params[:q] ||= HashWithIndifferentAccess.new
20
+ params[:q][:s] ||= 'id desc'
20
21
 
21
22
  @collection = super
22
23
  @search = @collection.ransack(params[:q])
@@ -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.where(:id => id).update_all(:position => index)
62
+ model_class.find(id).update_attributes(:position => index)
63
63
  end
64
64
 
65
65
  respond_to do |format|
@@ -35,7 +35,7 @@ module Spree
35
35
  if @deleted.blank?
36
36
  @collection ||= super
37
37
  else
38
- @collection ||= Variant.where(:product_id => parent.id).deleted
38
+ @collection ||= Variant.only_deleted.where(:product_id => parent.id)
39
39
  end
40
40
  @collection
41
41
  end