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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spree/backend/handlebars_extensions.coffee +14 -6
- data/app/assets/javascripts/spree/backend/images/upload.js +203 -0
- data/app/assets/javascripts/spree/backend/option_value_picker.js +2 -1
- data/app/assets/javascripts/spree/backend/stock_management/index_update_forms.coffee +1 -1
- data/app/assets/javascripts/spree/backend/taxon_autocomplete.js +5 -1
- data/app/assets/javascripts/spree/backend/taxons.js.coffee +1 -1
- data/app/assets/javascripts/spree/backend/templates/index.js +15 -0
- data/app/assets/javascripts/spree/backend/templates/products/upload_progress.hbs +12 -0
- data/app/assets/javascripts/spree/backend/templates/promotions/calculators/fields/tiered_flat_rate.hbs +13 -11
- data/app/assets/javascripts/spree/backend/templates/promotions/calculators/fields/tiered_percent.hbs +12 -10
- data/app/assets/javascripts/spree/backend/templates/promotions/rules/option_values.hbs +7 -5
- data/app/assets/javascripts/spree/backend.js +57 -3
- data/app/assets/stylesheets/spree/backend/_bootstrap_custom.scss +1 -1
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +2 -0
- data/app/assets/stylesheets/spree/backend/components/_table-filter.scss +3 -1
- data/app/assets/stylesheets/spree/backend/components/_tabs.scss +2 -0
- data/app/assets/stylesheets/spree/backend/sections/_adjustments.scss +3 -0
- data/app/assets/stylesheets/spree/backend/sections/_products.scss +29 -17
- data/app/assets/stylesheets/spree/backend/sections/_stock_management.scss +6 -0
- data/app/assets/stylesheets/spree/backend/shared/_header.scss +2 -0
- data/app/assets/stylesheets/spree/backend/shared/_layout.scss +5 -0
- data/app/assets/stylesheets/spree/backend/shared/_utilities.scss +1 -2
- data/app/assets/stylesheets/spree/backend/spree_admin.scss +1 -3
- data/app/controllers/spree/admin/orders_controller.rb +2 -0
- data/app/controllers/spree/admin/payments_controller.rb +1 -1
- data/app/controllers/spree/admin/prices_controller.rb +7 -1
- data/app/controllers/spree/admin/products_controller.rb +0 -6
- data/app/controllers/spree/admin/promotions_controller.rb +0 -2
- data/app/controllers/spree/admin/users_controller.rb +3 -0
- data/app/helpers/spree/admin/adjustments_helper.rb +1 -1
- data/app/helpers/spree/admin/base_helper.rb +0 -35
- data/app/helpers/spree/admin/stock_transfers_helper.rb +14 -0
- data/app/models/spree/backend_configuration.rb +2 -2
- data/app/views/spree/admin/adjustment_reasons/index.html.erb +1 -1
- data/app/views/spree/admin/adjustment_reasons/shared/_form.html.erb +14 -16
- data/app/views/spree/admin/adjustments/_adjustment.html.erb +4 -1
- data/app/views/spree/admin/adjustments/_form.html.erb +24 -20
- data/app/views/spree/admin/cancellations/index.html.erb +2 -3
- data/app/views/spree/admin/countries/_form.html.erb +4 -4
- data/app/views/spree/admin/customer_returns/index.html.erb +1 -1
- data/app/views/spree/admin/customer_returns/new.html.erb +5 -7
- data/app/views/spree/admin/general_settings/edit.html.erb +55 -46
- data/app/views/spree/admin/images/_form.html.erb +13 -11
- data/app/views/spree/admin/images/_image_row.html.erb +22 -0
- data/app/views/spree/admin/images/create.js.erb +9 -0
- data/app/views/spree/admin/images/edit.html.erb +12 -8
- data/app/views/spree/admin/images/index.html.erb +57 -49
- data/app/views/spree/admin/option_types/_form.html.erb +2 -2
- data/app/views/spree/admin/option_types/index.html.erb +1 -1
- data/app/views/spree/admin/orders/_add_line_item.html.erb +5 -3
- data/app/views/spree/admin/orders/_add_product.html.erb +5 -3
- data/app/views/spree/admin/orders/_shipment.html.erb +14 -6
- data/app/views/spree/admin/orders/cart.html.erb +1 -1
- data/app/views/spree/admin/orders/confirm/_customer_details.html.erb +17 -15
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +28 -26
- data/app/views/spree/admin/orders/customer_details/show.html.erb +1 -1
- data/app/views/spree/admin/orders/edit.html.erb +1 -1
- data/app/views/spree/admin/orders/index.html.erb +70 -63
- data/app/views/spree/admin/payment_methods/_form.html.erb +54 -48
- data/app/views/spree/admin/payment_methods/index.html.erb +7 -5
- data/app/views/spree/admin/payments/_form.html.erb +2 -2
- data/app/views/spree/admin/payments/index.html.erb +1 -1
- data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +32 -30
- data/app/views/spree/admin/payments/source_forms/_storecredit.html.erb +1 -0
- data/app/views/spree/admin/payments/source_views/_gateway.html.erb +1 -1
- data/app/views/spree/admin/payments/source_views/_storecredit.html.erb +8 -1
- data/app/views/spree/admin/prices/_form.html.erb +38 -43
- data/app/views/spree/admin/prices/_master_variant_table.html.erb +41 -0
- data/app/views/spree/admin/prices/_table.html.erb +35 -33
- data/app/views/spree/admin/prices/index.html.erb +37 -35
- data/app/views/spree/admin/product_properties/index.html.erb +0 -7
- data/app/views/spree/admin/products/_form.html.erb +153 -144
- data/app/views/spree/admin/products/edit.html.erb +1 -1
- data/app/views/spree/admin/products/index.html.erb +19 -13
- data/app/views/spree/admin/products/new.html.erb +5 -38
- data/app/views/spree/admin/promotion_categories/_form.html.erb +1 -1
- data/app/views/spree/admin/promotion_rules/create.js.erb +6 -0
- data/app/views/spree/admin/promotions/_actions.html.erb +1 -1
- data/app/views/spree/admin/promotions/_form.html.erb +48 -44
- data/app/views/spree/admin/promotions/_promotion_rule.html.erb +1 -1
- data/app/views/spree/admin/promotions/_rules.html.erb +8 -4
- data/app/views/spree/admin/promotions/actions/_create_quantity_adjustments.html.erb +9 -5
- data/app/views/spree/admin/promotions/actions/_promotion_calculators_with_custom_fields.html.erb +30 -24
- data/app/views/spree/admin/promotions/edit.html.erb +2 -2
- data/app/views/spree/admin/promotions/index.html.erb +22 -20
- data/app/views/spree/admin/promotions/new.html.erb +1 -1
- data/app/views/spree/admin/promotions/rules/_first_repeat_purchase_since.html.erb +11 -5
- data/app/views/spree/admin/promotions/rules/_item_total.html.erb +18 -8
- data/app/views/spree/admin/promotions/rules/_landing_page.html.erb +7 -5
- data/app/views/spree/admin/promotions/rules/_nth_order.html.erb +13 -6
- data/app/views/spree/admin/promotions/rules/_option_value.html.erb +11 -7
- data/app/views/spree/admin/promotions/rules/_product.html.erb +11 -7
- data/app/views/spree/admin/promotions/rules/_taxon.html.erb +15 -9
- data/app/views/spree/admin/promotions/rules/_user.html.erb +5 -3
- data/app/views/spree/admin/promotions/rules/_user_role.html.erb +12 -0
- data/app/views/spree/admin/properties/_form.html.erb +2 -2
- data/app/views/spree/admin/properties/index.html.erb +7 -5
- data/app/views/spree/admin/refund_reasons/index.html.erb +1 -1
- data/app/views/spree/admin/refund_reasons/shared/_form.html.erb +14 -16
- data/app/views/spree/admin/refunds/edit.html.erb +2 -2
- data/app/views/spree/admin/refunds/new.html.erb +4 -4
- data/app/views/spree/admin/shared/_configuration_menu.html.erb +0 -4
- data/app/views/spree/admin/shared/_head.html.erb +1 -1
- data/app/views/spree/admin/shared/_product_sub_menu.html.erb +0 -3
- data/app/views/spree/admin/shared/_rebuild_vat_prices_checkbox.html.erb +1 -1
- data/app/views/spree/admin/shared/_settings_sub_menu.html.erb +2 -2
- data/app/views/spree/admin/shared/_sidebar.html.erb +1 -1
- data/app/views/spree/admin/shared/_variant_search.html.erb +12 -8
- data/app/views/spree/admin/shared/named_types/_form.html.erb +1 -1
- data/app/views/spree/admin/shared/named_types/_index.html.erb +1 -1
- data/app/views/spree/admin/shipping_categories/index.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/_form.html.erb +74 -81
- data/app/views/spree/admin/shipping_methods/index.html.erb +3 -3
- data/app/views/spree/admin/states/_form.html.erb +2 -2
- data/app/views/spree/admin/states/index.html.erb +9 -5
- data/app/views/spree/admin/stock_locations/_form.html.erb +42 -28
- data/app/views/spree/admin/stock_locations/_transfer_stock_form.html.erb +4 -4
- data/app/views/spree/admin/stock_locations/index.html.erb +1 -1
- data/app/views/spree/admin/stock_movements/_form.html.erb +1 -1
- data/app/views/spree/admin/stock_movements/index.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/_stock_movements.html.erb +1 -1
- data/app/views/spree/admin/stock_transfers/_transfer_item_table.html.erb +10 -1
- data/app/views/spree/admin/stock_transfers/index.html.erb +29 -27
- data/app/views/spree/admin/stock_transfers/show.html.erb +26 -24
- data/app/views/spree/admin/store_credits/_form.html.erb +3 -3
- data/app/views/spree/admin/store_credits/_update_reason_field.html.erb +1 -1
- data/app/views/spree/admin/store_credits/edit_amount.html.erb +1 -1
- data/app/views/spree/admin/store_credits/index.html.erb +2 -2
- data/app/views/spree/admin/style_guide/topics/forms/_building_forms.html.erb +49 -47
- data/app/views/spree/admin/style_guide/topics/messaging/_loading.html.erb +11 -1
- data/app/views/spree/admin/tax_categories/_form.html.erb +4 -4
- data/app/views/spree/admin/tax_categories/index.html.erb +1 -1
- data/app/views/spree/admin/tax_rates/_form.html.erb +28 -28
- data/app/views/spree/admin/tax_rates/index.html.erb +1 -1
- data/app/views/spree/admin/taxonomies/index.html.erb +1 -1
- data/app/views/spree/admin/taxons/_form.html.erb +6 -6
- data/app/views/spree/admin/taxons/index.html.erb +2 -2
- data/app/views/spree/admin/users/_addresses_form.html.erb +19 -15
- data/app/views/spree/admin/users/_form.html.erb +9 -6
- data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -1
- data/app/views/spree/admin/users/addresses.html.erb +1 -1
- data/app/views/spree/admin/users/edit.html.erb +2 -2
- data/app/views/spree/admin/users/items.html.erb +2 -2
- data/app/views/spree/admin/users/orders.html.erb +2 -2
- data/app/views/spree/admin/variants/_form.html.erb +73 -49
- data/app/views/spree/admin/variants/_table_filter.html.erb +12 -8
- data/app/views/spree/admin/variants/index.html.erb +2 -2
- data/app/views/spree/admin/zones/_country_members.html.erb +1 -1
- data/app/views/spree/admin/zones/_form.html.erb +34 -31
- data/app/views/spree/admin/zones/_state_members.html.erb +1 -1
- data/app/views/spree/admin/zones/index.html.erb +1 -3
- data/app/views/spree/layouts/admin.html.erb +4 -4
- data/config/routes.rb +0 -11
- data/solidus_backend.gemspec +4 -1
- data/spec/controllers/spree/admin/payments_controller_spec.rb +2 -3
- data/spec/controllers/spree/admin/prices_controller_spec.rb +5 -3
- data/spec/features/admin/configuration/general_settings_spec.rb +12 -0
- data/spec/features/admin/configuration/payment_methods_spec.rb +3 -2
- data/spec/features/admin/configuration/shipping_methods_spec.rb +1 -1
- data/spec/features/admin/homepage_spec.rb +0 -3
- data/spec/features/admin/orders/adjustments_spec.rb +28 -25
- data/spec/features/admin/orders/customer_details_spec.rb +1 -1
- data/spec/features/admin/orders/order_details_spec.rb +27 -1
- data/spec/features/admin/orders/payments_spec.rb +1 -1
- data/spec/features/admin/products/edit/images_spec.rb +28 -1
- data/spec/features/admin/products/pricing_spec.rb +17 -2
- data/spec/features/admin/products/products_spec.rb +0 -104
- data/spec/features/admin/store_credits_spec.rb +3 -3
- data/spec/features/admin/users_spec.rb +7 -1
- metadata +21 -32
- data/app/assets/javascripts/spree/backend/nested-attribute.js +0 -27
- data/app/assets/stylesheets/spree/backend/sections/_adjustments_table.scss +0 -8
- data/app/assets/stylesheets/spree/backend/sections/_edit_checkouts.scss +0 -72
- data/app/assets/stylesheets/spree/backend/sections/_tax_zones.scss +0 -15
- data/app/controllers/spree/admin/prototypes_controller.rb +0 -26
- data/app/controllers/spree/admin/trackers_controller.rb +0 -6
- data/app/views/spree/admin/prototypes/_form.html.erb +0 -36
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +0 -25
- data/app/views/spree/admin/prototypes/available.js.erb +0 -2
- data/app/views/spree/admin/prototypes/edit.html.erb +0 -15
- data/app/views/spree/admin/prototypes/index.html.erb +0 -50
- data/app/views/spree/admin/prototypes/new.html.erb +0 -9
- data/app/views/spree/admin/prototypes/new.js.erb +0 -5
- data/app/views/spree/admin/prototypes/select.js.erb +0 -4
- data/app/views/spree/admin/prototypes/show.html.erb +0 -42
- data/app/views/spree/admin/trackers/_form.html.erb +0 -28
- data/app/views/spree/admin/trackers/edit.html.erb +0 -19
- data/app/views/spree/admin/trackers/index.html.erb +0 -54
- data/app/views/spree/admin/trackers/new.html.erb +0 -18
- data/spec/features/admin/configuration/analytics_tracker_spec.rb +0 -50
- 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="
|
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="
|
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="
|
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" %>
|
@@ -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="
|
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="
|
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"
|
2
|
+
<form id="table-filter">
|
3
3
|
<fieldset>
|
4
4
|
<legend align="center">Search</legend>
|
5
|
-
<div class="
|
6
|
-
<div class="field">
|
7
|
-
<
|
8
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
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
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
-
|
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="
|
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="
|
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="
|
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="
|
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="
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<%= render 'list' %>
|
16
16
|
</div>
|
17
17
|
<% else %>
|
18
|
-
<div class="
|
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="
|
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="
|
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="
|
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'
|
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'
|
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'
|
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="
|
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='
|
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
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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="
|
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="
|
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
|
-
|
64
|
-
|
65
|
-
<%= f.
|
66
|
-
|
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
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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="
|
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 %>
|