solidus_backend 2.0.3 → 2.1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of solidus_backend might be problematic. Click here for more details.

Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spree/backend/handlebars_extensions.coffee +14 -6
  3. data/app/assets/javascripts/spree/backend/images/upload.js +203 -0
  4. data/app/assets/javascripts/spree/backend/option_value_picker.js +2 -1
  5. data/app/assets/javascripts/spree/backend/stock_management/index_update_forms.coffee +1 -1
  6. data/app/assets/javascripts/spree/backend/taxon_autocomplete.js +5 -1
  7. data/app/assets/javascripts/spree/backend/taxons.js.coffee +1 -1
  8. data/app/assets/javascripts/spree/backend/templates/index.js +15 -0
  9. data/app/assets/javascripts/spree/backend/templates/products/upload_progress.hbs +12 -0
  10. data/app/assets/javascripts/spree/backend/templates/promotions/calculators/fields/tiered_flat_rate.hbs +13 -11
  11. data/app/assets/javascripts/spree/backend/templates/promotions/calculators/fields/tiered_percent.hbs +12 -10
  12. data/app/assets/javascripts/spree/backend/templates/promotions/rules/option_values.hbs +7 -5
  13. data/app/assets/javascripts/spree/backend.js +57 -3
  14. data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +1 -1
  15. data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +2 -0
  16. data/app/assets/stylesheets/spree/backend/components/_table-filter.scss +3 -1
  17. data/app/assets/stylesheets/spree/backend/components/_tabs.scss +2 -0
  18. data/app/assets/stylesheets/spree/backend/sections/_adjustments.scss +3 -0
  19. data/app/assets/stylesheets/spree/backend/sections/_products.scss +29 -17
  20. data/app/assets/stylesheets/spree/backend/sections/_stock_management.scss +6 -0
  21. data/app/assets/stylesheets/spree/backend/shared/_header.scss +2 -0
  22. data/app/assets/stylesheets/spree/backend/shared/_layout.scss +5 -0
  23. data/app/assets/stylesheets/spree/backend/shared/_utilities.scss +1 -2
  24. data/app/assets/stylesheets/spree/backend/spree_admin.scss +1 -3
  25. data/app/controllers/spree/admin/orders_controller.rb +2 -0
  26. data/app/controllers/spree/admin/payments_controller.rb +1 -1
  27. data/app/controllers/spree/admin/prices_controller.rb +7 -1
  28. data/app/controllers/spree/admin/products_controller.rb +0 -6
  29. data/app/controllers/spree/admin/promotions_controller.rb +0 -2
  30. data/app/controllers/spree/admin/users_controller.rb +3 -0
  31. data/app/helpers/spree/admin/adjustments_helper.rb +1 -1
  32. data/app/helpers/spree/admin/base_helper.rb +0 -35
  33. data/app/helpers/spree/admin/stock_transfers_helper.rb +14 -0
  34. data/app/models/spree/backend_configuration.rb +2 -2
  35. data/app/views/spree/admin/adjustment_reasons/index.html.erb +1 -1
  36. data/app/views/spree/admin/adjustment_reasons/shared/_form.html.erb +14 -16
  37. data/app/views/spree/admin/adjustments/_adjustment.html.erb +4 -1
  38. data/app/views/spree/admin/adjustments/_form.html.erb +24 -20
  39. data/app/views/spree/admin/cancellations/index.html.erb +2 -3
  40. data/app/views/spree/admin/countries/_form.html.erb +4 -4
  41. data/app/views/spree/admin/customer_returns/index.html.erb +1 -1
  42. data/app/views/spree/admin/customer_returns/new.html.erb +5 -7
  43. data/app/views/spree/admin/general_settings/edit.html.erb +55 -46
  44. data/app/views/spree/admin/images/_form.html.erb +13 -11
  45. data/app/views/spree/admin/images/_image_row.html.erb +22 -0
  46. data/app/views/spree/admin/images/create.js.erb +9 -0
  47. data/app/views/spree/admin/images/edit.html.erb +12 -8
  48. data/app/views/spree/admin/images/index.html.erb +57 -49
  49. data/app/views/spree/admin/option_types/_form.html.erb +2 -2
  50. data/app/views/spree/admin/option_types/index.html.erb +1 -1
  51. data/app/views/spree/admin/orders/_add_line_item.html.erb +5 -3
  52. data/app/views/spree/admin/orders/_add_product.html.erb +5 -3
  53. data/app/views/spree/admin/orders/_shipment.html.erb +14 -6
  54. data/app/views/spree/admin/orders/cart.html.erb +1 -1
  55. data/app/views/spree/admin/orders/confirm/_customer_details.html.erb +17 -15
  56. data/app/views/spree/admin/orders/customer_details/_form.html.erb +28 -26
  57. data/app/views/spree/admin/orders/customer_details/show.html.erb +1 -1
  58. data/app/views/spree/admin/orders/edit.html.erb +1 -1
  59. data/app/views/spree/admin/orders/index.html.erb +70 -63
  60. data/app/views/spree/admin/payment_methods/_form.html.erb +54 -48
  61. data/app/views/spree/admin/payment_methods/index.html.erb +7 -5
  62. data/app/views/spree/admin/payments/_form.html.erb +2 -2
  63. data/app/views/spree/admin/payments/index.html.erb +1 -1
  64. data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +32 -30
  65. data/app/views/spree/admin/payments/source_forms/_storecredit.html.erb +1 -0
  66. data/app/views/spree/admin/payments/source_views/_gateway.html.erb +1 -1
  67. data/app/views/spree/admin/payments/source_views/_storecredit.html.erb +8 -1
  68. data/app/views/spree/admin/prices/_form.html.erb +38 -43
  69. data/app/views/spree/admin/prices/_master_variant_table.html.erb +41 -0
  70. data/app/views/spree/admin/prices/_table.html.erb +35 -33
  71. data/app/views/spree/admin/prices/index.html.erb +37 -35
  72. data/app/views/spree/admin/product_properties/index.html.erb +0 -7
  73. data/app/views/spree/admin/products/_form.html.erb +153 -144
  74. data/app/views/spree/admin/products/edit.html.erb +1 -1
  75. data/app/views/spree/admin/products/index.html.erb +19 -13
  76. data/app/views/spree/admin/products/new.html.erb +5 -38
  77. data/app/views/spree/admin/promotion_categories/_form.html.erb +1 -1
  78. data/app/views/spree/admin/promotion_rules/create.js.erb +6 -0
  79. data/app/views/spree/admin/promotions/_actions.html.erb +1 -1
  80. data/app/views/spree/admin/promotions/_form.html.erb +48 -44
  81. data/app/views/spree/admin/promotions/_promotion_rule.html.erb +1 -1
  82. data/app/views/spree/admin/promotions/_rules.html.erb +8 -4
  83. data/app/views/spree/admin/promotions/actions/_create_quantity_adjustments.html.erb +9 -5
  84. data/app/views/spree/admin/promotions/actions/_promotion_calculators_with_custom_fields.html.erb +30 -24
  85. data/app/views/spree/admin/promotions/edit.html.erb +2 -2
  86. data/app/views/spree/admin/promotions/index.html.erb +22 -20
  87. data/app/views/spree/admin/promotions/new.html.erb +1 -1
  88. data/app/views/spree/admin/promotions/rules/_first_repeat_purchase_since.html.erb +11 -5
  89. data/app/views/spree/admin/promotions/rules/_item_total.html.erb +18 -8
  90. data/app/views/spree/admin/promotions/rules/_landing_page.html.erb +7 -5
  91. data/app/views/spree/admin/promotions/rules/_nth_order.html.erb +13 -6
  92. data/app/views/spree/admin/promotions/rules/_option_value.html.erb +11 -7
  93. data/app/views/spree/admin/promotions/rules/_product.html.erb +11 -7
  94. data/app/views/spree/admin/promotions/rules/_taxon.html.erb +15 -9
  95. data/app/views/spree/admin/promotions/rules/_user.html.erb +5 -3
  96. data/app/views/spree/admin/promotions/rules/_user_role.html.erb +12 -0
  97. data/app/views/spree/admin/properties/_form.html.erb +2 -2
  98. data/app/views/spree/admin/properties/index.html.erb +7 -5
  99. data/app/views/spree/admin/refund_reasons/index.html.erb +1 -1
  100. data/app/views/spree/admin/refund_reasons/shared/_form.html.erb +14 -16
  101. data/app/views/spree/admin/refunds/edit.html.erb +2 -2
  102. data/app/views/spree/admin/refunds/new.html.erb +4 -4
  103. data/app/views/spree/admin/shared/_configuration_menu.html.erb +0 -4
  104. data/app/views/spree/admin/shared/_head.html.erb +1 -1
  105. data/app/views/spree/admin/shared/_product_sub_menu.html.erb +0 -3
  106. data/app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb +1 -1
  107. data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +2 -2
  108. data/app/views/spree/admin/shared/_sidebar.html.erb +1 -1
  109. data/app/views/spree/admin/shared/_variant_search.html.erb +12 -8
  110. data/app/views/spree/admin/shared/named_types/_form.html.erb +1 -1
  111. data/app/views/spree/admin/shared/named_types/_index.html.erb +1 -1
  112. data/app/views/spree/admin/shipping_categories/index.html.erb +1 -1
  113. data/app/views/spree/admin/shipping_methods/_form.html.erb +74 -81
  114. data/app/views/spree/admin/shipping_methods/index.html.erb +3 -3
  115. data/app/views/spree/admin/states/_form.html.erb +2 -2
  116. data/app/views/spree/admin/states/index.html.erb +9 -5
  117. data/app/views/spree/admin/stock_locations/_form.html.erb +42 -28
  118. data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +4 -4
  119. data/app/views/spree/admin/stock_locations/index.html.erb +1 -1
  120. data/app/views/spree/admin/stock_movements/_form.html.erb +1 -1
  121. data/app/views/spree/admin/stock_movements/index.html.erb +1 -1
  122. data/app/views/spree/admin/stock_transfers/_stock_movements.html.erb +1 -1
  123. data/app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb +10 -1
  124. data/app/views/spree/admin/stock_transfers/index.html.erb +29 -27
  125. data/app/views/spree/admin/stock_transfers/show.html.erb +26 -24
  126. data/app/views/spree/admin/store_credits/_form.html.erb +3 -3
  127. data/app/views/spree/admin/store_credits/_update_reason_field.html.erb +1 -1
  128. data/app/views/spree/admin/store_credits/edit_amount.html.erb +1 -1
  129. data/app/views/spree/admin/store_credits/index.html.erb +2 -2
  130. data/app/views/spree/admin/style_guide/topics/forms/_building_forms.html.erb +49 -47
  131. data/app/views/spree/admin/style_guide/topics/messaging/_loading.html.erb +11 -1
  132. data/app/views/spree/admin/tax_categories/_form.html.erb +4 -4
  133. data/app/views/spree/admin/tax_categories/index.html.erb +1 -1
  134. data/app/views/spree/admin/tax_rates/_form.html.erb +28 -28
  135. data/app/views/spree/admin/tax_rates/index.html.erb +1 -1
  136. data/app/views/spree/admin/taxonomies/index.html.erb +1 -1
  137. data/app/views/spree/admin/taxons/_form.html.erb +6 -6
  138. data/app/views/spree/admin/taxons/index.html.erb +2 -2
  139. data/app/views/spree/admin/users/_addresses_form.html.erb +19 -15
  140. data/app/views/spree/admin/users/_form.html.erb +9 -6
  141. data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -1
  142. data/app/views/spree/admin/users/addresses.html.erb +1 -1
  143. data/app/views/spree/admin/users/edit.html.erb +2 -2
  144. data/app/views/spree/admin/users/items.html.erb +2 -2
  145. data/app/views/spree/admin/users/orders.html.erb +2 -2
  146. data/app/views/spree/admin/variants/_form.html.erb +73 -49
  147. data/app/views/spree/admin/variants/_table_filter.html.erb +12 -8
  148. data/app/views/spree/admin/variants/index.html.erb +2 -2
  149. data/app/views/spree/admin/zones/_country_members.html.erb +1 -1
  150. data/app/views/spree/admin/zones/_form.html.erb +34 -31
  151. data/app/views/spree/admin/zones/_state_members.html.erb +1 -1
  152. data/app/views/spree/admin/zones/index.html.erb +1 -3
  153. data/app/views/spree/layouts/admin.html.erb +4 -4
  154. data/config/routes.rb +0 -11
  155. data/solidus_backend.gemspec +4 -1
  156. data/spec/controllers/spree/admin/payments_controller_spec.rb +2 -3
  157. data/spec/controllers/spree/admin/prices_controller_spec.rb +5 -3
  158. data/spec/features/admin/configuration/general_settings_spec.rb +12 -0
  159. data/spec/features/admin/configuration/payment_methods_spec.rb +3 -2
  160. data/spec/features/admin/configuration/shipping_methods_spec.rb +1 -1
  161. data/spec/features/admin/homepage_spec.rb +0 -3
  162. data/spec/features/admin/orders/adjustments_spec.rb +28 -25
  163. data/spec/features/admin/orders/customer_details_spec.rb +1 -1
  164. data/spec/features/admin/orders/order_details_spec.rb +27 -1
  165. data/spec/features/admin/orders/payments_spec.rb +1 -1
  166. data/spec/features/admin/products/edit/images_spec.rb +28 -1
  167. data/spec/features/admin/products/pricing_spec.rb +17 -2
  168. data/spec/features/admin/products/products_spec.rb +0 -104
  169. data/spec/features/admin/store_credits_spec.rb +3 -3
  170. data/spec/features/admin/users_spec.rb +7 -1
  171. metadata +21 -32
  172. data/app/assets/javascripts/spree/backend/nested-attribute.js +0 -27
  173. data/app/assets/stylesheets/spree/backend/sections/_adjustments_table.scss +0 -8
  174. data/app/assets/stylesheets/spree/backend/sections/_edit_checkouts.scss +0 -72
  175. data/app/assets/stylesheets/spree/backend/sections/_tax_zones.scss +0 -15
  176. data/app/controllers/spree/admin/prototypes_controller.rb +0 -26
  177. data/app/controllers/spree/admin/trackers_controller.rb +0 -6
  178. data/app/views/spree/admin/prototypes/_form.html.erb +0 -36
  179. data/app/views/spree/admin/prototypes/_prototypes.html.erb +0 -25
  180. data/app/views/spree/admin/prototypes/available.js.erb +0 -2
  181. data/app/views/spree/admin/prototypes/edit.html.erb +0 -15
  182. data/app/views/spree/admin/prototypes/index.html.erb +0 -50
  183. data/app/views/spree/admin/prototypes/new.html.erb +0 -9
  184. data/app/views/spree/admin/prototypes/new.js.erb +0 -5
  185. data/app/views/spree/admin/prototypes/select.js.erb +0 -4
  186. data/app/views/spree/admin/prototypes/show.html.erb +0 -42
  187. data/app/views/spree/admin/trackers/_form.html.erb +0 -28
  188. data/app/views/spree/admin/trackers/edit.html.erb +0 -19
  189. data/app/views/spree/admin/trackers/index.html.erb +0 -54
  190. data/app/views/spree/admin/trackers/new.html.erb +0 -18
  191. data/spec/features/admin/configuration/analytics_tracker_spec.rb +0 -50
  192. data/spec/features/admin/products/prototypes_spec.rb +0 -110
