spree_backend 4.1.15 → 4.2.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/backend-add.svg +5 -0
- data/app/assets/images/backend-adjust.svg +5 -0
- data/app/assets/images/backend-approve.svg +3 -0
- data/app/assets/images/backend-arrow-down.svg +1 -0
- data/app/assets/images/backend-arrow-left.svg +1 -0
- data/app/assets/images/backend-arrow-right.svg +1 -0
- data/app/assets/images/backend-arrow-up.svg +1 -0
- data/app/assets/images/backend-calendar.svg +9 -0
- data/app/assets/images/backend-cancel.svg +7 -0
- data/app/assets/images/backend-capture.svg +3 -0
- data/app/assets/images/backend-cart.svg +1 -0
- data/app/assets/images/backend-chevron-down.svg +1 -0
- data/app/assets/images/backend-chevron-left.svg +1 -0
- data/app/assets/images/backend-chevron-right.svg +1 -0
- data/app/assets/images/backend-chevron-up.svg +1 -0
- data/app/assets/images/backend-clone.svg +7 -0
- data/app/assets/images/backend-close.svg +7 -0
- data/app/assets/images/backend-delete.svg +6 -0
- data/app/assets/images/backend-double-chevron-left.svg +15 -0
- data/app/assets/images/backend-double-chevron-right.svg +17 -0
- data/app/assets/images/backend-edit.svg +14 -0
- data/app/assets/images/backend-enter.svg +6 -0
- data/app/assets/images/backend-envelope.svg +3 -0
- data/app/assets/images/backend-exit.svg +13 -0
- data/app/assets/images/backend-extensions.svg +4 -0
- data/app/assets/images/backend-eye-open.svg +8 -0
- data/app/assets/images/backend-file.svg +6 -0
- data/app/assets/images/backend-filter.svg +3 -0
- data/app/assets/images/backend-folder.svg +4 -0
- data/app/assets/images/backend-images.svg +7 -0
- data/app/assets/images/backend-info.svg +7 -0
- data/app/assets/images/backend-items.svg +5 -0
- data/app/assets/images/backend-leaf.svg +7 -0
- data/app/assets/images/backend-list.svg +5 -0
- data/app/assets/images/backend-location.svg +4 -0
- data/app/assets/images/backend-menu.svg +5 -0
- data/app/assets/images/backend-money.svg +1 -0
- data/app/assets/images/backend-move.svg +5 -0
- data/app/assets/images/backend-ok.svg +3 -0
- data/app/assets/images/backend-pagination-double-arrow-right.svg +8 -0
- data/app/assets/images/backend-payments.svg +8 -0
- data/app/assets/images/backend-pencil.svg +1 -0
- data/app/assets/images/backend-products.svg +5 -0
- data/app/assets/images/backend-promotion.svg +8 -0
- data/app/assets/images/backend-recycle.svg +5 -0
- data/app/assets/images/backend-remove.svg +6 -0
- data/app/assets/images/backend-report.svg +6 -0
- data/app/assets/images/backend-resume.svg +5 -0
- data/app/assets/images/backend-returns.svg +3 -0
- data/app/assets/images/backend-save.svg +3 -0
- data/app/assets/images/backend-search.svg +1 -0
- data/app/assets/images/backend-settings.svg +6 -0
- data/app/assets/images/backend-shipping.svg +3 -0
- data/app/assets/images/backend-slack.svg +3 -0
- data/app/assets/images/backend-sort.svg +5 -0
- data/app/assets/images/backend-split.svg +3 -0
- data/app/assets/images/backend-store.svg +14 -0
- data/app/assets/images/backend-tick.svg +3 -0
- data/app/assets/images/backend-update.svg +3 -0
- data/app/assets/images/backend-user.svg +3 -0
- data/app/assets/images/backend-users.svg +6 -0
- data/app/assets/images/backend-view.svg +8 -0
- data/app/assets/images/backend-void.svg +7 -0
- data/app/assets/javascripts/spree/backend/admin.js +156 -147
- data/app/assets/javascripts/spree/backend/checkouts/edit.js +1 -0
- data/app/assets/javascripts/spree/backend/flatpickr_locals.js +37 -0
- data/app/assets/javascripts/spree/backend/multi_currency.js +38 -0
- data/app/assets/javascripts/spree/backend/payments/edit.js +4 -3
- data/app/assets/javascripts/spree/backend/payments/new.js +18 -18
- data/app/assets/javascripts/spree/backend/promotions.js +1 -1
- data/app/assets/javascripts/spree/backend/spree-select2.js +18 -4
- data/app/assets/javascripts/spree/backend/stock_management.js +2 -1
- data/app/assets/javascripts/spree/backend/taxon_tree_menu.js +4 -4
- data/app/assets/javascripts/spree/backend/taxonomy.js +8 -1
- data/app/assets/javascripts/spree/backend/taxons.js +25 -16
- data/app/assets/javascripts/spree/backend/user_picker.js +1 -1
- data/app/assets/javascripts/spree/backend/variant_autocomplete.js +1 -1
- data/app/assets/javascripts/spree/backend/variant_management.js +2 -1
- data/app/assets/javascripts/spree/backend.js +5 -2
- data/app/assets/stylesheets/spree/backend/components/_buttons.scss +27 -11
- data/app/assets/stylesheets/spree/backend/components/_filters.scss +35 -5
- data/app/assets/stylesheets/spree/backend/components/_icons.scss +39 -4
- data/app/assets/stylesheets/spree/backend/components/_main.scss +32 -6
- data/app/assets/stylesheets/spree/backend/components/_navbar.scss +16 -8
- data/app/assets/stylesheets/spree/backend/components/_sidebar.scss +119 -55
- data/app/assets/stylesheets/spree/backend/components/_tables.scss +62 -19
- data/app/assets/stylesheets/spree/backend/components/_taxon_products_view.scss +26 -63
- data/app/assets/stylesheets/spree/backend/global/_variables.scss +5 -1
- data/app/assets/stylesheets/spree/backend/plugins/_flatpickr.scss +95 -0
- data/app/assets/stylesheets/spree/backend/plugins/_jquery_ui.scss +0 -117
- data/app/assets/stylesheets/spree/backend/plugins/_select2.scss +73 -24
- data/app/assets/stylesheets/spree/backend/shared/_base.scss +40 -0
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +38 -0
- data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +5 -0
- data/app/assets/stylesheets/spree/backend/views/_order_payments.scss +12 -0
- data/app/assets/stylesheets/spree/backend/views/_product_properties.scss +11 -0
- data/app/assets/stylesheets/spree/backend/views/prototypes.scss +42 -0
- data/app/assets/stylesheets/spree/backend.css +1 -1
- data/app/controllers/spree/admin/general_settings_controller.rb +27 -0
- data/app/controllers/spree/admin/prices_controller.rb +39 -0
- data/app/controllers/spree/admin/stock_transfers_controller.rb +8 -1
- data/app/controllers/spree/admin/stores_controller.rb +61 -1
- data/app/controllers/spree/admin/taxons_controller.rb +5 -1
- data/app/helpers/spree/admin/base_helper.rb +25 -8
- data/app/helpers/spree/admin/navigation_helper.rb +50 -19
- data/app/helpers/spree/admin/orders_helper.rb +3 -3
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_first_page.html.erb +1 -1
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_gap.html.erb +1 -1
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_last_page.html.erb +1 -1
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_next_page.html.erb +1 -1
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_page.html.erb +0 -0
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_paginator.html.erb +1 -1
- data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_prev_page.html.erb +1 -1
- data/app/views/spree/admin/adjustments/_adjustment.html.erb +2 -2
- data/app/views/spree/admin/adjustments/_adjustments_table.html.erb +16 -16
- data/app/views/spree/admin/adjustments/edit.html.erb +2 -2
- data/app/views/spree/admin/adjustments/index.html.erb +3 -3
- data/app/views/spree/admin/adjustments/new.html.erb +1 -1
- data/app/views/spree/admin/countries/_form.html.erb +9 -4
- data/app/views/spree/admin/countries/index.html.erb +27 -24
- data/app/views/spree/admin/customer_returns/_reimbursements_table.html.erb +37 -35
- data/app/views/spree/admin/customer_returns/_return_item_decision.html.erb +2 -0
- data/app/views/spree/admin/customer_returns/_return_item_selection.html.erb +45 -43
- data/app/views/spree/admin/customer_returns/index.html.erb +3 -1
- data/app/views/spree/admin/customer_returns/new.html.erb +1 -1
- data/app/views/spree/admin/general_settings/_form.html.erb +27 -0
- data/app/views/spree/admin/general_settings/edit.html.erb +4 -3
- data/app/views/spree/admin/images/edit.html.erb +2 -2
- data/app/views/spree/admin/images/index.html.erb +7 -7
- data/app/views/spree/admin/images/new.html.erb +2 -2
- data/app/views/spree/admin/log_entries/index.html.erb +4 -3
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +1 -1
- data/app/views/spree/admin/option_types/edit.html.erb +22 -20
- data/app/views/spree/admin/option_types/index.html.erb +27 -25
- data/app/views/spree/admin/orders/_adjustments.html.erb +26 -26
- data/app/views/spree/admin/orders/_line_items.html.erb +7 -7
- data/app/views/spree/admin/orders/_order_actions.html.erb +1 -1
- data/app/views/spree/admin/orders/_risk_analysis.html.erb +44 -42
- data/app/views/spree/admin/orders/_shipment.html.erb +6 -6
- data/app/views/spree/admin/orders/_shipment_manifest.html.erb +5 -5
- data/app/views/spree/admin/orders/_store_form.html.erb +3 -3
- data/app/views/spree/admin/orders/customer_details/_form.html.erb +1 -1
- data/app/views/spree/admin/orders/index.html.erb +135 -127
- data/app/views/spree/admin/payment_methods/index.html.erb +6 -4
- data/app/views/spree/admin/payments/_capture_events.html.erb +18 -16
- data/app/views/spree/admin/payments/_form.html.erb +1 -1
- data/app/views/spree/admin/payments/_list.html.erb +39 -37
- data/app/views/spree/admin/payments/index.html.erb +2 -3
- data/app/views/spree/admin/payments/new.html.erb +1 -1
- data/app/views/spree/admin/payments/show.html.erb +1 -1
- data/app/views/spree/admin/payments/source_forms/_gateway.html.erb +30 -30
- data/app/views/spree/admin/payments/source_views/_gateway.html.erb +20 -18
- data/app/views/spree/admin/payments/source_views/_storecredit.html.erb +28 -26
- data/app/views/spree/admin/prices/_variant_prices.html.erb +43 -0
- data/app/views/spree/admin/prices/index.html.erb +21 -0
- data/app/views/spree/admin/product_properties/_product_property_fields.html.erb +16 -4
- data/app/views/spree/admin/product_properties/index.html.erb +24 -19
- data/app/views/spree/admin/products/_add_stock_form.html.erb +1 -1
- data/app/views/spree/admin/products/_autocomplete.js.erb +27 -21
- data/app/views/spree/admin/products/_form.html.erb +40 -9
- data/app/views/spree/admin/products/edit.html.erb +1 -1
- data/app/views/spree/admin/products/index.html.erb +24 -19
- data/app/views/spree/admin/products/new.html.erb +11 -2
- data/app/views/spree/admin/products/stock.html.erb +3 -3
- data/app/views/spree/admin/promotion_categories/index.html.erb +4 -1
- data/app/views/spree/admin/promotions/_actions.html.erb +2 -2
- data/app/views/spree/admin/promotions/_form.html.erb +44 -17
- 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 +4 -4
- data/app/views/spree/admin/promotions/edit.html.erb +2 -2
- data/app/views/spree/admin/promotions/index.html.erb +5 -3
- data/app/views/spree/admin/promotions/new.html.erb +7 -6
- data/app/views/spree/admin/promotions/rules/_country.html.erb +1 -1
- data/app/views/spree/admin/promotions/rules/_item_total.html.erb +5 -5
- data/app/views/spree/admin/promotions/rules/_option_value.html.erb +6 -13
- data/app/views/spree/admin/promotions/rules/_product.html.erb +1 -1
- data/app/views/spree/admin/promotions/rules/_taxon.html.erb +1 -1
- data/app/views/spree/admin/properties/index.html.erb +5 -3
- data/app/views/spree/admin/prototypes/_prototypes.html.erb +30 -28
- data/app/views/spree/admin/prototypes/index.html.erb +21 -19
- data/app/views/spree/admin/prototypes/show.html.erb +21 -8
- data/app/views/spree/admin/refunds/edit.html.erb +2 -2
- data/app/views/spree/admin/refunds/new.html.erb +2 -2
- data/app/views/spree/admin/reimbursement_types/_form.html.erb +4 -4
- data/app/views/spree/admin/reimbursement_types/index.html.erb +4 -2
- data/app/views/spree/admin/reimbursements/edit.html.erb +66 -63
- data/app/views/spree/admin/reimbursements/index.html.erb +21 -20
- data/app/views/spree/admin/reimbursements/show.html.erb +66 -60
- data/app/views/spree/admin/reports/index.html.erb +18 -17
- data/app/views/spree/admin/reports/sales_total.html.erb +20 -19
- data/app/views/spree/admin/return_authorizations/_form.html.erb +3 -2
- data/app/views/spree/admin/return_authorizations/edit.html.erb +3 -3
- data/app/views/spree/admin/return_authorizations/index.html.erb +3 -1
- data/app/views/spree/admin/return_authorizations/new.html.erb +2 -2
- data/app/views/spree/admin/return_index/customer_returns.html.erb +4 -4
- data/app/views/spree/admin/return_index/return_authorizations.html.erb +4 -4
- data/app/views/spree/admin/roles/index.html.erb +21 -19
- data/app/views/spree/admin/shared/_account_nav.html.erb +51 -65
- data/app/views/spree/admin/shared/_address_form.html.erb +31 -73
- data/app/views/spree/admin/shared/_cal_close.html.erb +10 -0
- data/app/views/spree/admin/shared/_content_header.html.erb +40 -21
- data/app/views/spree/admin/shared/_edit_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_header.html.erb +14 -11
- data/app/views/spree/admin/shared/_index_table_options.html.erb +5 -7
- data/app/views/spree/admin/shared/_main_menu.html.erb +25 -14
- data/app/views/spree/admin/shared/_new_resource_links.html.erb +2 -2
- data/app/views/spree/admin/shared/_order_summary.html.erb +2 -0
- data/app/views/spree/admin/shared/_order_tabs.html.erb +9 -9
- data/app/views/spree/admin/shared/_product_tabs.html.erb +13 -5
- data/app/views/spree/admin/shared/_refunds.html.erb +31 -29
- data/app/views/spree/admin/shared/_report_order_criteria.html.erb +27 -6
- data/app/views/spree/admin/shared/_sidebar.html.erb +19 -1
- data/app/views/spree/admin/shared/_table_filter.html.erb +3 -3
- data/app/views/spree/admin/shared/_translations.html.erb +33 -1
- data/app/views/spree/admin/shared/_version.html.erb +1 -1
- data/app/views/spree/admin/shared/named_types/_index.html.erb +3 -1
- data/app/views/spree/admin/shipping_categories/index.html.erb +3 -1
- data/app/views/spree/admin/shipping_methods/index.html.erb +3 -1
- data/app/views/spree/admin/state_changes/index.html.erb +5 -2
- data/app/views/spree/admin/states/_state_list.html.erb +25 -24
- 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/index.html.erb +3 -1
- data/app/views/spree/admin/stock_movements/index.html.erb +28 -26
- data/app/views/spree/admin/stock_transfers/_stock_movements.html.erb +20 -18
- data/app/views/spree/admin/stock_transfers/index.html.erb +6 -4
- data/app/views/spree/admin/stock_transfers/new.html.erb +3 -3
- data/app/views/spree/admin/stock_transfers/show.html.erb +3 -3
- data/app/views/spree/admin/store_credit_categories/index.html.erb +3 -1
- data/app/views/spree/admin/store_credits/index.html.erb +3 -1
- data/app/views/spree/admin/stores/_form.html.erb +128 -68
- data/app/views/spree/admin/stores/edit.html.erb +1 -1
- data/app/views/spree/admin/stores/index.html.erb +4 -2
- data/app/views/spree/admin/tax_categories/index.html.erb +29 -27
- data/app/views/spree/admin/tax_rates/index.html.erb +3 -1
- data/app/views/spree/admin/taxonomies/_list.html.erb +24 -22
- data/app/views/spree/admin/taxonomies/edit.html.erb +2 -2
- data/app/views/spree/admin/taxonomies/index.html.erb +1 -1
- data/app/views/spree/admin/taxons/_form.html.erb +3 -3
- data/app/views/spree/admin/taxons/_taxon_table.html.erb +24 -22
- data/app/views/spree/admin/taxons/edit.html.erb +6 -2
- data/app/views/spree/admin/taxons/index.html.erb +1 -1
- data/app/views/spree/admin/users/_lifetime_stats.html.erb +24 -23
- data/app/views/spree/admin/users/_sidebar.html.erb +5 -5
- data/app/views/spree/admin/users/_user_page_actions.html.erb +1 -1
- data/app/views/spree/admin/users/edit.html.erb +2 -2
- data/app/views/spree/admin/users/index.html.erb +25 -23
- data/app/views/spree/admin/users/items.html.erb +3 -2
- data/app/views/spree/admin/users/orders.html.erb +30 -29
- data/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb +3 -3
- data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +2 -2
- data/app/views/spree/admin/variants/_form.html.erb +14 -2
- data/app/views/spree/admin/variants/_split.js.erb +2 -2
- data/app/views/spree/admin/variants/index.html.erb +7 -5
- data/app/views/spree/admin/zones/index.html.erb +4 -4
- data/app/views/spree/layouts/admin.html.erb +33 -27
- data/config/initializers/ransack.rb +31 -0
- data/config/routes.rb +1 -0
- data/lib/spree/backend.rb +2 -0
- data/lib/spree_backend.rb +0 -1
- data/spec/fixtures/thinking-cat.jpg +0 -0
- data/spree_backend.gemspec +6 -4
- data/vendor/assets/javascripts/js.cookie.js +154 -156
- data/vendor/assets/javascripts/purify.js +1217 -0
- data/vendor/assets/javascripts/sortable.js +3709 -0
- data/vendor/assets/stylesheets/animate.css +7 -3156
- data/vendor/assets/stylesheets/jquery.jstree/themes/spree/style.scss +23 -9
- metadata +138 -25
data/app/views/kaminari/{twitter-bootstrap-4 → admin-twitter-bootstrap-4}/_prev_page.html.erb
RENAMED
@@ -8,6 +8,6 @@
|
|
8
8
|
-%>
|
9
9
|
<% unless current_page.first? %>
|
10
10
|
<li class="prev page-item">
|
11
|
-
<%= link_to_unless current_page.first?,
|
11
|
+
<%= link_to_unless current_page.first?, svg_icon(name: "chevron-left.svg", width: '13', height: '16', classes: 'spree-icon-arrow-left mb-0'), url, rel: 'prev', remote: remote, class: 'page-link', 'aria-label': 'Previous page' %>
|
12
12
|
</li>
|
13
13
|
<% end %>
|
@@ -14,8 +14,8 @@
|
|
14
14
|
<%= adjustment.display_amount.to_html %>
|
15
15
|
</td>
|
16
16
|
<td class="text-center">
|
17
|
-
<span class="badge badge-<%= adjustment.state %>">
|
18
|
-
<%= adjustment.state %>
|
17
|
+
<span class="text-lowercase badge badge-<%= adjustment.state %>">
|
18
|
+
<%= Spree.t("state_machine_states.#{adjustment.state}") %>
|
19
19
|
</span>
|
20
20
|
</td>
|
21
21
|
<td class="actions actions-2 text-center">
|
@@ -1,22 +1,22 @@
|
|
1
1
|
<div class="card-header">
|
2
2
|
<h3 class="card-title mb-0 h5"><%= Spree.t(:order_adjustments) %></h3>
|
3
3
|
</div>
|
4
|
-
|
5
|
-
<table class="table table-bordered adjustments" data-hook="adjustments">
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
</table>
|
19
|
-
|
4
|
+
<div class="table-responsive">
|
5
|
+
<table class="table table-bordered adjustments" data-hook="adjustments">
|
6
|
+
<thead data-hook="adjustmment_head">
|
7
|
+
<tr>
|
8
|
+
<th><%= Spree.t(:adjustable) %></th>
|
9
|
+
<th><%= Spree.t(:description) %></th>
|
10
|
+
<th class="text-center"><%= Spree.t(:amount) %></th>
|
11
|
+
<th class="text-center"><%= Spree.t(:status) %></th>
|
12
|
+
<th class="actions"></th>
|
13
|
+
</tr>
|
14
|
+
</thead>
|
15
|
+
<tbody>
|
16
|
+
<%= render partial: "adjustment", collection: @adjustments %>
|
17
|
+
</tbody>
|
18
|
+
</table>
|
19
|
+
</div>
|
20
20
|
<% if can?(:edit, Spree::Adjustment) %>
|
21
21
|
<div class="card-footer">
|
22
22
|
<div class="row text-center pb-0">
|
@@ -11,9 +11,9 @@
|
|
11
11
|
<%= render partial: 'form', locals: { f: f } %>
|
12
12
|
|
13
13
|
<div class="form-actions" data-hook="buttons">
|
14
|
-
<%= button Spree.t(:continue), 'save' %>
|
14
|
+
<%= button Spree.t(:continue), 'save.svg' %>
|
15
15
|
<span class="or"><%= Spree.t(:or) %></span>
|
16
|
-
<%= button_link_to Spree.t('actions.cancel'), spree.admin_order_adjustments_url(@order), icon: '
|
16
|
+
<%= button_link_to Spree.t('actions.cancel'), spree.admin_order_adjustments_url(@order), icon: 'cancel.svg' %>
|
17
17
|
</div>
|
18
18
|
</fieldset>
|
19
19
|
<% end %>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<%= render partial: 'spree/admin/shared/order_tabs', locals: { current: :adjustments} %>
|
2
2
|
|
3
3
|
<% content_for :page_title do %>
|
4
|
-
/ <%=
|
4
|
+
/ <%= Spree.t(:adjustments) %>
|
5
5
|
<% end %>
|
6
6
|
|
7
7
|
<% content_for :page_actions do %>
|
8
|
-
<%= button_link_to(Spree.t(:new_adjustment), new_admin_order_adjustment_url(@order), class: "btn-success", icon: 'add') if can? :create, Spree::Adjustment %>
|
8
|
+
<%= button_link_to(Spree.t(:new_adjustment), new_admin_order_adjustment_url(@order), class: "btn-success", icon: 'add.svg') if can? :create, Spree::Adjustment %>
|
9
9
|
<% end %>
|
10
10
|
|
11
11
|
<% if @adjustments.present? %>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<div class="form-group">
|
25
25
|
<%= text_field_tag "coupon_code", "", placeholder: Spree.t(:coupon_code), class: "form-control" %>
|
26
26
|
</div>
|
27
|
-
<%= button Spree.t(:add_coupon_code), '
|
27
|
+
<%= button Spree.t(:add_coupon_code), 'add.svg', 'submit', id: "add_coupon_code" %>
|
28
28
|
</div>
|
29
29
|
</div>
|
30
30
|
<% end %>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<div class="form-actions" data-hook="buttons">
|
14
14
|
<%= button Spree.t(:continue), 'save' %>
|
15
15
|
<span class="or"><%= Spree.t(:or) %></span>
|
16
|
-
<%= button_link_to Spree.t('actions.cancel'), spree.admin_order_adjustments_url(@order), icon: '
|
16
|
+
<%= button_link_to Spree.t('actions.cancel'), spree.admin_order_adjustments_url(@order), icon: 'cancel' %>
|
17
17
|
</div>
|
18
18
|
</fieldset>
|
19
19
|
<% end %>
|
@@ -24,9 +24,14 @@
|
|
24
24
|
<% end %>
|
25
25
|
|
26
26
|
<div data-hook="states_required" class="form-group checkbox">
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
<%= f.check_box :states_required %>
|
28
|
+
<%= f.label :states_required, Spree.t(:states_required) %>
|
29
|
+
<%= f.error_message_on :states_required %>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<div data-hook="zipcode_required" class="form-group checkbox">
|
33
|
+
<%= f.check_box :zipcode_required %>
|
34
|
+
<%= f.label :zipcode_required, Spree.t(:zipcode_required) %>
|
35
|
+
<%= f.error_message_on :zipcode_required %>
|
31
36
|
</div>
|
32
37
|
</div>
|
@@ -3,29 +3,32 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_country), new_object_url, { class: "btn-success", icon: 'add', id: 'admin_new_country' } %>
|
6
|
+
<%= button_link_to Spree.t(:new_country), new_object_url, { class: "btn-success", icon: 'add.svg', id: 'admin_new_country' } %>
|
7
7
|
<% end if can? :create, Spree::Country %>
|
8
|
-
|
9
|
-
<table class="table" id='listing_countries' data-hook>
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
</thead>
|
18
|
-
<tbody>
|
19
|
-
<% @countries.each do |country| %>
|
20
|
-
<tr id="<%= spree_dom_id country %>" data-hook="country_row">
|
21
|
-
<td><%= country.name %></td>
|
22
|
-
<td><%= country.iso_name %></td>
|
23
|
-
<td class="text-center"><%= country.states_required? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
|
24
|
-
<td class="actions actions-2 text-right">
|
25
|
-
<%= link_to_edit(country, no_text: true) if can? :edit, country %>
|
26
|
-
<%= link_to_delete(country, no_text: true) if can? :delete, country %>
|
27
|
-
</td>
|
8
|
+
<div class="table-responsive">
|
9
|
+
<table class="table" id='listing_countries' data-hook>
|
10
|
+
<thead>
|
11
|
+
<tr data-hook="tax_header">
|
12
|
+
<th><%= Spree.t(:country_name) %></th>
|
13
|
+
<th><%= Spree.t(:iso3) %></th>
|
14
|
+
<th><%= Spree.t(:states_required) %></th>
|
15
|
+
<th><%= Spree.t(:zipcode_required) %></th>
|
16
|
+
<th class="actions"></th>
|
28
17
|
</tr>
|
29
|
-
|
30
|
-
|
31
|
-
|
18
|
+
</thead>
|
19
|
+
<tbody>
|
20
|
+
<% @countries.each do |country| %>
|
21
|
+
<tr id="<%= spree_dom_id country %>" data-hook="country_row">
|
22
|
+
<td><%= country.name %></td>
|
23
|
+
<td><%= country.iso3 %></td>
|
24
|
+
<td class="text-center"><%= country.states_required? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
|
25
|
+
<td class="text-center"><%= country.zipcode_required? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
|
26
|
+
<td class="actions actions-2 text-right">
|
27
|
+
<%= link_to_edit(country, no_text: true) if can? :edit, country %>
|
28
|
+
<%= link_to_delete(country, no_text: true) if can? :delete, country %>
|
29
|
+
</td>
|
30
|
+
</tr>
|
31
|
+
<% end %>
|
32
|
+
</tbody>
|
33
|
+
</table>
|
34
|
+
</div>
|
@@ -1,36 +1,38 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
<
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
</thead>
|
11
|
-
<tbody>
|
12
|
-
<% reimbursements.each do |reimbursement| %>
|
13
|
-
<tr id="<%= spree_dom_id(reimbursement) %>" data-hook="reimbursement_row">
|
14
|
-
<td>
|
15
|
-
<% if reimbursement.reimbursed? %>
|
16
|
-
<%= link_to reimbursement.number, url_for([:admin, @order, reimbursement]) %>
|
17
|
-
<% else %>
|
18
|
-
<%= reimbursement.number %>
|
19
|
-
<% end %>
|
20
|
-
</td>
|
21
|
-
<td><%= reimbursement.display_total %></td>
|
22
|
-
<td>
|
23
|
-
<span class="state <%= reimbursement_status_color(reimbursement) %>">
|
24
|
-
<%= reimbursement.reimbursement_status %>
|
25
|
-
</span>
|
26
|
-
</td>
|
27
|
-
<td><%= pretty_time(reimbursement.created_at) %></td>
|
28
|
-
<td class="actions actions-1">
|
29
|
-
<% if !reimbursement.reimbursed? %>
|
30
|
-
<%= link_to_edit_url(url_for([:edit, :admin, @order, reimbursement]), title: "admin_edit_#{dom_id(reimbursement)}", no_text: true) if can?(:edit, reimbursement) %>
|
31
|
-
<% end %>
|
32
|
-
</td>
|
1
|
+
<div class="table-responsive">
|
2
|
+
<table class="table table-condensed table-bordered">
|
3
|
+
<thead data-hook="customer_return_header">
|
4
|
+
<tr>
|
5
|
+
<th><%= Spree.t(:number) %></th>
|
6
|
+
<th><%= Spree.t(:total) %></th>
|
7
|
+
<th><%= Spree.t(:status) %></th>
|
8
|
+
<th><%= "#{Spree.t('date')}/#{Spree.t('time')}" %></th>
|
9
|
+
<th></th>
|
33
10
|
</tr>
|
34
|
-
|
35
|
-
|
36
|
-
|
11
|
+
</thead>
|
12
|
+
<tbody>
|
13
|
+
<% reimbursements.each do |reimbursement| %>
|
14
|
+
<tr id="<%= spree_dom_id(reimbursement) %>" data-hook="reimbursement_row">
|
15
|
+
<td>
|
16
|
+
<% if reimbursement.reimbursed? %>
|
17
|
+
<%= link_to reimbursement.number, url_for([:admin, @order, reimbursement]) %>
|
18
|
+
<% else %>
|
19
|
+
<%= reimbursement.number %>
|
20
|
+
<% end %>
|
21
|
+
</td>
|
22
|
+
<td><%= reimbursement.display_total %></td>
|
23
|
+
<td>
|
24
|
+
<span class="state <%= reimbursement_status_color(reimbursement) %>">
|
25
|
+
<%= reimbursement.reimbursement_status %>
|
26
|
+
</span>
|
27
|
+
</td>
|
28
|
+
<td><%= pretty_time(reimbursement.created_at) %></td>
|
29
|
+
<td class="actions actions-1">
|
30
|
+
<% if !reimbursement.reimbursed? %>
|
31
|
+
<%= link_to_edit_url(url_for([:edit, :admin, @order, reimbursement]), title: "admin_edit_#{dom_id(reimbursement)}", no_text: true) if can?(:edit, reimbursement) %>
|
32
|
+
<% end %>
|
33
|
+
</td>
|
34
|
+
</tr>
|
35
|
+
<% end %>
|
36
|
+
</tbody>
|
37
|
+
</table>
|
38
|
+
</div>
|
@@ -1,45 +1,47 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
<
|
4
|
-
<th>
|
5
|
-
<%= check_box_tag 'select-all' %>
|
6
|
-
</th>
|
7
|
-
<th><%= Spree.t(:product) %></th>
|
8
|
-
<th><%= Spree.t(:sku) %></th>
|
9
|
-
<th><%= Spree.t(:pre_tax_amount) %></th>
|
10
|
-
<th><%= Spree.t(:exchange_for) %></th>
|
11
|
-
<th><%= Spree.t(:resellable) %></th>
|
12
|
-
</tr>
|
13
|
-
</thead>
|
14
|
-
<tbody>
|
15
|
-
<%= f.fields_for :return_items, return_items do |item_fields| %>
|
16
|
-
<% return_item = item_fields.object %>
|
1
|
+
<div class="table-responsive">
|
2
|
+
<table class="table table-condensed table-bordered">
|
3
|
+
<thead>
|
17
4
|
<tr>
|
18
|
-
<
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
<td>
|
27
|
-
<div class="variant-name"><%= return_item.inventory_unit.variant.name %></div>
|
28
|
-
<div class="variant-options"><%= return_item.inventory_unit.variant.options_text %></div>
|
29
|
-
</td>
|
30
|
-
<td>
|
31
|
-
<%= return_item.inventory_unit.variant.sku %>
|
32
|
-
</td>
|
33
|
-
<td class="align-center">
|
34
|
-
<%= return_item.display_pre_tax_amount %>
|
35
|
-
</td>
|
36
|
-
<td class="align-center">
|
37
|
-
<%= return_item.exchange_variant.try(:exchange_name) %>
|
38
|
-
</td>
|
39
|
-
<td class="align-center">
|
40
|
-
<%= item_fields.check_box :resellable, { checked: return_item.resellable } %>
|
41
|
-
</td>
|
5
|
+
<th>
|
6
|
+
<%= check_box_tag 'select-all' %>
|
7
|
+
</th>
|
8
|
+
<th><%= Spree.t(:product) %></th>
|
9
|
+
<th><%= Spree.t(:sku) %></th>
|
10
|
+
<th><%= Spree.t(:pre_tax_amount) %></th>
|
11
|
+
<th><%= Spree.t(:exchange_for) %></th>
|
12
|
+
<th><%= Spree.t(:resellable) %></th>
|
42
13
|
</tr>
|
43
|
-
|
44
|
-
|
45
|
-
|
14
|
+
</thead>
|
15
|
+
<tbody>
|
16
|
+
<%= f.fields_for :return_items, return_items do |item_fields| %>
|
17
|
+
<% return_item = item_fields.object %>
|
18
|
+
<tr>
|
19
|
+
<td class="align-center" class="inventory-unit-checkbox">
|
20
|
+
<div style="display:none">
|
21
|
+
<%= item_fields.hidden_field :inventory_unit_id %>
|
22
|
+
<%= item_fields.hidden_field :return_authorization_id %>
|
23
|
+
<%= item_fields.hidden_field :pre_tax_amount %>
|
24
|
+
</div>
|
25
|
+
<%= item_fields.check_box :returned, {checked: false, class: 'add-item', "data-price" => return_item.pre_tax_amount}, '1', '0' %>
|
26
|
+
</td>
|
27
|
+
<td>
|
28
|
+
<div class="variant-name"><%= return_item.inventory_unit.variant.name %></div>
|
29
|
+
<div class="variant-options"><%= return_item.inventory_unit.variant.options_text %></div>
|
30
|
+
</td>
|
31
|
+
<td>
|
32
|
+
<%= return_item.inventory_unit.variant.sku %>
|
33
|
+
</td>
|
34
|
+
<td class="align-center">
|
35
|
+
<%= return_item.display_pre_tax_amount %>
|
36
|
+
</td>
|
37
|
+
<td class="align-center">
|
38
|
+
<%= return_item.exchange_variant.try(:exchange_name) %>
|
39
|
+
</td>
|
40
|
+
<td class="align-center">
|
41
|
+
<%= item_fields.check_box :resellable, { checked: return_item.resellable } %>
|
42
|
+
</td>
|
43
|
+
</tr>
|
44
|
+
<% end %>
|
45
|
+
</tbody>
|
46
|
+
</table>
|
47
|
+
</div>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<% content_for :page_actions do %>
|
4
4
|
<% if @order.shipments.any?(&:shipped?) && can?(:create, Spree::CustomerReturn) %>
|
5
|
-
<%= button_link_to Spree.t(:new_customer_return), spree.new_admin_order_customer_return_path(@order), icon: 'add', class: 'btn-success' %>
|
5
|
+
<%= button_link_to Spree.t(:new_customer_return), spree.new_admin_order_customer_return_path(@order), icon: 'add.svg', class: 'btn-success' %>
|
6
6
|
<% end %>
|
7
7
|
<% end %>
|
8
8
|
|
@@ -13,6 +13,7 @@
|
|
13
13
|
<% if @order.shipments.any?(&:shipped?) %>
|
14
14
|
|
15
15
|
<% if @customer_returns.any? %>
|
16
|
+
<div class="table-responsive">
|
16
17
|
<table class="table">
|
17
18
|
<thead data-hook="customer_return_header">
|
18
19
|
<tr>
|
@@ -43,6 +44,7 @@
|
|
43
44
|
<% end %>
|
44
45
|
</tbody>
|
45
46
|
</table>
|
47
|
+
</div>
|
46
48
|
<% else %>
|
47
49
|
<div class="alert alert-info no-objects-found">
|
48
50
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::CustomerReturn)) %>,
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<div class="form-actions" data-hook="buttons">
|
33
33
|
<%= button Spree.t(:create), 'save' %>
|
34
34
|
<span class="or"><%= Spree.t(:or) %></span>
|
35
|
-
<%= button_link_to Spree.t('actions.cancel'), spree.admin_order_customer_returns_url(@order), icon: '
|
35
|
+
<%= button_link_to Spree.t('actions.cancel'), spree.admin_order_customer_returns_url(@order), icon: 'cancel' %>
|
36
36
|
</div>
|
37
37
|
</fieldset>
|
38
38
|
<% end %>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<div class="panel panel-default currencies">
|
2
|
+
<div class="panel-heading">
|
3
|
+
<%= Spree.t(:currencies) %>
|
4
|
+
</div>
|
5
|
+
|
6
|
+
<div class="panel-body">
|
7
|
+
<div class="form-group">
|
8
|
+
<div class="checkbox">
|
9
|
+
<label>
|
10
|
+
<%= check_box('', :allow_currency_change, { checked: Spree::Config.allow_currency_change }) %>
|
11
|
+
<%= Spree.t('allow_currency_change.short') %>
|
12
|
+
</label>
|
13
|
+
<p class="help-block"><%= Spree.t('allow_currency_change.long') %></p>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<div class="form-group">
|
18
|
+
<div class="checkbox">
|
19
|
+
<label>
|
20
|
+
<%= check_box('', :show_currency_selector, { checked: Spree::Config.show_currency_selector}) %>
|
21
|
+
<%= Spree.t('show_currency_selector.short') %>
|
22
|
+
</label>
|
23
|
+
<p class="help-block"><%= Spree.t('show_currency_selector.long_html') %></p>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</div>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
<%= Spree.t(:clear_cache_warning) %>
|
48
48
|
</div>
|
49
49
|
<div data-hook="general_settings_clear_cache">
|
50
|
-
<%= button Spree.t(:clear_cache), '
|
50
|
+
<%= button Spree.t(:clear_cache), 'recycle.svg', 'button', id: "clear_cache" %>
|
51
51
|
</div>
|
52
52
|
</div>
|
53
53
|
</div>
|
@@ -70,15 +70,16 @@
|
|
70
70
|
<%= label_tag :currency, Spree.t(:choose_currency) %>
|
71
71
|
<%= select_tag :currency, currency_options %>
|
72
72
|
</div>
|
73
|
+
<%= render partial: 'form' %>
|
73
74
|
</div>
|
74
75
|
</div>
|
75
76
|
</div>
|
76
77
|
</div>
|
77
78
|
|
78
79
|
<div class="form-actions" data-hook="buttons">
|
79
|
-
<%= button Spree.t('actions.update'), 'save' %>
|
80
|
+
<%= button Spree.t('actions.update'), 'save.svg' %>
|
80
81
|
<span class="or"><%= Spree.t(:or) %></span>
|
81
|
-
<%= button_link_to Spree.t('actions.cancel'), edit_admin_general_settings_url, icon: '
|
82
|
+
<%= button_link_to Spree.t('actions.cancel'), edit_admin_general_settings_url, icon: 'cancel.svg' %>
|
82
83
|
</div>
|
83
84
|
|
84
85
|
</fieldset>
|
@@ -20,9 +20,9 @@
|
|
20
20
|
</div>
|
21
21
|
|
22
22
|
<div class="form-actions" data-hook="buttons">
|
23
|
-
<%= button Spree.t('actions.update'), 'save' %>
|
23
|
+
<%= button Spree.t('actions.update'), 'save.svg' %>
|
24
24
|
<span class="or"><%= Spree.t(:or) %></span>
|
25
|
-
<%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), id: 'cancel_link', icon: '
|
25
|
+
<%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), id: 'cancel_link', icon: 'cancel.svg' %>
|
26
26
|
</div>
|
27
27
|
</div>
|
28
28
|
</div>
|
@@ -1,11 +1,9 @@
|
|
1
1
|
<%= render partial: 'spree/admin/shared/product_tabs', locals: { current: :images } %>
|
2
2
|
|
3
3
|
<% content_for :page_actions do %>
|
4
|
-
|
5
|
-
<%= yield :page_actions %>
|
6
|
-
</div>
|
4
|
+
<%= yield :page_actions %>
|
7
5
|
<%= product_preview_link(@product) %>
|
8
|
-
<%= button_link_to(Spree.t(:new_image), spree.new_admin_product_image_url(@product), { class: "btn-success", icon: 'add', id: 'new_image_link' }) if can? :create, Spree::Image %>
|
6
|
+
<%= button_link_to(Spree.t(:new_image), spree.new_admin_product_image_url(@product), { class: "btn-success", icon: 'add.svg', id: 'new_image_link' }) if can? :create, Spree::Image %>
|
9
7
|
<% end %>
|
10
8
|
|
11
9
|
<% has_variants = @product.has_variants? %>
|
@@ -15,6 +13,7 @@
|
|
15
13
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Image)) %>.
|
16
14
|
</div>
|
17
15
|
<% else %>
|
16
|
+
<div class="table-responsive">
|
18
17
|
<table class="table sortable" data-hook="images_table" data-sortable-link="<%= update_positions_admin_product_images_url(@product) %>">
|
19
18
|
<thead>
|
20
19
|
<tr data-hook="images_header">
|
@@ -33,12 +32,12 @@
|
|
33
32
|
</tr>
|
34
33
|
</thead>
|
35
34
|
|
36
|
-
<tbody>
|
35
|
+
<tbody id="sortVert">
|
37
36
|
<% (@product.variant_images).each do |image| %>
|
38
37
|
<tr id="<%= spree_dom_id image %>" data-hook="images_row">
|
39
38
|
<td class="move-handle text-center">
|
40
39
|
<% if can? :edit, image %>
|
41
|
-
|
40
|
+
<%= svg_icon name: "sort.svg", width: '18', height: '18' %>
|
42
41
|
<% end %>
|
43
42
|
</td>
|
44
43
|
<td class="image">
|
@@ -49,11 +48,12 @@
|
|
49
48
|
<% end %>
|
50
49
|
<td><%= image.alt %></td>
|
51
50
|
<td class="actions actions-2 text-right">
|
52
|
-
<%= link_to_with_icon('edit', Spree.t(:edit), spree.edit_admin_product_image_url(@product, image), class: 'btn btn-primary btn-sm', no_text: true, data: { action: 'edit' }) if can? :edit, image %>
|
51
|
+
<%= link_to_with_icon('edit.svg', Spree.t(:edit), spree.edit_admin_product_image_url(@product, image), class: 'btn btn-primary btn-sm', no_text: true, data: { action: 'edit' }) if can? :edit, image %>
|
53
52
|
<%= link_to_delete(image, { url: spree.admin_product_image_url(@product, image), no_text: true }) if can? :destroy, image %>
|
54
53
|
</td>
|
55
54
|
</tr>
|
56
55
|
<% end %>
|
57
56
|
</tbody>
|
58
57
|
</table>
|
58
|
+
</div>
|
59
59
|
<% end %>
|
@@ -11,9 +11,9 @@
|
|
11
11
|
<%= render partial: 'form', locals: { f: f } %>
|
12
12
|
|
13
13
|
<div class="form-actions" data-hook="buttons">
|
14
|
-
<%= button Spree.t('actions.create'), 'save' %>
|
14
|
+
<%= button Spree.t('actions.create'), 'save.svg' %>
|
15
15
|
<span class="or"><%= Spree.t(:or) %></span>
|
16
|
-
<%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), icon: 'delete', id: 'cancel_link' %>
|
16
|
+
<%= button_link_to Spree.t('actions.cancel'), spree.admin_product_images_url(@product), icon: 'delete.svg', id: 'cancel_link' %>
|
17
17
|
</div>
|
18
18
|
</fieldset>
|
19
19
|
<% end %>
|
@@ -8,16 +8,16 @@
|
|
8
8
|
<% end %>
|
9
9
|
|
10
10
|
<% content_for :page_actions do %>
|
11
|
-
<%= button_link_to Spree.t(:logs), spree.admin_order_payment_log_entries_url(@order, @payment), icon: 'file' %>
|
11
|
+
<%= button_link_to Spree.t(:logs), spree.admin_order_payment_log_entries_url(@order, @payment), icon: 'file.svg' %>
|
12
12
|
<% end %>
|
13
|
-
|
13
|
+
<div class="table-responsive">
|
14
14
|
<table class="table" id='listing_log_entries'>
|
15
15
|
<% @log_entries.each do |entry| %>
|
16
16
|
<thead>
|
17
17
|
<tr class="log_entry <%= entry.parsed_details.success? ? 'success' : 'fail' %>">
|
18
18
|
<td colspan="2">
|
19
19
|
<h4>
|
20
|
-
<
|
20
|
+
<i class="icon icon-<%= entry.parsed_details.success? ? 'save' : 'cancel' %>"></i>
|
21
21
|
<%= pretty_time(entry.created_at) %>
|
22
22
|
</h4>
|
23
23
|
</td>
|
@@ -31,3 +31,4 @@
|
|
31
31
|
</tbody>
|
32
32
|
<% end %>
|
33
33
|
</table>
|
34
|
+
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<tr class="option_value fields" id="spree_<%= dom_id(f.object) %>" data-hook="option_value">
|
2
2
|
<td class="move-handle text-center">
|
3
|
-
|
3
|
+
<%= svg_icon name: "sort.svg", width: '18', height: '18' %>
|
4
4
|
<%= f.hidden_field :id %>
|
5
5
|
</td>
|
6
6
|
<td class="name"><%= f.text_field :name, class: "form-control" %></td>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
<% content_for :page_actions do %>
|
7
7
|
<span id="new_add_option_value" data-hook>
|
8
|
-
<%= button_link_to Spree.t(:add_option_value), "javascript:;", { icon: 'add', :'data-target' => "tbody#
|
8
|
+
<%= button_link_to Spree.t(:add_option_value), "javascript:;", { icon: 'add.svg', :'data-target' => "tbody#sortVert", class: 'btn-success spree_add_fields' } %>
|
9
9
|
</span>
|
10
10
|
<% end %>
|
11
11
|
|
@@ -21,27 +21,29 @@
|
|
21
21
|
<div class="card-body">
|
22
22
|
<%= render partial: 'form', locals: { f: f } %>
|
23
23
|
</div>
|
24
|
-
<
|
25
|
-
<
|
26
|
-
<
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
</thead>
|
32
|
-
<tbody id="option_values">
|
33
|
-
<% if @option_type.option_values.empty? %>
|
34
|
-
<tr id="none" data-hook="option_none">
|
35
|
-
<td colspan="2"><%= Spree.t(:none) %></td>
|
36
|
-
<td class="actions text-center"></td>
|
24
|
+
<div class="table-responsive">
|
25
|
+
<table class="table table-condensed sortable" data-hook data-sortable-link="<%= update_values_positions_admin_option_types_url %>">
|
26
|
+
<thead data-hook="option_header">
|
27
|
+
<tr>
|
28
|
+
<th colspan="2"><%= Spree.t(:name) %> <span class="required">*</span></th>
|
29
|
+
<th><%= Spree.t(:display) %> <span class="required">*</span></th>
|
30
|
+
<th class="actions"></th>
|
37
31
|
</tr>
|
38
|
-
|
39
|
-
|
40
|
-
|
32
|
+
</thead>
|
33
|
+
<tbody id="sortVert">
|
34
|
+
<% if @option_type.option_values.empty? %>
|
35
|
+
<tr id="none" data-hook="option_none">
|
36
|
+
<td colspan="2"><%= Spree.t(:none) %></td>
|
37
|
+
<td class="actions text-center"></td>
|
38
|
+
</tr>
|
39
|
+
<% else %>
|
40
|
+
<%= f.fields_for :option_values do |option_value_form| %>
|
41
|
+
<%= render partial: 'option_value_fields', locals: { f: option_value_form } %>
|
42
|
+
<% end %>
|
41
43
|
<% end %>
|
42
|
-
|
43
|
-
</
|
44
|
-
</
|
44
|
+
</tbody>
|
45
|
+
</table>
|
46
|
+
</div>
|
45
47
|
<div class="card-footer text-center">
|
46
48
|
<%= render partial: 'spree/admin/shared/edit_resource_links' %>
|
47
49
|
</div>
|