spree_backend 4.3.0 → 4.4.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +222 -0
- data/.codeclimate.yml +36 -0
- data/.editorconfig +22 -0
- data/.eslintignore +7 -0
- data/.eslintrc.cjs +29 -0
- data/.gem_release.yml +4 -0
- data/.github/CONTRIBUTING.md +1 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +47 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/ISSUE_TEMPLATE.md +39 -0
- data/.github/dependabot.yml +7 -0
- data/.github/workflows/spelling_lint.yml +34 -0
- data/.gitignore +63 -0
- data/.rubocop.yml +197 -0
- data/.solargraph.yml +20 -0
- data/.stylelintignore +4 -0
- data/.stylelintrc +6 -0
- data/CODE_OF_CONDUCT.md +22 -0
- data/Gemfile +59 -3
- data/README.md +123 -0
- data/SECURITY.md +1 -0
- data/app/assets/config/spree_backend_manifest.js +1 -1
- data/app/assets/images/backend-cloud-arrow-up.svg +4 -0
- data/app/assets/images/backend-eye-open.svg +1 -1
- data/app/assets/images/backend-file-earmark-font.svg +4 -0
- data/app/assets/images/backend-file-earmark-image.svg +4 -0
- data/app/assets/images/backend-file-earmark-music.svg +4 -0
- data/app/assets/images/backend-file-earmark-pdf.svg +4 -0
- data/app/assets/images/backend-file-earmark-play.svg +4 -0
- data/app/assets/images/backend-file-earmark-spreadsheet.svg +3 -0
- data/app/assets/images/backend-file-earmark-zip.svg +4 -0
- data/app/assets/images/backend-file-earmark.svg +3 -0
- data/app/assets/images/backend-hdd.svg +4 -0
- data/app/assets/images/backend-link.svg +4 -0
- data/app/assets/images/backend-view.svg +1 -1
- data/app/assets/javascripts/spree/backend/adjustments.js +5 -5
- data/app/assets/javascripts/spree/backend/admin.js +4 -6
- data/app/assets/javascripts/spree/backend/calculator.js +1 -1
- data/app/assets/javascripts/spree/backend/checkouts/edit.js +1 -1
- data/app/assets/javascripts/spree/backend/cms/links.es6 +1 -1
- data/app/assets/javascripts/spree/backend/cms/live_preview.es6 +1 -1
- data/app/assets/javascripts/spree/backend/cms/page.es6 +22 -40
- data/app/assets/javascripts/spree/backend/cms/section.es6 +1 -1
- data/app/assets/javascripts/spree/backend/gateway.js +1 -1
- data/app/assets/javascripts/spree/backend/general_settings.js +1 -1
- data/app/assets/javascripts/spree/backend/global/_index.js +3 -1
- data/app/assets/javascripts/spree/backend/global/alerts.es6 +1 -1
- data/app/assets/javascripts/spree/backend/global/animate_css.es6 +19 -0
- data/app/assets/javascripts/spree/backend/global/fetch_request_utility.es6 +114 -0
- data/app/assets/javascripts/spree/backend/global/flatpickr.es6 +2 -1
- data/app/assets/javascripts/spree/backend/global/info_alert.es6 +1 -1
- data/app/assets/javascripts/spree/backend/global/radio_panel_toggle.es6 +1 -1
- data/app/assets/javascripts/spree/backend/global/ransack.es6 +7 -5
- data/app/assets/javascripts/spree/backend/global/responsive_menus.es6 +1 -1
- data/app/assets/javascripts/spree/backend/global/select2_autocomplete.es6 +4 -4
- data/app/assets/javascripts/spree/backend/global/select2_populate.es6 +2 -2
- data/app/assets/javascripts/spree/backend/global/side_scroll_indication.es6 +2 -2
- data/app/assets/javascripts/spree/backend/global/sortable.es6 +1 -1
- data/app/assets/javascripts/spree/backend/global/tinymce.es6 +3 -2
- data/app/assets/javascripts/spree/backend/line_items.js +7 -9
- data/app/assets/javascripts/spree/backend/line_items_on_order_edit.js +23 -28
- data/app/assets/javascripts/spree/backend/menus/_index.es6 +0 -1
- data/app/assets/javascripts/spree/backend/menus/menu_item.es6 +1 -1
- data/app/assets/javascripts/spree/backend/multi_currency.js +2 -2
- data/app/assets/javascripts/spree/backend/option_type_autocomplete.js +1 -1
- data/app/assets/javascripts/spree/backend/orders/edit.js +1 -1
- data/app/assets/javascripts/spree/backend/payments/edit.js +32 -22
- data/app/assets/javascripts/spree/backend/payments/new.js +1 -1
- data/app/assets/javascripts/spree/backend/product_picker.js +16 -25
- data/app/assets/javascripts/spree/backend/progress.js +5 -3
- data/app/assets/javascripts/spree/backend/promotions.js +3 -1
- data/app/assets/javascripts/spree/backend/returns/expedited_exchanges_warning.js +1 -1
- data/app/assets/javascripts/spree/backend/returns/return_item_selection.js +1 -1
- data/app/assets/javascripts/spree/backend/shipments.js +80 -79
- data/app/assets/javascripts/spree/backend/spree-select2.js +1 -1
- data/app/assets/javascripts/spree/backend/states.js +1 -1
- data/app/assets/javascripts/spree/backend/stock_location.js +1 -1
- data/app/assets/javascripts/spree/backend/stock_management.js +1 -1
- data/app/assets/javascripts/spree/backend/stock_movement.js +58 -13
- data/app/assets/javascripts/spree/backend/stock_transfer.js +62 -32
- data/app/assets/javascripts/spree/backend/taxon_autocomplete.js +9 -8
- data/app/assets/javascripts/spree/backend/taxons.js +17 -14
- data/app/assets/javascripts/spree/backend/user_picker.js +1 -1
- data/app/assets/javascripts/spree/backend/users/edit.js +1 -1
- data/app/assets/javascripts/spree/backend/variant_autocomplete.js +19 -11
- data/app/assets/javascripts/spree/backend/variant_management.js +1 -1
- data/app/assets/javascripts/spree/backend/zone.js +1 -1
- data/app/assets/javascripts/spree/backend.js +13 -33
- data/app/assets/javascripts/spree.js +2 -9
- data/app/assets/stylesheets/spree/backend/components/_main.scss +8 -0
- data/app/assets/stylesheets/spree/backend/plugins/_nav_x.scss +1 -1
- data/app/assets/stylesheets/spree/backend/plugins/_select2_custom.scss +1 -1
- data/app/assets/stylesheets/spree/backend/shared/_forms.scss +1 -1
- data/app/assets/stylesheets/spree/backend/shared/_sortable_tree.scss +62 -0
- data/app/assets/stylesheets/spree/backend/spree_admin.css.scss +3 -0
- data/app/assets/stylesheets/spree/backend/views/_digitals.scss +33 -0
- data/app/assets/stylesheets/spree/backend/views/{prototypes.scss → _prototypes.scss} +0 -0
- data/app/assets/stylesheets/spree/backend/views/_taxonomies.scss +3 -0
- data/app/controllers/spree/admin/base_controller.rb +4 -13
- data/app/controllers/spree/admin/digitals_controller.rb +33 -0
- data/app/controllers/spree/admin/general_settings_controller.rb +0 -5
- data/app/controllers/spree/admin/images_controller.rb +1 -1
- data/app/controllers/spree/admin/oauth_applications_controller.rb +17 -0
- data/app/controllers/spree/admin/orders/customer_details_controller.rb +2 -2
- data/app/controllers/spree/admin/orders_controller.rb +10 -2
- data/app/controllers/spree/admin/payment_methods_controller.rb +2 -2
- data/app/controllers/spree/admin/payments_controller.rb +1 -1
- data/app/controllers/spree/admin/products_controller.rb +4 -2
- data/app/controllers/spree/admin/promotions_controller.rb +1 -1
- data/app/controllers/spree/admin/properties_controller.rb +1 -1
- data/app/controllers/spree/admin/resource_controller.rb +9 -4
- data/app/controllers/spree/admin/return_index_controller.rb +1 -1
- data/app/controllers/spree/admin/stock_transfers_controller.rb +2 -2
- data/app/controllers/spree/admin/store_credits_controller.rb +2 -2
- data/app/controllers/spree/admin/stores_controller.rb +2 -2
- data/app/controllers/spree/admin/taxons_controller.rb +23 -38
- data/app/controllers/spree/admin/users_controller.rb +6 -19
- data/app/controllers/spree/admin/variants_controller.rb +1 -2
- data/app/controllers/spree/admin/webhooks_subscribers_controller.rb +48 -0
- data/app/helpers/spree/admin/base_helper.rb +27 -9
- data/app/helpers/spree/admin/digital_helper.rb +28 -0
- data/app/helpers/spree/admin/menu_helper.rb +0 -21
- data/app/helpers/spree/admin/navigation_helper.rb +19 -9
- data/app/helpers/spree/admin/sortable_tree_helper.rb +31 -0
- data/app/helpers/spree/admin/stores_helper.rb +1 -1
- data/app/helpers/spree/admin/webhooks_subscribers_helper.rb +31 -0
- data/app/javascript/spree/dashboard/controllers/clipboard_controller.js +12 -0
- data/app/javascript/spree/dashboard/controllers/password_toggle_controller.js +14 -0
- data/app/javascript/spree/dashboard/controllers/sortable_tree_controller.js +55 -0
- data/app/javascript/spree/dashboard/controllers/spree_controller.js +25 -0
- data/app/javascript/spree/dashboard/controllers/upload_button_controller.js +13 -0
- data/app/javascript/spree/dashboard/controllers/webhooks_subscriber_events_controller.js +19 -0
- data/app/javascript/spree/dashboard/index.js +49 -0
- data/app/{assets/javascripts/spree/backend/global/bootstrap.es6 → javascript/spree/dashboard/utilities/bootstrap.js} +6 -2
- data/app/javascript/spree/dashboard/utilities/request_utility.js +54 -0
- data/app/models/spree/backend_configuration.rb +11 -0
- data/app/views/spree/admin/adjustments/_form.html.erb +2 -2
- data/app/views/spree/admin/adjustments/index.html.erb +1 -0
- data/app/views/spree/admin/cms_pages/_form.html.erb +8 -8
- data/app/views/spree/admin/cms_pages/edit.html.erb +1 -6
- data/app/views/spree/admin/cms_sections/_form.html.erb +2 -2
- data/app/views/spree/admin/cms_sections/types/_featured_article.html.erb +6 -6
- data/app/views/spree/admin/cms_sections/types/_hero_image.html.erb +6 -6
- data/app/views/spree/admin/cms_sections/types/_image_gallery.html.erb +12 -12
- data/app/views/spree/admin/cms_sections/types/_rich_text_content.html.erb +1 -1
- data/app/views/spree/admin/cms_sections/types/_side_by_side_images.html.erb +12 -12
- data/app/views/spree/admin/countries/_form.html.erb +4 -4
- data/app/views/spree/admin/customer_returns/new.html.erb +1 -1
- data/app/views/spree/admin/digitals/_form.html.erb +35 -0
- data/app/views/spree/admin/digitals/index.html.erb +25 -0
- data/app/views/spree/admin/general_settings/edit.html.erb +1 -22
- data/app/views/spree/admin/menu_items/_form.html.erb +6 -6
- data/app/views/spree/admin/menus/_form.html.erb +3 -3
- data/app/views/spree/admin/menus/edit.html.erb +18 -18
- data/app/views/spree/admin/oauth_applications/_form.html.erb +22 -0
- data/app/views/spree/admin/oauth_applications/create.turbo_stream.erb +38 -0
- data/app/views/spree/admin/oauth_applications/edit.html.erb +13 -0
- data/app/views/spree/admin/oauth_applications/index.html.erb +51 -0
- data/app/views/spree/admin/oauth_applications/new.html.erb +15 -0
- data/app/views/spree/admin/option_types/_form.html.erb +3 -3
- data/app/views/spree/admin/option_types/_option_value_fields.html.erb +2 -2
- data/app/views/spree/admin/orders/_channel_form.html.erb +1 -1
- data/app/views/spree/admin/orders/_form.html.erb +1 -0
- data/app/views/spree/admin/orders/_line_items_edit_form.html.erb +1 -0
- data/app/views/spree/admin/orders/_order_actions.html.erb +6 -0
- data/app/views/spree/admin/orders/_search.html.erb +151 -0
- data/app/views/spree/admin/orders/index.html.erb +2 -151
- data/app/views/spree/admin/payment_methods/_form.html.erb +2 -2
- data/app/views/spree/admin/payments/_list.html.erb +1 -1
- data/app/views/spree/admin/products/_form.html.erb +19 -19
- data/app/views/spree/admin/products/index.html.erb +2 -0
- data/app/views/spree/admin/products/new.html.erb +6 -6
- data/app/views/spree/admin/promotion_actions/create.js.erb +1 -1
- data/app/views/spree/admin/promotion_categories/_form.html.erb +2 -2
- data/app/views/spree/admin/promotions/_form.html.erb +5 -5
- data/app/views/spree/admin/properties/_form.html.erb +3 -3
- data/app/views/spree/admin/prototypes/_form.html.erb +4 -4
- data/app/views/spree/admin/refunds/new.html.erb +2 -2
- data/app/views/spree/admin/reimbursement_types/_form.html.erb +2 -2
- data/app/views/spree/admin/return_authorizations/_form.html.erb +3 -3
- data/app/views/spree/admin/roles/_form.html.erb +1 -1
- data/app/views/spree/admin/shared/_account_nav.html.erb +1 -1
- data/app/views/spree/admin/shared/_address_form.html.erb +4 -4
- data/app/views/spree/admin/shared/_head.html.erb +4 -8
- data/app/views/spree/admin/shared/_main_menu.html.erb +12 -0
- data/app/views/spree/admin/shared/_new_resource_links.html.erb +1 -1
- data/app/views/spree/admin/shared/_product_tabs.html.erb +8 -0
- data/app/views/spree/admin/shared/_version.html.erb +1 -1
- data/app/views/spree/admin/shared/cms/_spree_product.html.erb +2 -2
- data/app/views/spree/admin/shared/cms/_spree_taxon.html.erb +2 -2
- data/app/views/spree/admin/shared/linkables/_spree_cms_page.erb +2 -2
- data/app/views/spree/admin/shared/linkables/_spree_product.html.erb +2 -2
- data/app/views/spree/admin/shared/linkables/_spree_taxon.html.erb +2 -2
- data/app/views/spree/admin/shared/linkables/_url.html.erb +1 -1
- data/app/views/spree/admin/shared/named_types/_form.html.erb +1 -1
- data/app/views/spree/admin/{menus/nested_menu_items/_item_bar.html.erb → shared/sortable_tree/_menu.html.erb} +10 -7
- data/app/views/spree/admin/shared/sortable_tree/_taxonomy.html.erb +34 -0
- data/app/views/spree/admin/shared/sub_menu/_apps.html.erb +3 -0
- data/app/views/spree/admin/shared/sub_menu/_integrations.html.erb +3 -0
- data/app/views/spree/admin/shipping_categories/_form.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/_form.html.erb +8 -8
- data/app/views/spree/admin/states/_form.html.erb +2 -2
- data/app/views/spree/admin/stock_locations/_form.html.erb +2 -2
- data/app/views/spree/admin/stock_movements/_form.html.erb +3 -3
- data/app/views/spree/admin/store_credit_categories/_form.html.erb +1 -1
- data/app/views/spree/admin/store_credits/_form.html.erb +4 -4
- data/app/views/spree/admin/stores/_form.html.erb +280 -227
- data/app/views/spree/admin/tax_categories/_form.html.erb +4 -4
- data/app/views/spree/admin/tax_rates/_form.html.erb +4 -3
- data/app/views/spree/admin/taxonomies/_form.html.erb +2 -2
- data/app/views/spree/admin/taxonomies/edit.html.erb +34 -29
- data/app/views/spree/admin/taxons/_form.html.erb +101 -57
- data/app/views/spree/admin/taxons/edit.html.erb +6 -3
- data/app/views/spree/admin/taxons/index.html.erb +1 -1
- data/app/views/spree/admin/taxons/new.html.erb +16 -0
- data/app/views/spree/admin/users/_form.html.erb +3 -3
- data/app/views/spree/admin/users/edit.html.erb +0 -40
- data/app/views/spree/admin/variants/_autocomplete.js.erb +5 -5
- data/app/views/spree/admin/variants/_autocomplete_line_items_stock.js.erb +2 -2
- data/app/views/spree/admin/variants/_autocomplete_stock.js.erb +6 -6
- data/app/views/spree/admin/variants/_split.js.erb +1 -1
- data/app/views/spree/admin/variants/index.html.erb +4 -1
- data/app/views/spree/admin/webhooks_subscribers/_form.html.erb +101 -0
- data/app/views/spree/admin/webhooks_subscribers/edit.html.erb +13 -0
- data/app/views/spree/admin/webhooks_subscribers/index.html.erb +47 -0
- data/app/views/spree/admin/webhooks_subscribers/new.html.erb +13 -0
- data/app/views/spree/admin/webhooks_subscribers/show.html.erb +59 -0
- data/app/views/spree/admin/zones/_country_members.html.erb +1 -1
- data/app/views/spree/admin/zones/_form.html.erb +2 -2
- data/app/views/spree/admin/zones/_state_members.html.erb +1 -1
- data/app/views/spree/layouts/admin.html.erb +1 -11
- data/codespell.txt +8 -0
- data/config/locales/en.yml +273 -0
- data/config/routes.rb +6 -2
- data/lib/generators/spree/backend/install/install_generator.rb +4 -2
- data/lib/generators/spree/backend/install/templates/app/javascript/spree-dashboard.js +7 -0
- data/lib/spree/backend/engine.rb +2 -1
- data/lib/spree/backend/testing_support/capybara_utils.rb +53 -0
- data/lib/spree/backend/testing_support/flash.rb +38 -0
- data/lib/spree/backend/testing_support/flatpickr_capybara.rb +126 -0
- data/lib/spree/backend/version.rb +9 -0
- data/lib/spree/backend.rb +2 -1
- data/lib/spree_backend.rb +17 -0
- data/license.md +13 -0
- data/package.json +46 -0
- data/rollup.config.js +41 -0
- data/spree_backend.gemspec +17 -16
- data/vendor/assets/javascripts/purify.js +1 -1
- data/vendor/assets/stylesheets/animate.css +2 -4
- data/yarn.lock +959 -0
- metadata +120 -38
- data/app/assets/javascripts/spree/backend/menus/menu.es6 +0 -57
- data/app/assets/javascripts/spree/backend/taxon_permalink_preview.js +0 -11
- data/app/assets/javascripts/spree/backend/taxon_tree_menu.js +0 -35
- data/app/assets/javascripts/spree/backend/taxonomy.js +0 -178
- data/app/views/spree/admin/taxonomies/_js_head.html.erb +0 -7
- data/vendor/assets/javascripts/jquery.jstree/jquery.jstree.js +0 -4564
- data/vendor/assets/javascripts/js.cookie.js +0 -163
- data/vendor/assets/javascripts/modernizr.js +0 -3
- data/vendor/assets/stylesheets/jquery.jstree/themes/spree/style.scss +0 -230
- data/vendor/assets/stylesheets/jquery.jstree/themes/spree/throbber.gif +0 -0
@@ -1,21 +1,21 @@
|
|
1
1
|
<div data-hook="admin_tax_category_form_fields">
|
2
|
-
<%= f.field_container :name
|
2
|
+
<%= f.field_container :name do %>
|
3
3
|
<%= f.label :name, Spree.t(:name) %>
|
4
4
|
<%= f.text_field :name, class: 'form-control' %>
|
5
5
|
<%= f.error_message_on :name %>
|
6
6
|
<% end %>
|
7
7
|
|
8
|
-
<%= f.field_container :tax_code
|
8
|
+
<%= f.field_container :tax_code do %>
|
9
9
|
<%= f.label :tax_code, Spree.t(:tax_code) %>
|
10
10
|
<%= f.text_field :tax_code, class: 'form-control' %>
|
11
11
|
<% end %>
|
12
12
|
|
13
|
-
<%= f.field_container :description
|
13
|
+
<%= f.field_container :description do %>
|
14
14
|
<%= f.label :description, Spree.t(:description) %><br>
|
15
15
|
<%= f.text_field :description, class: 'form-control' %>
|
16
16
|
<% end %>
|
17
17
|
|
18
|
-
<%= f.field_container :is_default, class: ['
|
18
|
+
<%= f.field_container :is_default, class: ['checkbox'] do %>
|
19
19
|
<%= f.label :is_default do %>
|
20
20
|
<%= f.check_box :is_default %>
|
21
21
|
<%= Spree.t(:default) %>
|
@@ -9,12 +9,13 @@
|
|
9
9
|
<div class="card-body">
|
10
10
|
<div class="row">
|
11
11
|
<div class="col-12 col-lg-6">
|
12
|
-
|
12
|
+
<%= f.field_container :name do %>
|
13
13
|
<%= f.label :name, Spree.t(:name) %>
|
14
14
|
<%= f.text_field :name, class: 'form-control' %>
|
15
|
-
|
15
|
+
<%= f.error_message_on :name %>
|
16
|
+
<% end %>
|
16
17
|
<div data-hook="rate" class="form-group">
|
17
|
-
<%= f.field_container :amount
|
18
|
+
<%= f.field_container :amount do %>
|
18
19
|
<%= f.label :amount, Spree.t(:rate) %>
|
19
20
|
<%= f.text_field :amount, class: 'form-control' %>
|
20
21
|
<%= f.error_message_on :amount %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div data-hook="admin_inside_taxonomy_form" class="form-group">
|
2
|
-
<%= f.field_container :name
|
2
|
+
<%= f.field_container :name do %>
|
3
3
|
<%= f.label :name, Spree.t(:name) %> <span class="required">*</span>
|
4
|
-
<%= f.text_field :name, class: 'form-control' %>
|
4
|
+
<%= f.text_field :name, class: 'form-control', required: true %>
|
5
5
|
<%= f.error_message_on :name, class: 'error-message' %>
|
6
6
|
<% end %>
|
7
7
|
</div>
|
@@ -1,37 +1,42 @@
|
|
1
|
-
<%= render partial: 'js_head' %>
|
2
|
-
|
3
1
|
<% content_for :page_title do %>
|
4
|
-
<%= link_to Spree.t(
|
5
|
-
<%= @taxonomy.name %>
|
2
|
+
<%= link_to Spree.t('admin.taxonomies.taxonomies'), spree.admin_taxonomies_path %> / <%= @taxonomy.name %>
|
6
3
|
<% end %>
|
7
4
|
|
8
|
-
<div id="
|
5
|
+
<div id="sortableTreeArea">
|
6
|
+
<div class="row">
|
7
|
+
<div class="col-12">
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
<div id="taxonomy_tree" class="tree">
|
21
|
-
<div class="alert alert-warning">
|
22
|
-
<%= Spree.t(:loading_tree) %>
|
9
|
+
<div class="card mb-3">
|
10
|
+
<div class="card-header">
|
11
|
+
<div class="row pb-0">
|
12
|
+
<div class="col d-flex my-1">
|
13
|
+
<%= button_link_to Spree.t('admin.taxonomies.edit_root_taxonomy', name: @taxonomy.root.name ), spree.edit_admin_taxonomy_taxon_path(@taxonomy, @taxonomy.root.id), icon: 'edit.svg', class: 'no-wrap btn-outline-secondary align-self-center' %>
|
14
|
+
</div>
|
15
|
+
<div class="col d-flex my-1 justify-content-end">
|
16
|
+
<%= button_link_to Spree.t('admin.taxonomies.add_new_taxon'), spree.new_admin_taxonomy_taxon_path(@taxonomy.id), icon: 'add.svg', class: 'no-wrap btn btn-success align-self-center' %>
|
17
|
+
</div>
|
18
|
+
</div>
|
23
19
|
</div>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
20
|
|
27
|
-
|
28
|
-
|
29
|
-
|
21
|
+
<% if @taxonomy.root.present? %>
|
22
|
+
<div class="card-body p-0 bg-light" data-controller="sortable-tree" data-sortable-tree-handle-value=".move-handle">
|
23
|
+
<div data-sortable-tree-parent-id-value="<%= @taxonomy.root.id %>">
|
24
|
+
|
25
|
+
<% if @taxonomy.root.children.present? %>
|
26
|
+
<% @taxonomy.root.children.each do |root_children| %>
|
27
|
+
<%= build_sortable_tree(@taxonomy, root_children) %>
|
28
|
+
<% end %>
|
29
|
+
<% else %>
|
30
|
+
<div class="alert alert-info no-objects-found m-5">
|
31
|
+
<%= raw Spree.t('admin.taxonomies.no_taxons', taxonomy: @taxonomy.root.name ) %>
|
32
|
+
</div>
|
33
|
+
<% end %>
|
34
|
+
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
30
39
|
|
31
|
-
<div class="form-actions">
|
32
|
-
<%= button Spree.t('actions.update'), 'save.svg', 'submit', { class: 'btn-success' } %>
|
33
|
-
<span class="or"><%= Spree.t(:or) %></span>
|
34
|
-
<%= button_link_to Spree.t('actions.cancel'), admin_taxonomies_path, icon: 'cancel.svg' %>
|
35
40
|
</div>
|
36
|
-
</
|
37
|
-
|
41
|
+
</div>
|
42
|
+
</div>
|
@@ -1,59 +1,103 @@
|
|
1
1
|
<div data-hook="admin_inside_taxon_form">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
</div>
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
2
|
+
<div class="row">
|
3
|
+
<div class="col-12 col-md-8">
|
4
|
+
<%= f.field_container :name do %>
|
5
|
+
<%= f.label :name, raw(Spree.t(:name) + required_span_tag) %>
|
6
|
+
<%= text_field :taxon, :name, class: 'form-control', required: true %>
|
7
|
+
<%= f.error_message_on :name, class: 'error-message' %>
|
8
|
+
<% end %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="col-12 col-md-4">
|
12
|
+
<%= f.field_container :hide_from_nav, class: ['custom-control', 'custom-checkbox', 'my-4'] do %>
|
13
|
+
<%= f.check_box :hide_from_nav, class: 'custom-control-input' %>
|
14
|
+
<%= f.label :hide_from_nav, Spree.t(:hide_from_subcategories_nav), class: 'custom-control-label' %>
|
15
|
+
<%= f.error_message_on :hide_from_nav %>
|
16
|
+
<% end %>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="col-12 col-md-8">
|
20
|
+
<% unless @taxon.new_record? %>
|
21
|
+
<%= f.field_container :permalink do %>
|
22
|
+
<%= label_tag :permalink_part, raw(Spree.t(:permalink) + required_span_tag) %>
|
23
|
+
<div class="input-group mb-3">
|
24
|
+
<div class="input-group-prepend">
|
25
|
+
<span class="input-group-text">
|
26
|
+
<%= [Spree::Config[:storefront_taxons_path] , @parent_permalink].join('/') %>
|
27
|
+
</span>
|
28
|
+
</div>
|
29
|
+
<%= text_field_tag :permalink_part, @permalink_part, class: 'form-control', required: true %>
|
30
|
+
</div>
|
31
|
+
<% end %>
|
32
|
+
<% end %>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="col-12 col-md-4">
|
36
|
+
<% if @taxon.new_record? %>
|
37
|
+
<% disabled = false %>
|
38
|
+
<% else %>
|
39
|
+
<% disabled = @taxon.root? %>
|
40
|
+
<% end %>
|
41
|
+
<%= f.field_container :parent_id do %>
|
42
|
+
<%= f.label :parent_id, Spree.t('admin.navigation.nested_under') %>
|
43
|
+
<%= f.select :parent_id, nested_set_options(@taxonomy.taxons, @taxon) {|i| "#{'-' * i.level} #{i.name}" }, { include_blank: false }, { class: 'select2', disabled: disabled } %>
|
44
|
+
<%= f.error_message_on :parent_id %>
|
45
|
+
<small class="form-text text-muted">
|
46
|
+
<%= Spree.t('admin.taxon.nested_under_info') %>
|
47
|
+
</small>
|
48
|
+
<% end %>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
<% unless @taxon.new_record? %>
|
52
|
+
<div class="row">
|
53
|
+
<div class="col-12">
|
54
|
+
<hr>
|
55
|
+
</div>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<div class="row">
|
59
|
+
<div class="col-12 col-md-8">
|
60
|
+
<%= f.field_container :description do %>
|
61
|
+
<%= f.label :description, Spree.t(:description) %>
|
62
|
+
<%= f.text_area :description, class: "form-control #{'spree-rte' if taxon_wysiwyg_editor_enabled? }", rows: 14 %>
|
63
|
+
<% end %>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<div class="col-12 col-md-4">
|
67
|
+
<%= f.field_container :icon do %>
|
68
|
+
<%= f.label :icon, Spree.t(:header_banner), class: 'mb-3' %>
|
69
|
+
<%= image_tag(main_app.url_for(@taxon.icon.try(:attachment)), class: 'w-100') if @taxon.icon %>
|
70
|
+
<%= f.file_field :icon, class: 'mt-3' %>
|
71
|
+
<% if @taxon.icon.present? %>
|
72
|
+
<%= link_to Spree.t(:remove_image), remove_icon_admin_taxonomy_taxon_url(@taxonomy.id, @taxon.id), method: :delete %>
|
73
|
+
<% end %>
|
74
|
+
<% end %>
|
75
|
+
</div>
|
76
|
+
</div>
|
77
|
+
|
78
|
+
<div class="row">
|
79
|
+
<div class="col-12">
|
80
|
+
<hr>
|
81
|
+
</div>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
<div class="row">
|
85
|
+
<div class="col-12">
|
86
|
+
<%= f.field_container :meta_title do %>
|
87
|
+
<%= f.label :meta_title, Spree.t(:meta_title) %>
|
88
|
+
<%= f.text_field :meta_title, class: 'form-control', rows: 6 %>
|
89
|
+
<% end %>
|
90
|
+
|
91
|
+
<%= f.field_container :meta_description do %>
|
92
|
+
<%= f.label :meta_description, Spree.t(:meta_description) %>
|
93
|
+
<%= f.text_area :meta_description, class: 'form-control', rows: 6 %>
|
94
|
+
<% end %>
|
95
|
+
|
96
|
+
<%= f.field_container :meta_keywords do %>
|
97
|
+
<%= f.label :meta_keywords, Spree.t(:meta_keywords) %>
|
98
|
+
<%= f.text_field :meta_keywords, class: 'form-control', rows: 6 %>
|
99
|
+
<% end %>
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
<% end %>
|
59
103
|
</div>
|
@@ -1,11 +1,14 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
2
|
<%= link_to Spree.t(:taxonomies), spree.admin_taxonomies_url %> /
|
3
|
-
|
4
|
-
<%= @
|
3
|
+
|
4
|
+
<%= link_to @taxonomy.root.name, spree.edit_admin_taxonomy_url(@taxonomy) %>
|
5
|
+
<% unless @taxon.root? %>
|
6
|
+
/ <%= @taxon.name %>
|
7
|
+
<% end %>
|
5
8
|
<% end %>
|
6
9
|
|
7
10
|
<% content_for :page_actions do %>
|
8
|
-
<%=
|
11
|
+
<%= external_page_preview_link(@taxon) %>
|
9
12
|
<% end %>
|
10
13
|
|
11
14
|
<%# Because otherwise the form would attempt to use to_param of @taxon %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<% content_for :page_title do %>
|
2
|
+
<%= link_to Spree.t(:taxonomies), spree.admin_taxonomies_url %> /
|
3
|
+
<%= link_to @taxonomy.root.name, spree.edit_admin_taxonomy_url(@taxonomy) %> / New
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @taxon } %>
|
7
|
+
|
8
|
+
<%= form_for [:admin, @taxonomy, @taxon] do |f| %>
|
9
|
+
<%= render 'form', f: f %>
|
10
|
+
|
11
|
+
<div class="form-actions" data-hook="buttons">
|
12
|
+
<%= button Spree.t('actions.create'), 'save.svg' %>
|
13
|
+
<span class="or"><%= Spree.t(:or) %></span>
|
14
|
+
<%= button_link_to Spree.t('actions.cancel'), edit_admin_taxonomy_url(@taxonomy), icon: "cancel.svg" %>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div data-hook="admin_user_form_fields" class="row">
|
2
2
|
<div class="col-12 col-md-6">
|
3
|
-
<%= f.field_container :email
|
3
|
+
<%= f.field_container :email do %>
|
4
4
|
<%= f.label :email, Spree.t(:email) %>
|
5
5
|
<%= f.email_field :email, class: 'form-control' %>
|
6
6
|
<%= f.error_message_on :email %>
|
@@ -20,13 +20,13 @@
|
|
20
20
|
</div>
|
21
21
|
|
22
22
|
<div data-hook="admin_user_form_password_fields" class="col-12 col-md-6">
|
23
|
-
<%= f.field_container :password
|
23
|
+
<%= f.field_container :password do %>
|
24
24
|
<%= f.label :password, Spree.t(:password) %>
|
25
25
|
<%= f.password_field :password, class: 'form-control' %>
|
26
26
|
<%= f.error_message_on :password %>
|
27
27
|
<% end %>
|
28
28
|
|
29
|
-
<%= f.field_container :password_confirmation
|
29
|
+
<%= f.field_container :password_confirmation do %>
|
30
30
|
<%= f.label :password_confirmation, Spree.t(:confirm_password) %>
|
31
31
|
<%= f.password_field :password_confirmation, class: 'form-control' %>
|
32
32
|
<%= f.error_message_on :password_confirmation %>
|
@@ -29,44 +29,4 @@
|
|
29
29
|
</div>
|
30
30
|
</div>
|
31
31
|
|
32
|
-
<div data-hook="admin_user_api_key" id="admin_user_edit_api_key" class="card mb-3">
|
33
|
-
<div class="card-header">
|
34
|
-
<h1 class="card-title mb-0 h5">
|
35
|
-
<%= Spree.t('access', scope: 'api') %>
|
36
|
-
</h1>
|
37
|
-
</div>
|
38
|
-
|
39
|
-
<div class="card-body">
|
40
|
-
<% if @user.spree_api_key.present? %>
|
41
|
-
<div class="form-group">
|
42
|
-
<div id="current-api-key">
|
43
|
-
<label><%= Spree.t('key', scope: 'api') %>: </label>
|
44
|
-
<strong><%= @user.spree_api_key %></strong>
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
<div class="form-actions">
|
48
|
-
<%= form_tag spree.clear_api_key_admin_user_path(@user), method: :put do %>
|
49
|
-
<%= button Spree.t('clear_key', scope: 'api'), 'delete.svg', 'submit', class: "btn-danger" %>
|
50
|
-
<% end %>
|
51
|
-
|
52
|
-
<span class="or"><%= Spree.t(:or) %></span>
|
53
|
-
|
54
|
-
<%= form_tag spree.generate_api_key_admin_user_path(@user), method: :put do %>
|
55
|
-
<%= button Spree.t('regenerate_key', scope: 'api'), 'recycle.svg' %>
|
56
|
-
<% end %>
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<% else %>
|
60
|
-
|
61
|
-
<div class="alert alert-warning"><%= Spree.t('no_key', scope: 'api') %></div>
|
62
|
-
|
63
|
-
<div class="form-actions">
|
64
|
-
<%= form_tag spree.generate_api_key_admin_user_path(@user), method: :put do %>
|
65
|
-
<%= button Spree.t('generate_key', scope: 'api'), 'key' %>
|
66
|
-
<% end %>
|
67
|
-
</div>
|
68
|
-
<% end %>
|
69
|
-
</div>
|
70
|
-
</div>
|
71
|
-
|
72
32
|
<%= render 'spree/admin/users/lifetime_stats' %>
|
@@ -14,12 +14,12 @@
|
|
14
14
|
|
15
15
|
<div class='variant-details media-body'>
|
16
16
|
<h5 class="variant-name media-heading h6 mb-0">{{variant.name}}</h5>
|
17
|
-
{{#if variant.
|
18
|
-
{{
|
19
|
-
|
20
|
-
|
17
|
+
{{#if variant.options_text}}
|
18
|
+
{{variant.options_text}}
|
19
|
+
{{/if}}
|
20
|
+
{{#if variant.sku}}
|
21
|
+
<strong><%= Spree.t(:sku) %>:</strong> {{variant.sku}}
|
21
22
|
{{/if}}
|
22
|
-
<strong><%= Spree.t(:sku) %>:</strong> {{variant.sku}}
|
23
23
|
</div>
|
24
24
|
</div>
|
25
25
|
</script>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<tr>
|
14
14
|
<td>{{variant.name}}</td>
|
15
15
|
{{#if variant.track_inventory}}
|
16
|
-
{{#if variant.
|
16
|
+
{{#if variant.purchasable}}
|
17
17
|
<td class="text-center">
|
18
18
|
{{variant.total_on_hand}}
|
19
19
|
</td>
|
@@ -29,7 +29,7 @@
|
|
29
29
|
</span>
|
30
30
|
</td>
|
31
31
|
{{else}}
|
32
|
-
{{#if variant.
|
32
|
+
{{#if variant.backorderable}}
|
33
33
|
<td class="text-center">
|
34
34
|
{{variant.total_on_hand}} (<%= Spree.t(:backorders_allowed) %>)
|
35
35
|
</td>
|
@@ -11,31 +11,31 @@
|
|
11
11
|
<tbody>
|
12
12
|
{{#each variant.stock_items}}
|
13
13
|
<tr>
|
14
|
-
<td>{{this.
|
14
|
+
<td>{{this.stock_location.name}}</td>
|
15
15
|
{{#unless ../variant.track_inventory}}
|
16
16
|
<td><%= Spree.t(:doesnt_track_inventory) %></td>
|
17
17
|
<td>
|
18
|
-
<input class="quantity form-control input-sm" id="stock_item_quantity" data-stock-location-id="{{this.
|
18
|
+
<input class="quantity form-control input-sm" id="stock_item_quantity" data-stock-location-id="{{this.stock_location.id}}" type="number" min="1" value="1">
|
19
19
|
</td>
|
20
20
|
<td class="actions">
|
21
21
|
<span class="d-flex justify-content-center">
|
22
|
-
<button class="btn btn-sm btn-success add_variant with-tip" data-stock-location-id="{{this.
|
22
|
+
<button class="btn btn-sm btn-success add_variant with-tip" data-stock-location-id="{{this.stock_location.id}}" title="<%= Spree.t(:add) %>" data-action="add">
|
23
23
|
<%= svg_icon name: "add", width: '16', height: '16' %>
|
24
24
|
</button>
|
25
25
|
</span>
|
26
26
|
</td>
|
27
27
|
{{else}}
|
28
|
-
{{#if this.
|
28
|
+
{{#if this.is_available}}
|
29
29
|
<td>
|
30
30
|
{{this.count_on_hand}}
|
31
31
|
{{#if this.backorderable}} (<%= Spree.t(:backorders_allowed) %>) {{/if}}
|
32
32
|
</td>
|
33
33
|
<td>
|
34
|
-
<input class="quantity form-control input-sm" id="stock_item_quantity" data-stock-location-id="{{this.
|
34
|
+
<input class="quantity form-control input-sm" id="stock_item_quantity" data-stock-location-id="{{this.stock_location.id}}" type="number" min="1" value="1">
|
35
35
|
</td>
|
36
36
|
<td class="actions">
|
37
37
|
<span class="d-flex justify-content-center">
|
38
|
-
<button class="btn btn-sm btn-success add_variant with-tip" data-stock-location-id="{{this.
|
38
|
+
<button class="btn btn-sm btn-success add_variant with-tip" data-stock-location-id="{{this.stock_location.id}}" title="<%= Spree.t(:add) %>" data-action="add">
|
39
39
|
<%= svg_icon name: "add", width: '16', height: '16' %>
|
40
40
|
</button>
|
41
41
|
</span>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
</optgroup>
|
14
14
|
<optgroup label="<%=Spree.t('new_shipment_at_location')%>">
|
15
15
|
{{#each variant.stock_items}}
|
16
|
-
<option data-new-shipment='true' value='{{this.
|
16
|
+
<option data-new-shipment='true' value='{{this.stock_location.id}}'>{{this.stock_location.name}} ({{this.count_on_hand}} on hand)</option>
|
17
17
|
{{/each}}
|
18
18
|
</optgroup>
|
19
19
|
</select>
|
@@ -8,7 +8,9 @@
|
|
8
8
|
<table class="table sortable" data-sortable-link="<%= update_positions_admin_product_variants_path(@product) %>">
|
9
9
|
<thead data-hook="variants_header">
|
10
10
|
<tr>
|
11
|
-
<th
|
11
|
+
<th></th>
|
12
|
+
<th><%= Spree.t('admin.digitals.digital') %></th>
|
13
|
+
<th><%= Spree.t(:options) %></th>
|
12
14
|
<th><%= Spree.t(:price) %></th>
|
13
15
|
<th><%= sort_link @search, :sku, Spree.t(:sku) %></th>
|
14
16
|
<th class="actions"></th>
|
@@ -22,6 +24,7 @@
|
|
22
24
|
<%= svg_icon name: "sort.svg", width: '18', height: '18' %>
|
23
25
|
<% end %>
|
24
26
|
</td>
|
27
|
+
<td><%= active_badge(variant.digital?) %></td>
|
25
28
|
<td><%= variant.options_text %></td>
|
26
29
|
<td><%= display_price(variant) %></td>
|
27
30
|
<td><%= variant.sku %></td>
|
@@ -0,0 +1,101 @@
|
|
1
|
+
<div data-hook="admin_webhooks_subscriber_form_fields">
|
2
|
+
<%= f.field_container :url, class: ['form-group'] do %>
|
3
|
+
<%= f.label :url, Spree.t('admin.url') %>
|
4
|
+
<%= f.text_field :url, class: 'form-control', placeholder: 'https://example.com/endpoint' %>
|
5
|
+
<%= f.error_message_on :url %>
|
6
|
+
<% end %>
|
7
|
+
<div class="form-group">
|
8
|
+
<div class="custom-control custom-switch">
|
9
|
+
<%= f.check_box :active, class: 'custom-control-input' %>
|
10
|
+
<%= f.label :active, class: 'custom-control-label' %>
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
Events
|
15
|
+
|
16
|
+
<div data-controller="webhooks_subscriber_events">
|
17
|
+
<%= f.field_container :subscriptions, class: ['form-group'] do %>
|
18
|
+
<div>
|
19
|
+
<div class="radio my-2">
|
20
|
+
<%= radio_button_tag :subscribe_to_all_events, true,
|
21
|
+
subscribe_to_all_events?,
|
22
|
+
{
|
23
|
+
'data-action' => 'webhooks_subscriber_events#hideCheckboxes',
|
24
|
+
'data-webhooks_subscriber_events-target' => 'subscribeToAll',
|
25
|
+
class: 'events' } %>
|
26
|
+
<%= label_tag :subscribe_to_all_events_true, Spree.t('admin.webhooks_subscribers.subscribe_to_all_events') %>
|
27
|
+
</div>
|
28
|
+
<div class="radio my-2">
|
29
|
+
<%= radio_button_tag :subscribe_to_all_events, false,
|
30
|
+
!subscribe_to_all_events?,
|
31
|
+
{ 'data-action' => 'webhooks_subscriber_events#showCheckboxes',
|
32
|
+
class: 'events' } %>
|
33
|
+
<%= label_tag :subscribe_to_all_events_false, Spree.t('admin.webhooks_subscribers.select_events') %>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
<br/>
|
37
|
+
|
38
|
+
<div data-webhooks_subscriber_events-target="eventsCheckboxesContainer">
|
39
|
+
<div class="row">
|
40
|
+
<%= event_checkbox_for(:address, f) %>
|
41
|
+
<%= event_checkbox_for(:asset, f) %>
|
42
|
+
<%= event_checkbox_for(:cms_page, f) %>
|
43
|
+
<%= event_checkbox_for(:credit_card, f) %>
|
44
|
+
<%= event_checkbox_for(:customer_return, f) %>
|
45
|
+
<%= event_checkbox_for(:digital_link, f) %>
|
46
|
+
</div>
|
47
|
+
<div class="row">
|
48
|
+
<%= event_checkbox_for(:digital, f) %>
|
49
|
+
<%= event_checkbox_for(:inventory_unit, f) %>
|
50
|
+
<%= event_checkbox_for(:line_item, f) %>
|
51
|
+
<%= event_checkbox_for(:menu_item, f) %>
|
52
|
+
<%= event_checkbox_for(:menu, f) %>
|
53
|
+
<%= event_checkbox_for(:option_type, f) %>
|
54
|
+
</div>
|
55
|
+
<div class="row">
|
56
|
+
<%= event_checkbox_for(:option_value, f) %>
|
57
|
+
<%= event_checkbox_for(:order, f) %>
|
58
|
+
<%= event_checkbox_for(:payment, f) %>
|
59
|
+
<%= event_checkbox_for(:payment_capture_event, f) %>
|
60
|
+
<%= event_checkbox_for(:price, f) %>
|
61
|
+
<%= event_checkbox_for(:product, f) %>
|
62
|
+
</div>
|
63
|
+
<div class="row">
|
64
|
+
<%= event_checkbox_for(:promotion, f) %>
|
65
|
+
<%= event_checkbox_for(:property, f) %>
|
66
|
+
<%= event_checkbox_for(:prototype, f) %>
|
67
|
+
<%= event_checkbox_for(:refund, f) %>
|
68
|
+
<%= event_checkbox_for(:reimbursement, f) %>
|
69
|
+
<%= event_checkbox_for(:return_authorization, f) %>
|
70
|
+
</div>
|
71
|
+
<div class="row">
|
72
|
+
<%= event_checkbox_for(:return_item, f) %>
|
73
|
+
<%= event_checkbox_for(:role, f) %>
|
74
|
+
<%= event_checkbox_for(:shipment, f) %>
|
75
|
+
<%= event_checkbox_for(:shipping_category, f) %>
|
76
|
+
<%= event_checkbox_for(:shipping_method, f) %>
|
77
|
+
<%= event_checkbox_for(:shipping_rate, f) %>
|
78
|
+
</div>
|
79
|
+
<div class="row">
|
80
|
+
<%= event_checkbox_for(:stock_item, f) %>
|
81
|
+
<%= event_checkbox_for(:stock_location, f) %>
|
82
|
+
<%= event_checkbox_for(:stock_movement, f) %>
|
83
|
+
<%= event_checkbox_for(:stock_transfer, f) %>
|
84
|
+
<%= event_checkbox_for(:store_credit, f) %>
|
85
|
+
<%= event_checkbox_for(:store, f) %>
|
86
|
+
</div>
|
87
|
+
<div class="row">
|
88
|
+
<%= event_checkbox_for(:tax_rate, f) %>
|
89
|
+
<%= event_checkbox_for(:taxonomy, f) %>
|
90
|
+
<%= event_checkbox_for(:taxon, f) %>
|
91
|
+
<%= event_checkbox_for(:variant, f) %>
|
92
|
+
<%= event_checkbox_for(:wished_item, f) %>
|
93
|
+
<%= event_checkbox_for(:wishlist, f) %>
|
94
|
+
</div>
|
95
|
+
<div class="row">
|
96
|
+
<%= event_checkbox_for(:zone, f) %>
|
97
|
+
</div>
|
98
|
+
</div>
|
99
|
+
<% end %>
|
100
|
+
</div>
|
101
|
+
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<% content_for :page_title do %>
|
2
|
+
<%= link_to Spree.t('admin.webhooks_subscribers.webhooks_subscribers'), spree.admin_webhooks_subscribers_path %> /
|
3
|
+
<%= @webhooks_subscriber.url %>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<%= render partial: 'spree/admin/shared/error_messages', locals: { target: @webhooks_subscriber } %>
|
7
|
+
|
8
|
+
<%= form_for [:admin, @webhooks_subscriber] do |f| %>
|
9
|
+
<fieldset>
|
10
|
+
<%= render partial: 'form', locals: { f: f } %>
|
11
|
+
<%= render partial: 'spree/admin/shared/edit_resource_links' %>
|
12
|
+
</fieldset>
|
13
|
+
<% end %>
|