@@ -1,12 +1,12 @@
1
1
  <div data-hook="admin_store_credit_form_fields" class="row">
2
- <div class="alpha twelve columns">
2
+ <div class="col-xs-12">
3
3
  <%= f.field_container :amount do %>
4
4
  <%= f.label :amount, class: 'required' %><br />
5
5
  <%= f.number_field :amount, min: 0.00, step: :any %>
6
6
  <%= f.error_message_on :amount %>
7
7
  <% end %>
8
8
  </div>
9
- <div class="alpha twelve columns">
9
+ <div class="col-xs-12">
10
10
  <%= f.field_container :category do %>
11
11
  <%= f.label :category_id, class: 'required' %><br />
12
12
  <%= f.select :category_id, options_from_collection_for_select(@credit_categories, :id, :name, f.object.category.try(:id)),
@@ -14,7 +14,7 @@
14
14
  <%= f.error_message_on :category %>
15
15
  <% end %>
16
16
  </div>
17
- <div data-hook="admin_store_credit_memo_field" class="alpha twelve columns">
17
+ <div data-hook="admin_store_credit_memo_field" class="col-xs-12">
18
18
  <%= f.field_container :memo do %>
19
19
  <%= f.label :memo %>
20
20
  <%= f.text_area :memo, class: "fullwidth" %>
