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
@@ -9,11 +9,11 @@
|
|
9
9
|
|
10
10
|
<fieldset>
|
11
11
|
<legend><%= Spree.t(:stock_transfer_name) %></legend>
|
12
|
-
|
12
|
+
<div class="table-responsive">
|
13
13
|
<table class="table table-bordered">
|
14
14
|
<tr>
|
15
15
|
<td width="30%"><strong><%= Spree.t(:created_at) %></strong></td>
|
16
|
-
<td><%= @stock_transfer.created_at %></td>
|
16
|
+
<td><%= pretty_time(@stock_transfer.created_at) %></td>
|
17
17
|
</tr>
|
18
18
|
<% if @stock_transfer.reference.present? %>
|
19
19
|
<tr>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
</tr>
|
23
23
|
<% end %>
|
24
24
|
</table>
|
25
|
-
|
25
|
+
</div>
|
26
26
|
<% if @stock_transfer.source_movements.present? %>
|
27
27
|
<fieldset>
|
28
28
|
<legend id="stock-location-source">
|
@@ -3,10 +3,11 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_store_credit_category), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_store_credit_category_link' %>
|
6
|
+
<%= button_link_to Spree.t(:new_store_credit_category), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_store_credit_category_link' %>
|
7
7
|
<% end if can? :create, Spree::StoreCreditCategory %>
|
8
8
|
|
9
9
|
<% if @store_credit_categories.any? %>
|
10
|
+
<div class="table-responsive">
|
10
11
|
<table class="table">
|
11
12
|
<thead>
|
12
13
|
<tr data-hook="admin_store_credit_categories_index_headers">
|
@@ -26,6 +27,7 @@
|
|
26
27
|
<% end %>
|
27
28
|
</tbody>
|
28
29
|
</table>
|
30
|
+
</div>
|
29
31
|
<% else %>
|
30
32
|
<div class="alert alert-warning">
|
31
33
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StoreCreditCategory)) %>,
|
@@ -10,10 +10,11 @@
|
|
10
10
|
<% end %>
|
11
11
|
|
12
12
|
<% content_for :page_actions do %>
|
13
|
-
<%= button_link_to Spree.t(:add_store_credit), spree.new_admin_user_store_credit_path(@user), class: "btn-success", icon: 'add' if can?(:create, Spree::StoreCredit) %>
|
13
|
+
<%= button_link_to Spree.t(:add_store_credit), spree.new_admin_user_store_credit_path(@user), class: "btn-success", icon: 'add.svg' if can?(:create, Spree::StoreCredit) %>
|
14
14
|
<% end %>
|
15
15
|
|
16
16
|
<% if @store_credits.any? %>
|
17
|
+
<div class="table-responsive">
|
17
18
|
<table class="table">
|
18
19
|
<thead>
|
19
20
|
<th><%= Spree.t(:credited) %></th>
|
@@ -41,6 +42,7 @@
|
|
41
42
|
<% end %>
|
42
43
|
</tbody>
|
43
44
|
</table>
|
45
|
+
</div>
|
44
46
|
<% else %>
|
45
47
|
<div class="alert alert-info no-objects-found">
|
46
48
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StoreCredit)) %>
|
@@ -1,92 +1,128 @@
|
|
1
1
|
<div data-hook="admin_store_form_fields">
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<%=
|
13
|
-
|
3
|
+
<div class="card mb-4">
|
4
|
+
<div class="card-header">
|
5
|
+
<h1 class="card-title mb-0 h5">
|
6
|
+
<%= Spree.t(:basic_information) %>
|
7
|
+
</h1>
|
8
|
+
</div>
|
9
|
+
<div class="card-body">
|
10
|
+
<%= f.field_container :logo, class: ['form-group'] do %>
|
11
|
+
<% if @store.logo.attached? && @store.logo.variable? %>
|
12
|
+
<%= image_tag main_app.url_for(@store.logo.variant(resize: '244x104>')) %>
|
13
|
+
<% elsif @store.logo.attached? && @store.logo.image? %>
|
14
|
+
<%= image_tag main_app.url_for(@store.logo) %>
|
14
15
|
<% end %>
|
15
|
-
<%= f.field_container :
|
16
|
-
<%= f.label :
|
17
|
-
<%= f.
|
18
|
-
<%= f.error_message_on :
|
16
|
+
<%= f.field_container :logo, class: ['form-group'] do %>
|
17
|
+
<%= f.label :logo, Spree.t(:logo) %><br />
|
18
|
+
<%= f.file_field :logo %>
|
19
|
+
<%= f.error_message_on :logo %>
|
19
20
|
<% end %>
|
20
|
-
|
21
|
+
<% end %>
|
22
|
+
<%= f.field_container :name, class: ['form-group'] do %>
|
23
|
+
<%= f.label :name, raw(Spree.t(:name) + required_span_tag) %>
|
24
|
+
<%= f.text_field :name, class: 'form-control', required: true %>
|
25
|
+
<%= f.error_message_on :name %>
|
26
|
+
<% end %>
|
27
|
+
<%= f.field_container :code, class: ['form-group'] do %>
|
28
|
+
<%= f.label :code, raw(Spree.t(:code) + required_span_tag) %>
|
29
|
+
<%= f.text_field :code, class: 'form-control', required: true %>
|
30
|
+
<%= f.error_message_on :code %>
|
31
|
+
<% end %>
|
32
|
+
<%= f.field_container :url, class: ['form-group'] do %>
|
33
|
+
<%= f.label :url, raw(Spree.t(:url) + required_span_tag) %>
|
34
|
+
<%= f.text_field :url, class: 'form-control', required: true %>
|
35
|
+
<%= f.error_message_on :url %>
|
36
|
+
<% end %>
|
21
37
|
</div>
|
38
|
+
</div>
|
22
39
|
|
23
|
-
|
40
|
+
<div class="card mb-4">
|
41
|
+
<div class="card-header">
|
42
|
+
<h1 class="card-title mb-0 h5">
|
43
|
+
<%= Spree.t(:seo) %>
|
44
|
+
</h1>
|
45
|
+
</div>
|
46
|
+
<div class="card-body">
|
47
|
+
<%= f.field_container :seo_title, class: ['form-group'] do %>
|
48
|
+
<%= f.label :seo_title, Spree.t(:seo_title) %>
|
49
|
+
<%= f.text_field :seo_title, class: 'form-control' %>
|
50
|
+
<%= f.error_message_on :seo_title %>
|
51
|
+
<% end %>
|
52
|
+
<%= f.field_container :meta_description, class: ['form-group'] do %>
|
53
|
+
<%= f.label :meta_description, Spree.t(:meta_description) %>
|
54
|
+
<%= f.text_area :meta_description, class: 'form-control' %>
|
55
|
+
<%= f.error_message_on :meta_description %>
|
56
|
+
<% end %>
|
57
|
+
<%= f.field_container :meta_keywords, class: ['form-group'] do %>
|
58
|
+
<%= f.label :meta_keywords, Spree.t(:meta_keywords) %>
|
59
|
+
<%= f.text_field :meta_keywords, class: 'form-control' %>
|
60
|
+
<%= f.error_message_on :meta_keywords %>
|
61
|
+
<% end %>
|
62
|
+
</div>
|
63
|
+
</div>
|
24
64
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
</div>
|
31
|
-
<div class="card-body">
|
32
|
-
<%= f.field_container :seo_title, class: ['form-group'] do %>
|
33
|
-
<%= f.label :seo_title, Spree.t(:seo_title) %>
|
34
|
-
<%= f.text_field :seo_title, class: 'form-control' %>
|
35
|
-
<%= f.error_message_on :seo_title %>
|
36
|
-
<% end %>
|
37
|
-
<%= f.field_container :meta_description, class: ['form-group'] do %>
|
38
|
-
<%= f.label :meta_description, Spree.t(:meta_description) %>
|
39
|
-
<%= f.text_area :meta_description, class: 'form-control' %>
|
40
|
-
<%= f.error_message_on :meta_description %>
|
41
|
-
<% end %>
|
42
|
-
<%= f.field_container :meta_keywords, class: ['form-group'] do %>
|
43
|
-
<%= f.label :meta_keywords, Spree.t(:meta_keywords) %>
|
44
|
-
<%= f.text_field :meta_keywords, class: 'form-control' %>
|
45
|
-
<%= f.error_message_on :meta_keywords %>
|
46
|
-
<% end %>
|
47
|
-
</div>
|
65
|
+
<div class="card mb-4">
|
66
|
+
<div class="card-header">
|
67
|
+
<h1 class="card-title mb-0 h5">
|
68
|
+
<%= Spree.t(:email).pluralize %>
|
69
|
+
</h1>
|
48
70
|
</div>
|
71
|
+
<div class="card-body">
|
72
|
+
<%= f.field_container :mail_from_address, class: ['form-group'] do %>
|
73
|
+
<%= f.label :mail_from_address, raw(Spree.t(:mail_from_address) + required_span_tag) %>
|
74
|
+
<%= f.text_field :mail_from_address, class: 'form-control', required: true %>
|
75
|
+
<%= f.error_message_on :mail_from_address %>
|
76
|
+
<% end %>
|
49
77
|
|
50
|
-
|
78
|
+
<%= f.field_container :customer_support_email, class: ['form-group'] do %>
|
79
|
+
<%= f.label :customer_support_email, Spree.t(:customer_support_email) %>
|
80
|
+
<%= f.text_field :customer_support_email, class: 'form-control' %>
|
81
|
+
<%= f.error_message_on :customer_support_email %>
|
82
|
+
<% end %>
|
51
83
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
</div>
|
58
|
-
<div class="card-body">
|
59
|
-
<%= f.field_container :mail_from_address, class: ['form-group'] do %>
|
60
|
-
<%= f.label :mail_from_address, Spree.t(:mail_from_address) %>
|
61
|
-
<%= f.text_field :mail_from_address, class: 'form-control', required: true %>
|
62
|
-
<%= f.error_message_on :mail_from_address %>
|
63
|
-
<% end %>
|
64
|
-
</div>
|
84
|
+
<%= f.field_container :new_order_notifications_email, class: ['form-group'] do %>
|
85
|
+
<%= f.label :new_order_notifications_email, Spree.t(:new_order_notifications_email) %>
|
86
|
+
<%= f.text_field :new_order_notifications_email, class: 'form-control' %>
|
87
|
+
<%= f.error_message_on :new_order_notifications_email %>
|
88
|
+
<% end %>
|
65
89
|
</div>
|
90
|
+
</div>
|
66
91
|
|
67
|
-
|
68
|
-
|
69
|
-
<div class="card">
|
92
|
+
<div class="card mb-4">
|
70
93
|
<div class="card-header">
|
71
94
|
<h1 class="card-title mb-0 h5">
|
72
|
-
|
95
|
+
<%= Spree.t(:internationalization) %>
|
73
96
|
</h1>
|
74
97
|
</div>
|
75
98
|
<div class="card-body">
|
76
99
|
<%= f.field_container :default_currency, class: ['form-group'] do %>
|
77
100
|
<%= f.label :default_currency, Spree.t(:currency) %>
|
78
|
-
<%= f.select :default_currency, currency_options(@store.default_currency) %>
|
101
|
+
<%= f.select :default_currency, currency_options(@store.default_currency), {}, { class: 'select2' } %>
|
79
102
|
<%= f.error_message_on :default_currency %>
|
80
103
|
<% end %>
|
104
|
+
<%= f.field_container :supported_currencies, class: ['form-group'] do %>
|
105
|
+
<%= f.label :supported_currencies, Spree.t(:supported_currencies) %>
|
106
|
+
<%= f.select :supported_currencies, currency_options(@store.supported_currencies&.split(',')), { prompt: false }, { multiple: true, class: 'select2' } %>
|
107
|
+
<%= f.error_message_on :supported_currencies %>
|
108
|
+
<% end %>
|
109
|
+
<%= f.field_container :default_locale, class: ['form-group'] do %>
|
110
|
+
<%= f.label :default_locale, Spree.t('i18n.language') %>
|
111
|
+
<%= f.select :default_locale, options_from_collection_for_select(all_locales_options, :last, :first, @store.default_locale), {}, { class: 'select2' } %>
|
112
|
+
<%= f.error_message_on :default_locale %>
|
113
|
+
<% end %>
|
114
|
+
<%= f.field_container :default_country_id, class: ['form-group'] do %>
|
115
|
+
<%= f.label :default_country_id, Spree.t('i18n.country') %>
|
116
|
+
<%= f.select :default_country_id, options_from_collection_for_select(@countries, :id, :name, @store.default_country_id), {}, { class: 'select2' } %>
|
117
|
+
<%= f.error_message_on :default_country_id %>
|
118
|
+
<% end %>
|
81
119
|
</div>
|
82
120
|
</div>
|
83
121
|
|
84
|
-
|
85
|
-
|
86
|
-
<div class="card">
|
122
|
+
<div class="card mb-4">
|
87
123
|
<div class="card-header">
|
88
124
|
<h1 class="card-title mb-0 h5">
|
89
|
-
|
125
|
+
<%= Spree.t(:social) %>
|
90
126
|
</h1>
|
91
127
|
</div>
|
92
128
|
<div class="card-body">
|
@@ -108,8 +144,32 @@
|
|
108
144
|
</div>
|
109
145
|
</div>
|
110
146
|
|
111
|
-
<
|
112
|
-
|
113
|
-
<
|
114
|
-
|
115
|
-
</
|
147
|
+
<div class="card mb-4">
|
148
|
+
<div class="card-header">
|
149
|
+
<h1 class="card-title mb-0 h5">
|
150
|
+
<%= Spree.t(:footer_info) %>
|
151
|
+
</h1>
|
152
|
+
</div>
|
153
|
+
<div class="card-body">
|
154
|
+
<%= f.field_container :description, class: ['form-group'] do %>
|
155
|
+
<%= f.label :description, Spree.t(:description) %>
|
156
|
+
<%= f.text_area :description, class: 'form-control' %>
|
157
|
+
<%= f.error_message_on :description %>
|
158
|
+
<% end %>
|
159
|
+
<%= f.field_container :address, class: ['form-group'] do %>
|
160
|
+
<%= f.label :address, Spree.t(:address) %>
|
161
|
+
<%= f.text_area :address, class: 'form-control' %>
|
162
|
+
<%= f.error_message_on :address %>
|
163
|
+
<% end %>
|
164
|
+
<%= f.field_container :contact_email, class: ['form-group'] do %>
|
165
|
+
<%= f.label :contact_email, Spree.t(:contact_email) %>
|
166
|
+
<%= f.text_field :contact_email, class: 'form-control' %>
|
167
|
+
<%= f.error_message_on :contact_email %>
|
168
|
+
<% end %>
|
169
|
+
<%= f.field_container :contact_phone, class: ['form-group'] do %>
|
170
|
+
<%= f.label :contact_phone, Spree.t(:contact_phone) %>
|
171
|
+
<%= f.text_field :contact_phone, class: 'form-control' %>
|
172
|
+
<%= f.error_message_on :contact_phone %>
|
173
|
+
<% end %>
|
174
|
+
</div>
|
175
|
+
</div>
|
@@ -8,6 +8,6 @@
|
|
8
8
|
<%= form_for [:admin, @store] do |f| %>
|
9
9
|
<fieldset>
|
10
10
|
<%= render partial: 'form', locals: { f: f } %>
|
11
|
-
<%= render partial: 'spree/admin/shared/edit_resource_links', locals: { collection_url: spree.admin_stores_path
|
11
|
+
<%= render partial: 'spree/admin/shared/edit_resource_links', locals: { collection_url: spree.admin_stores_path } %>
|
12
12
|
</fieldset>
|
13
13
|
<% end %>
|
@@ -3,10 +3,11 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:add_store), spree.new_admin_store_path(@user), class: "btn-success", icon: 'add' if can?(:create, Spree::Store) %>
|
6
|
+
<%= button_link_to Spree.t(:add_store), spree.new_admin_store_path(@user), class: "btn-success", icon: 'add.svg' if can?(:create, Spree::Store) %>
|
7
7
|
<% end %>
|
8
8
|
|
9
9
|
<% if @stores.any? %>
|
10
|
+
<div class="table-responsive">
|
10
11
|
<table class="table">
|
11
12
|
<thead>
|
12
13
|
<th><%= Spree.t(:name) %></th>
|
@@ -24,7 +25,7 @@
|
|
24
25
|
<td><%= store.default ? "<strong>#{Spree.t(:say_yes)}</strong>".html_safe : Spree.t(:say_no) %>
|
25
26
|
<td class="actions actions-2 text-right" data-hook="admin_stores_index_row_actions">
|
26
27
|
<% if can?(:edit, store) && !store.default %>
|
27
|
-
<%= link_to_with_icon('
|
28
|
+
<%= link_to_with_icon('save.svg', Spree.t(:store_set_default_button), spree.set_default_admin_store_path(store), no_text: true, method: :put, class: 'btn btn-warning btn-sm with-tip') %>
|
28
29
|
<% end %>
|
29
30
|
<%= link_to_edit_url spree.edit_admin_store_path(store), no_text: true if can?(:edit, store) %>
|
30
31
|
<%= link_to_delete store, no_text: true, url: spree.admin_store_path(store) if can?(:destroy, store) %>
|
@@ -33,6 +34,7 @@
|
|
33
34
|
<% end %>
|
34
35
|
</tbody>
|
35
36
|
</table>
|
37
|
+
</div>
|
36
38
|
<% else %>
|
37
39
|
<div class="alert alert-info no-objects-found">
|
38
40
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::StoreCredit)) %>
|
@@ -3,37 +3,39 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_tax_category), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_tax_categories_link' %>
|
6
|
+
<%= button_link_to Spree.t(:new_tax_category), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_tax_categories_link' %>
|
7
7
|
<% end if can? :create, Spree::TaxCategory %>
|
8
8
|
|
9
9
|
<% if @tax_categories.any? %>
|
10
|
-
<
|
11
|
-
<
|
12
|
-
<
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
</thead>
|
20
|
-
<tbody>
|
21
|
-
<% @tax_categories.each do |tax_category|
|
22
|
-
@edit_url = edit_admin_tax_category_path(tax_category)
|
23
|
-
@delete_url = admin_tax_category_path(tax_category)
|
24
|
-
%>
|
25
|
-
<tr id="<%= spree_dom_id tax_category %>" data-hook="tax_row">
|
26
|
-
<td><%= tax_category.name %></td>
|
27
|
-
<td><%= tax_category.tax_code %></td>
|
28
|
-
<td><%= tax_category.description %></td>
|
29
|
-
<td><%= tax_category.is_default? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
|
30
|
-
<td class="actions actions-2 text-right">
|
31
|
-
<%= link_to_edit(tax_category, no_text: true) if can? :edit, tax_category %>
|
32
|
-
<%= link_to_delete(tax_category, no_text: true) if can? :delete, tax_category %>
|
10
|
+
<div class="table-responsive">
|
11
|
+
<table class="table" id='listing_tax_categories' data-hook>
|
12
|
+
<thead>
|
13
|
+
<tr data-hook="tax_header">
|
14
|
+
<th><%= Spree.t(:name) %></th>
|
15
|
+
<th><%= Spree.t(:tax_code) %></th>
|
16
|
+
<th><%= Spree.t(:description) %></th>
|
17
|
+
<th><%= Spree.t(:default) %></th>
|
18
|
+
<th></th>
|
33
19
|
</tr>
|
34
|
-
|
35
|
-
|
36
|
-
|
20
|
+
</thead>
|
21
|
+
<tbody>
|
22
|
+
<% @tax_categories.each do |tax_category|
|
23
|
+
@edit_url = edit_admin_tax_category_path(tax_category)
|
24
|
+
@delete_url = admin_tax_category_path(tax_category)
|
25
|
+
%>
|
26
|
+
<tr id="<%= spree_dom_id tax_category %>" data-hook="tax_row">
|
27
|
+
<td><%= tax_category.name %></td>
|
28
|
+
<td><%= tax_category.tax_code %></td>
|
29
|
+
<td><%= tax_category.description %></td>
|
30
|
+
<td><%= tax_category.is_default? ? Spree.t(:say_yes) : Spree.t(:say_no) %></td>
|
31
|
+
<td class="actions actions-2 text-right">
|
32
|
+
<%= link_to_edit(tax_category, no_text: true) if can? :edit, tax_category %>
|
33
|
+
<%= link_to_delete(tax_category, no_text: true) if can? :delete, tax_category %>
|
34
|
+
</tr>
|
35
|
+
<% end %>
|
36
|
+
</tbody>
|
37
|
+
</table>
|
38
|
+
</div>
|
37
39
|
<% else %>
|
38
40
|
<div class="alert alert-info no-objects-found">
|
39
41
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::TaxCategory)) %>,
|
@@ -3,10 +3,11 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_tax_rate), new_object_url, class: "btn-success", icon: 'add' %>
|
6
|
+
<%= button_link_to Spree.t(:new_tax_rate), new_object_url, class: "btn-success", icon: 'add.svg' %>
|
7
7
|
<% end if can? :create, Spree::TaxRate %>
|
8
8
|
|
9
9
|
<% if @tax_rates.any? %>
|
10
|
+
<div class="table-responsive">
|
10
11
|
<table class="table">
|
11
12
|
<thead>
|
12
13
|
<tr data-hook="rate_header">
|
@@ -38,6 +39,7 @@
|
|
38
39
|
<% end %>
|
39
40
|
</tbody>
|
40
41
|
</table>
|
42
|
+
</div>
|
41
43
|
<% else %>
|
42
44
|
<div class="alert alert-info no-objects-found">
|
43
45
|
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::TaxRate)) %>,
|
@@ -1,23 +1,25 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
<
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
</thead>
|
9
|
-
<tbody>
|
10
|
-
<% @taxonomies.each do |taxonomy| %>
|
11
|
-
<tr id="<%= spree_dom_id taxonomy %>" data-hook="taxonomies_row">
|
12
|
-
<td class="move-handle">
|
13
|
-
<span class="icon icon-sort handle"></span>
|
14
|
-
</td>
|
15
|
-
<td><%= taxonomy.name %></td>
|
16
|
-
<td class="actions actions-2 text-right">
|
17
|
-
<%= link_to_edit taxonomy.id, no_text: true if can?(:edit, taxonomy) %>
|
18
|
-
<%= link_to_delete taxonomy, no_text: true if can?(:delete, taxonomy) %>
|
19
|
-
</td>
|
1
|
+
<div class="table-responsive">
|
2
|
+
<table class="table sortable" id='listing_taxonomies' data-hook data-sortable-link="<%= update_positions_admin_taxonomies_url %>">
|
3
|
+
<thead>
|
4
|
+
<tr data-hook="taxonomies_header">
|
5
|
+
<th class="no-border handel-head"></th>
|
6
|
+
<th><%= Spree.t(:name) %></th>
|
7
|
+
<th class="actions"></th>
|
20
8
|
</tr>
|
21
|
-
|
22
|
-
|
23
|
-
|
9
|
+
</thead>
|
10
|
+
<tbody id="sortVert">
|
11
|
+
<% @taxonomies.each do |taxonomy| %>
|
12
|
+
<tr id="<%= spree_dom_id taxonomy %>" data-hook="taxonomies_row" >
|
13
|
+
<td class="move-handle">
|
14
|
+
<%= svg_icon name: "sort.svg", width: '18', height: '18' %>
|
15
|
+
</td>
|
16
|
+
<td><%= taxonomy.name %></td>
|
17
|
+
<td class="actions actions-2 text-right">
|
18
|
+
<%= link_to_edit taxonomy.id, no_text: true if can?(:edit, taxonomy) %>
|
19
|
+
<%= link_to_delete taxonomy, no_text: true if can?(:delete, taxonomy) %>
|
20
|
+
</td>
|
21
|
+
</tr>
|
22
|
+
<% end %>
|
23
|
+
</tbody>
|
24
|
+
</table>
|
25
|
+
</div>
|
@@ -29,9 +29,9 @@
|
|
29
29
|
</div>
|
30
30
|
|
31
31
|
<div class="form-actions">
|
32
|
-
<%= button Spree.t('actions.update'), '
|
32
|
+
<%= button Spree.t('actions.update'), 'save.svg', 'submit', { class: 'btn-success' } %>
|
33
33
|
<span class="or"><%= Spree.t(:or) %></span>
|
34
|
-
<%= button_link_to Spree.t('actions.cancel'), admin_taxonomies_path, icon: '
|
34
|
+
<%= button_link_to Spree.t('actions.cancel'), admin_taxonomies_path, icon: 'cancel.svg' %>
|
35
35
|
</div>
|
36
36
|
</fieldset>
|
37
37
|
<% end %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% content_for :page_actions do %>
|
6
|
-
<%= button_link_to Spree.t(:new_taxonomy), new_object_url, class: "btn-success", icon: 'add', id: 'admin_new_taxonomy_link' %>
|
6
|
+
<%= button_link_to Spree.t(:new_taxonomy), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_taxonomy_link' %>
|
7
7
|
<% end if can?(:create, Spree::Taxonomy) %>
|
8
8
|
|
9
9
|
<% if @taxonomies.any? %>
|
@@ -25,8 +25,8 @@
|
|
25
25
|
<% end %>
|
26
26
|
|
27
27
|
<%= f.field_container :icon, class: ['form-group'] do %>
|
28
|
-
<%= f.label :icon, Spree.t(:
|
29
|
-
<%= image_tag
|
28
|
+
<%= f.label :icon, Spree.t(:header_banner) %>
|
29
|
+
<%= image_tag(main_app.url_for(@taxon.icon.try(:attachment)), class: 'w-100') if @taxon.icon %>
|
30
30
|
<%= f.file_field :icon %>
|
31
31
|
<% end %>
|
32
32
|
</div>
|
@@ -46,7 +46,7 @@
|
|
46
46
|
|
47
47
|
<%= f.field_container :meta_description, class: ['form-group'] do %>
|
48
48
|
<%= f.label :meta_description, Spree.t(:meta_description) %>
|
49
|
-
<%= f.
|
49
|
+
<%= f.text_area :meta_description, class: 'form-control', rows: 6 %>
|
50
50
|
<% end %>
|
51
51
|
|
52
52
|
<%= f.field_container :meta_keywords, class: ['form-group'] do %>
|
@@ -1,23 +1,25 @@
|
|
1
|
-
<
|
2
|
-
<
|
3
|
-
<
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
</thead>
|
9
|
-
<tbody>
|
10
|
-
<% taxons.each do |taxon| %>
|
11
|
-
<tr id="<%= spree_dom_id(taxon) %>" data-hook="taxons_row">
|
12
|
-
<td><%= taxon.name %></td>
|
13
|
-
<td><%= taxon_path taxon %></td>
|
14
|
-
<td class="actions">
|
15
|
-
<%= link_to_delete taxon, url: remove_admin_product_taxon_url(@product, taxon), name: icon('delete') + ' ' + Spree.t(:remove) %>
|
16
|
-
</td>
|
1
|
+
<div class="table-responsive">
|
2
|
+
<table class="table table-condensed table-bordered">
|
3
|
+
<thead>
|
4
|
+
<tr data-hook="taxons_header">
|
5
|
+
<th><%= Spree.t(:name) %></th>
|
6
|
+
<th><%= Spree.t(:path) %></th>
|
7
|
+
<th></th>
|
17
8
|
</tr>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
9
|
+
</thead>
|
10
|
+
<tbody>
|
11
|
+
<% taxons.each do |taxon| %>
|
12
|
+
<tr id="<%= spree_dom_id(taxon) %>" data-hook="taxons_row">
|
13
|
+
<td><%= taxon.name %></td>
|
14
|
+
<td><%= taxon_path taxon %></td>
|
15
|
+
<td class="actions">
|
16
|
+
<%= link_to_delete taxon, url: remove_admin_product_taxon_url(@product, taxon), name: icon('delete.svg) + ' ' + Spree.t(:remove) %>
|
17
|
+
</td>
|
18
|
+
</tr>
|
19
|
+
<% end %>
|
20
|
+
<% if taxons.empty? %>
|
21
|
+
<tr data-hook="taxons_none"><td colspan="3"><%= Spree.t(:none) %>.</td></tr>
|
22
|
+
<% end %>
|
23
|
+
</tbody>
|
24
|
+
</table>
|
25
|
+
</div>
|
@@ -4,6 +4,10 @@
|
|
4
4
|
<%= @taxon.name %>
|
5
5
|
<% end %>
|
6
6
|
|
7
|
+
<% content_for :page_actions do %>
|
8
|
+
<%= taxon_preview_link(@taxon) %>
|
9
|
+
<% end %>
|
10
|
+
|
7
11
|
<%# Because otherwise the form would attempt to use to_param of @taxon %>
|
8
12
|
<% form_url = admin_taxonomy_taxon_path(@taxonomy.id, @taxon.id) %>
|
9
13
|
|
@@ -13,8 +17,8 @@
|
|
13
17
|
<%= render 'form', f: f %>
|
14
18
|
|
15
19
|
<div class="form-actions" data-hook="buttons">
|
16
|
-
<%= button Spree.t('actions.update'), 'save' %>
|
20
|
+
<%= button Spree.t('actions.update'), 'save.svg' %>
|
17
21
|
<span class="or"><%= Spree.t(:or) %></span>
|
18
|
-
<%= button_link_to Spree.t('actions.cancel'), edit_admin_taxonomy_url(@taxonomy), icon: "
|
22
|
+
<%= button_link_to Spree.t('actions.cancel'), edit_admin_taxonomy_url(@taxonomy), icon: "cancel.svg" %>
|
19
23
|
</div>
|
20
24
|
<% end %>
|