@@ -1,4 +1,4 @@
1
- <div class="alpha twelve columns">
1
+ <div class="col-xs-12">
2
2
  <%= f.field_container :reason do %>
3
3
  <%= f.label :reason, Spree.t(:reason), class: 'required' %><br />
4
4
  <%= select_tag :update_reason_id, options_from_collection_for_select(@update_reasons, :id, :name),
@@ -14,7 +14,7 @@
14
14
  <fieldset>
15
15
  <legend align="center"><%= Spree.t("admin.store_credits.edit_amount") %></legend>
16
16
  <div data-hook="admin_store_credit_form_fields" class="row">
17
- <div class="alpha twelve columns">
17
+ <div class="col-xs-9">
18
18
  <%= f.field_container :amount do %>
19
19
  <%= f.label :amount, class: 'required' %><br />
20
20
  <%= f.number_field :amount, min: 0.00, step: :any %>
@@ -16,7 +16,7 @@
16
16
  <strong><%= Spree.t("admin.store_credits.current_balance") %> </strong><%= @user.display_total_available_store_credit %>
17
17
  </div>
18
18
 
19
- <table>
19
+ <table id="sc-table">
20
20
  <thead>
21
21
  <th><%= Spree::StoreCredit.human_attribute_name(:amount_credited) %></th>
22
22
  <th><%= Spree::StoreCredit.human_attribute_name(:amount_used) %></th>
@@ -61,7 +61,7 @@
61
61
  </tbody>
62
62
  </table>
63
63
  <% else %>
64
- <div class="alpha twelve columns no-objects-found">
64
+ <div class="col-xs-9 no-objects-found">
65
65
  <%= render 'spree/admin/shared/no_objects_found',
66
66
  resource: Spree::StoreCredit,
67
67
  new_resource_url: new_object_url %>
@@ -1,62 +1,64 @@
1
1
  <%- snippet = capture do %>
2
- <form id="table-filter" class="sixteen columns">
2
+ <form id="table-filter">
3
3
  <fieldset>
4
4
  <legend align="center">Search</legend>
5
- <div class="field-block alpha four columns">
6
- <div class="field">
7
- <label for="q_number_cont" class="required">Text Field</label>
8
- <input class="required" type="text">
5
+ <div class="row">
6
+ <div class="field-block col-xs-3">
7
+ <div class="field">
8
+ <label for="q_number_cont" class="required">Text Field</label>
9
+ <input class="required" type="text">
10
+ </div>
9
11
  </div>
10
- </div>
11
12
 
12
- <div class="field-block four columns">
13
- <div class="date-range-filter field">
14
- <label for="q_created_at_gt">Date Range</label>
15
- <div class="date-range-fields">
16
- <input class="datepicker" placeholder="Date">
17
- <span class="range-divider"><i class="fa fa-arrow-right"></i></span>
18
- <input class="datepicker" placeholder="Picker">
13
+ <div class="field-block col-xs-3">
14
+ <div class="date-range-filter field">
15
+ <label for="q_created_at_gt">Date Range</label>
16
+ <div class="date-range-fields">
17
+ <input class="datepicker" placeholder="Date">
18
+ <span class="range-divider"><i class="fa fa-arrow-right"></i></span>
19
+ <input class="datepicker" placeholder="Picker">
20
+ </div>
19
21
  </div>
20
22
  </div>
21
- </div>
22
23
 
23
- <div class="four columns">
24
- <div class="field checkbox">
25
- <label>Select Box
26
- <select>
27
- <option>Option</option>
28
- </select>
29
- </label>
30
- </div>
24
+ <div class="col-xs-3">
25
+ <div class="field checkbox">
26
+ <label>Select Box
27
+ <select>
28
+ <option>Option</option>
29
+ </select>
30
+ </label>
31
+ </div>
31
32
 
32
- <div class="field">
33
- <select class="select2">
34
- <option>Select 2</option>
35
- </select>
33
+ <div class="field">
34
+ <select class="select2">
35
+ <option>Select 2</option>
36
+ </select>
37
+ </div>
36
38
  </div>
37
- </div>
38
39
 
39
- <div class="omega four columns">
40
- <div class="field checkbox">
41
- <label>
42
- <input type="checkbox" checked="checked">
43
- Checkbox
44
- </label>
45
- </div>
40
+ <div class="col-xs-3">
41
+ <div class="field checkbox">
42
+ <label>
43
+ <input type="checkbox" checked="checked">
44
+ Checkbox
45
+ </label>
46
+ </div>
46
47
 
47
- <div class='field'>
48
- <label>
49
- <input name='radio' type='radio'>
50
- Option 1
51
- </label>
52
- <label>
53
- <input name='radio' type='radio'>
54
- Option 2
55
- </label>
56
- <label>
57
- <input name='radio' type='radio'>
58
- Option 3
59
- </label>
48
+ <div class='field'>
49
+ <label>
50
+ <input name='radio' type='radio'>
51
+ Option 1
52
+ </label>
53
+ <label>
54
+ <input name='radio' type='radio'>
55
+ Option 2
56
+ </label>
57
+ <label>
58
+ <input name='radio' type='radio'>
59
+ Option 3
60
+ </label>
61
+ </div>
60
62
  </div>
61
63
  </div>
62
64
  </fieldset>
@@ -14,7 +14,17 @@
14
14
  <button id="loading-test-button">Toggle Loading</button>
15
15
 
16
16
  <script>
17
- $('#loading-test-button').on('click', function(){
17
+ function closeProgress() {
18
18
  $("#progress").toggle()
19
+ $(document).off('mousedown', 'body', closeProgress)
20
+ }
21
+
22
+ $('#loading-test-button').on('click', function(){
23
+ $("#progress").toggle({
24
+ duration: 0,
25
+ complete: function(){
26
+ $(document).on('mousedown', 'body', closeProgress)
27
+ }
28
+ })
19
29
  });
20
30
  </script>
@@ -1,26 +1,26 @@
1
1
  <div data-hook="admin_tax_category_form_fields" class="row">
2
- <div class="alpha four columns">
2
+ <div class="col-xs-3">
3
3
  <%= f.field_container :name do %>
4
4
  <%= f.label :name %>
5
5
  <%= f.text_field :name, :class => 'fullwidth' %>
6
6
  <% end %>
7
7
  </div>
8
8
 
9
- <div class="two columns">
9
+ <div class="col-xs-2">
10
10
  <%= f.field_container :tax_code do %>
11
11
  <%= f.label :tax_code %>
12
12
  <%= f.text_field :tax_code, :class => 'fullwidth' %>
13
13
  <% end %>
14
14
  </div>
15
15
 
16
- <div class="two columns omega">
16
+ <div class="col-xs-1">
17
17
  <%= f.field_container :is_default, :class => ['checkbox'] do %>
18
18
  <%= f.check_box :is_default %>
19
19
  <%= f.label :is_default %>
20
20
  <% end %>
21
21
  </div>
22
22
 
23
- <div class="alpha six columns">
23
+ <div class="col-xs-4">
24
24
  <%= f.field_container :description do %>
25
25
  <%= f.label :description %><br>
26
26
  <%= f.text_area :description, :class => 'fullwidth' %>
@@ -55,7 +55,7 @@
55
55
  </tbody>
56
56
  </table>
57
57
  <% else %>
58
- <div class="alpha twelve columns no-objects-found">
58
+ <div class="col-xs-9 no-objects-found">
59
59
  <%= render 'spree/admin/shared/no_objects_found',
60
60
  resource: Spree::TaxCategory,
61
61
  new_resource_url: new_object_url %>
@@ -1,40 +1,40 @@
1
1
  <div data-hook="admin_tax_rate_form_fields">
2
- <div class="alpha twelve columns">
3
2
  <fieldset data-hook="tax_rates" class=" no-border-bottom">
4
3
  <legend align="center"><%= Spree.t(:general_settings) %></legend>
4
+ <div class="row">
5
5
 
6
- <div class="alpha six columns">
7
- <div data-hook="name" class="field">
8
- <%= f.label :name %>
9
- <%= f.text_field :name, :class => 'fullwidth' %>
6
+ <div class="col-xs-5">
7
+ <div data-hook="name" class="field">
8
+ <%= f.label :name %>
9
+ <%= f.text_field :name, :class => 'fullwidth' %>
10
+ </div>
11
+ <div data-hook="rate" class="field">
12
+ <%= f.label :amount %>
13
+ <%= f.text_field :amount, :class => 'fullwidth' %>
14
+ <br/><span class="info"><%= Spree.t(:tax_rate_amount_explanation) %></span>
15
+ </div>
16
+ <div data-hook="included" class="field">
17
+ <%= f.check_box :included_in_price %>
18
+ <%= f.label :included_in_price, Spree.t(:included_in_price) %>
19
+ </div>
10
20
  </div>
11
- <div data-hook="rate" class="field">
12
- <%= f.label :amount %>
13
- <%= f.text_field :amount, :class => 'fullwidth' %>
14
- <br/><span class="info"><%= Spree.t(:tax_rate_amount_explanation) %></span>
15
- </div>
16
- <div data-hook="included" class="field">
17
- <%= f.check_box :included_in_price %>
18
- <%= f.label :included_in_price, Spree.t(:included_in_price) %>
19
- </div>
20
- </div>
21
21
 
22
- <div class="omega six columns">
23
- <div data-hook="zone" class="field">
24
- <%= f.label :zone, Spree::Zone.model_name.human %>
25
- <%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {:class => 'select2 fullwidth'}) %>
26
- </div>
27
- <div data-hook="category" class="field">
28
- <%= f.label :tax_category_id, Spree::TaxCategory.model_name.human %>
29
- <%= f.collection_select(:tax_category_id, @available_categories,:id, :name, {}, {:class => 'select2 fullwidth'}) %>
30
- </div>
31
- <div data-hook="show_rate" class="field">
32
- <%= f.check_box :show_rate_in_label %>
33
- <%= f.label :show_rate_in_label, Spree.t(:show_rate_in_label) %>
22
+ <div class="col-xs-5">
23
+ <div data-hook="zone" class="field">
24
+ <%= f.label :zone, Spree::Zone.model_name.human %>
25
+ <%= f.collection_select(:zone_id, @available_zones, :id, :name, {}, {:class => 'select2 fullwidth'}) %>
26
+ </div>
27
+ <div data-hook="category" class="field">
28
+ <%= f.label :tax_category_id, Spree::TaxCategory.model_name.human %>
29
+ <%= f.collection_select(:tax_category_id, @available_categories,:id, :name, {}, {:class => 'select2 fullwidth'}) %>
30
+ </div>
31
+ <div data-hook="show_rate" class="field">
32
+ <%= f.check_box :show_rate_in_label %>
33
+ <%= f.label :show_rate_in_label, Spree.t(:show_rate_in_label) %>
34
+ </div>
34
35
  </div>
35
36
  </div>
36
37
  </fieldset>
37
- </div>
38
38
 
39
39
  <div class="clear"></div>
40
40
 
@@ -60,7 +60,7 @@
60
60
  </tbody>
61
61
  </table>
62
62
  <% else %>
63
- <div class="alpha twelve columns no-objects-found">
63
+ <div class="col-xs-9 no-objects-found">
64
64
  <%= render 'spree/admin/shared/no_objects_found',
65
65
  resource: Spree::TaxRate,
66
66
  new_resource_url: new_object_url %>
@@ -15,7 +15,7 @@
15
15
  <%= render 'list' %>
16
16
  </div>
17
17
  <% else %>
18
- <div class="alpha twelve columns no-objects-found">
18
+ <div class="col-xs-9 no-objects-found">
19
19
  <%= render 'spree/admin/shared/no_objects_found',
20
20
  resource: Spree::Taxonomy,
21
21
  new_resource_url: new_object_url %>
@@ -1,5 +1,5 @@
1
1
  <div data-hook="admin_inside_taxon_form" class="row">
2
- <div class="alpha five columns">
2
+ <div class="col-xs-5">
3
3
  <%= f.field_container :name do %>
4
4
  <%= f.label :name, class: 'required' %><br />
5
5
  <%= text_field :taxon, :name, :class => 'fullwidth' %>
@@ -21,27 +21,27 @@
21
21
  <% end %>
22
22
  </div>
23
23
 
24
- <div class="omega seven columns">
24
+ <div class="col-xs-5">
25
25
  <%= f.field_container :description do %>
26
26
  <%= f.label :description %><br />
27
27
  <%= f.text_area :description, :class => 'fullwidth', :rows => 6 %>
28
28
  <% end %>
29
29
  </div>
30
30
 
31
- <div class="twelve columns alpha omega">
31
+ <div class="col-xs-10">
32
32
  <%= f.field_container :meta_title do %>
33
33
  <%= f.label :meta_title %><br />
34
- <%= f.text_field :meta_title, :class => 'fullwidth', :rows => 6 %>
34
+ <%= f.text_field :meta_title, :class => 'fullwidth' %>
35
35
  <% end %>
36
36
 
37
37
  <%= f.field_container :meta_description do %>
38
38
  <%= f.label :meta_description %><br />
39
- <%= f.text_field :meta_description, :class => 'fullwidth', :rows => 6 %>
39
+ <%= f.text_field :meta_description, :class => 'fullwidth' %>
40
40
  <% end %>
41
41
 
42
42
  <%= f.field_container :meta_keywords do %>
43
43
  <%= f.label :meta_keywords %><br />
44
- <%= f.text_field :meta_keywords, :class => 'fullwidth', :rows => 6 %>
44
+ <%= f.text_field :meta_keywords, :class => 'fullwidth' %>
45
45
  <% end %>
46
46
  </div>
47
47
  </div>
@@ -6,11 +6,11 @@
6
6
  <% end %>
7
7
 
8
8
  <% content_for :table_filter do %>
9
- <div data-hook="admin_orders_index_search" class="columns six">
9
+ <div data-hook="admin_orders_index_search" class="col-xs-4">
10
10
  <input type='text' id='taxon_id' />
11
11
  </div>
12
12
  <% end %>
13
13
 
14
- <div class='sixteen columns'>
14
+ <div class='col-xs-10'>
15
15
  <div id='taxon_products' class='list-group'></div>
16
16
  </div>
@@ -1,17 +1,21 @@
1
- <div data-hook="bill_address_wrapper" class="alpha six columns">
2
- <fieldset class="no-border-bottom">
3
- <legend align="center"><%= Spree.t(:billing_address) %></legend>
4
- <%= f.fields_for :bill_address, @user.bill_address || Spree::Address.build_default do |ba_form| %>
5
- <%= render :partial => 'spree/admin/shared/address_form', :locals => { :f => ba_form, :type => "billing" } %>
6
- <% end %>
7
- </fieldset>
8
- </div>
1
+ <div class="row">
2
+
3
+ <div data-hook="bill_address_wrapper" class="col-xs-6">
4
+ <fieldset class="no-border-bottom">
5
+ <legend align="center"><%= Spree.t(:billing_address) %></legend>
6
+ <%= f.fields_for :bill_address, @user.bill_address || Spree::Address.build_default do |ba_form| %>
7
+ <%= render :partial => 'spree/admin/shared/address_form', :locals => { :f => ba_form, :type => "billing" } %>
8
+ <% end %>
9
+ </fieldset>
10
+ </div>
11
+
12
+ <div data-hook="ship_address_wrapper" class="col-xs-6">
13
+ <fieldset class="no-border-bottom">
14
+ <legend align="center"><%= Spree.t(:shipping_address) %></legend>
15
+ <%= f.fields_for :ship_address, @user.ship_address || Spree::Address.build_default do |sa_form| %>
16
+ <%= render :partial => 'spree/admin/shared/address_form', :locals => { :f => sa_form, :type => "shipping" } %>
17
+ <% end %>
18
+ </fieldset>
19
+ </div>
9
20
 
10
- <div data-hook="ship_address_wrapper" class="alpha six columns">
11
- <fieldset class="no-border-bottom">
12
- <legend align="center"><%= Spree.t(:shipping_address) %></legend>
13
- <%= f.fields_for :ship_address, @user.ship_address || Spree::Address.build_default do |sa_form| %>
14
- <%= render :partial => 'spree/admin/shared/address_form', :locals => { :f => sa_form, :type => "shipping" } %>
15
- <% end %>
16
- </fieldset>
17
21
  </div>
@@ -1,5 +1,5 @@
1
1
  <div data-hook="admin_user_form_fields" class="row">
2
- <div class="alpha six columns">
2
+ <div class="col-xs-6">
3
3
  <%= f.field_container :email do %>
4
4
  <%= f.label :email %>
5
5
  <% if can?(:update_email, @user) %>
@@ -53,17 +53,20 @@
53
53
 
54
54
  </div>
55
55
 
56
- <div data-hook="admin_user_form_password_fields" class="omega six columns">
56
+ <div data-hook="admin_user_form_password_fields" class="col-xs-6">
57
57
  <%= f.field_container :password do %>
58
58
  <%= f.label :password %>
59
59
  <%= f.password_field :password, :class => 'fullwidth' %>
60
60
  <%= f.error_message_on :password %>
61
61
  <% end %>
62
62
 
63
- <%= f.field_container :password do %>
64
- <%= f.label :password_confirmation %>
65
- <%= f.password_field :password_confirmation, :class => 'fullwidth' %>
66
- <%= f.error_message_on :password_confirmation %>
63
+
64
+ <% if f.object.respond_to?(:password_confirmation) %>
65
+ <%= f.field_container :password do %>
66
+ <%= f.label :password_confirmation %>
67
+ <%= f.password_field :password_confirmation, :class => 'fullwidth' %>
68
+ <%= f.error_message_on :password_confirmation %>
69
+ <% end %>
67
70
  <% end %>
68
71
  </div>
69
72
  </div>
@@ -1,7 +1,7 @@
1
1
  <% content_for :page_actions do %>
2
2
  <% if can?([:admin, :create], Spree::Order) %>
3
3
  <li>
4
- <%= button_link_to Spree.t(:create_new_order), spree.new_admin_order_path(user_id: @user.id) %>
4
+ <%= button_link_to t(".create_order"), spree.new_admin_order_path(user_id: @user.id) %>
5
5
  </li>
6
6
  <% end %>
7
7
  <% end %>
@@ -7,7 +7,7 @@
7
7
  <%= render 'spree/admin/users/tabs', current: :address %>
8
8
  <%= render :partial => 'spree/admin/users/user_page_actions' %>
9
9
 
10
- <fieldset data-hook="admin_user_addresses" id="admin_user_edit_addresses" class="alpha twelve columns">
10
+ <fieldset data-hook="admin_user_addresses" id="admin_user_edit_addresses" class="col-xs-12">
11
11
  <legend><%= plural_resource_name(Spree::Address) %></legend>
12
12
 
13
13
  <div data-hook="admin_user_edit_form_header">
@@ -6,7 +6,7 @@
6
6
  <%= render 'spree/admin/users/tabs', current: :account %>
7
7
  <%= render :partial => 'spree/admin/users/user_page_actions' %>
8
8
 
9
- <fieldset data-hook="admin_user_edit_general_settings" class="alpha twelve columns">
9
+ <fieldset data-hook="admin_user_edit_general_settings" class="col-xs-9">
10
10
  <legend><%= Spree.t(:general_settings) %></legend>
11
11
 
12
12
  <div data-hook="admin_user_edit_form_header">
@@ -27,7 +27,7 @@
27
27
  </fieldset>
28
28
 
29
29
  <% if can?(:update, @user) %>
30
- <fieldset data-hook="admin_user_api_key" id="admin_user_edit_api_key" class="alpha twelve columns">
30
+ <fieldset data-hook="admin_user_api_key" id="admin_user_edit_api_key" class="col-xs-9">
31
31
  <legend><%= Spree.t('access', :scope => 'api') %></legend>
32
32
 
33
33
  <% if @user.spree_api_key.present? %>
@@ -7,7 +7,7 @@
7
7
  <%= render 'spree/admin/users/tabs', current: :items %>
8
8
  <%= render :partial => 'spree/admin/users/user_page_actions' %>
9
9
 
10
- <fieldset data-hook="admin_user_items_purchased" class="alpha twelve columns">
10
+ <fieldset data-hook="admin_user_items_purchased" class="col-xs-9">
11
11
  <legend><%= Spree.t(:"admin.user.items_purchased") %></legend>
12
12
 
13
13
  <%= paginate @orders, theme: "solidus_admin" %>
@@ -73,7 +73,7 @@
73
73
  <% end %>
74
74
  </table>
75
75
  <% else %>
76
- <div class="alpha twelve columns no-objects-found">
76
+ <div class="col-xs-9 no-objects-found">
77
77
  <%= render 'spree/admin/shared/no_objects_found',
78
78
  resource: Spree::Order,
79
79
  new_resource_url: spree.new_admin_order_path %>
@@ -7,7 +7,7 @@
7
7
  <%= render 'spree/admin/users/tabs', current: :orders %>
8
8
  <%= render :partial => 'spree/admin/users/user_page_actions' %>
9
9
 
10
- <fieldset data-hook="admin_user_order_history" class="alpha twelve columns">
10
+ <fieldset data-hook="admin_user_order_history" class="col-xs-9">
11
11
  <legend><%= Spree.t(:"admin.user.order_history") %></legend>
12
12
 
13
13
  <%= paginate @orders, theme: "solidus_admin" %>
@@ -55,7 +55,7 @@
55
55
  </tbody>
56
56
  </table>
57
57
  <% else %>
58
- <div class="alpha twelve columns no-objects-found">
58
+ <div class="col-xs-9 no-objects-found">
59
59
  <%= render 'spree/admin/shared/no_objects_found',
60
60
  resource: Spree::Order,
61
61
  new_resource_url: spree.new_admin_order_path %>