spree_admin 5.0.3 → 5.1.0.beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/images/login_sidebar_background.png +0 -0
- data/app/assets/stylesheets/spree/admin/components/_bulk_panel.scss +8 -1
- data/app/assets/stylesheets/spree/admin/components/_buttons.scss +12 -20
- data/app/assets/stylesheets/spree/admin/components/_cards.scss +9 -3
- data/app/assets/stylesheets/spree/admin/components/_dropdowns.scss +13 -40
- data/app/assets/stylesheets/spree/admin/components/_filters.scss +32 -3
- data/app/assets/stylesheets/spree/admin/components/_main.scss +107 -31
- data/app/assets/stylesheets/spree/admin/components/_media_form.scss +21 -9
- data/app/assets/stylesheets/spree/admin/components/_modals.scss +4 -3
- data/app/assets/stylesheets/spree/admin/components/_navbar.scss +5 -9
- data/app/assets/stylesheets/spree/admin/components/_navigation.scss +0 -1
- data/app/assets/stylesheets/spree/admin/components/_sortable_tree.scss +6 -2
- data/app/assets/stylesheets/spree/admin/components/_tables.scss +35 -5
- data/app/assets/stylesheets/spree/admin/global/_variables.scss +37 -17
- data/app/assets/stylesheets/spree/admin/plugins/tom-select.bootstrap4.scss +5 -4
- data/app/assets/stylesheets/spree/admin/shared/_base.scss +50 -17
- data/app/assets/stylesheets/spree/admin/shared/_forms.scss +6 -2
- data/app/assets/stylesheets/spree/admin/views/_page_builder.scss +30 -21
- data/app/controllers/concerns/spree/admin/breadcrumb_concern.rb +22 -0
- data/app/controllers/concerns/spree/admin/preferences_concern.rb +22 -0
- data/app/controllers/concerns/spree/admin/products_breadcrumb_concern.rb +22 -0
- data/app/controllers/concerns/spree/admin/promotions_breadcrumb_concern.rb +23 -0
- data/app/controllers/concerns/spree/admin/storefront_breadcrumb_concern.rb +12 -0
- data/app/controllers/spree/admin/addresses_controller.rb +4 -0
- data/app/controllers/spree/admin/admin_users_controller.rb +112 -0
- data/app/controllers/spree/admin/assets_controller.rb +7 -9
- data/app/controllers/spree/admin/base_controller.rb +21 -10
- data/app/controllers/spree/admin/checkouts_controller.rb +4 -0
- data/app/controllers/spree/admin/classifications_controller.rb +4 -0
- data/app/controllers/spree/admin/coupon_codes_controller.rb +2 -0
- data/app/controllers/spree/admin/custom_domains_controller.rb +6 -0
- data/app/controllers/spree/admin/customer_returns_controller.rb +4 -0
- data/app/controllers/spree/admin/dashboard_controller.rb +19 -14
- data/app/controllers/spree/admin/digital_assets_controller.rb +8 -0
- data/app/controllers/spree/admin/exports_controller.rb +6 -2
- data/app/controllers/spree/admin/integrations_controller.rb +61 -0
- data/app/controllers/spree/admin/invitations_controller.rb +128 -0
- data/app/controllers/spree/admin/line_items_controller.rb +4 -0
- data/app/controllers/spree/admin/oauth_applications_controller.rb +6 -0
- data/app/controllers/spree/admin/option_types_controller.rb +15 -0
- data/app/controllers/spree/admin/option_values_controller.rb +4 -0
- data/app/controllers/spree/admin/orders/return_authorizations_controller.rb +4 -0
- data/app/controllers/spree/admin/orders_controller.rb +11 -0
- data/app/controllers/spree/admin/page_blocks_controller.rb +3 -2
- data/app/controllers/spree/admin/page_links_controller.rb +9 -0
- data/app/controllers/spree/admin/page_sections_controller.rb +13 -4
- data/app/controllers/spree/admin/pages_controller.rb +7 -0
- data/app/controllers/spree/admin/payment_methods_controller.rb +23 -12
- data/app/controllers/spree/admin/post_categories_controller.rb +3 -0
- data/app/controllers/spree/admin/posts_controller.rb +11 -0
- data/app/controllers/spree/admin/products_controller.rb +11 -8
- data/app/controllers/spree/admin/promotion_actions_controller.rb +10 -2
- data/app/controllers/spree/admin/promotion_rules_controller.rb +10 -2
- data/app/controllers/spree/admin/promotions_controller.rb +6 -0
- data/app/controllers/spree/admin/properties_controller.rb +15 -0
- data/app/controllers/spree/admin/refund_reasons_controller.rb +7 -0
- data/app/controllers/spree/admin/refunds_controller.rb +4 -0
- data/app/controllers/spree/admin/reimbursement_types_controller.rb +7 -0
- data/app/controllers/spree/admin/reimbursements_controller.rb +4 -0
- data/app/controllers/spree/admin/reports_controller.rb +12 -2
- data/app/controllers/spree/admin/resource_controller.rb +1 -1
- data/app/controllers/spree/admin/return_authorization_reasons_controller.rb +7 -0
- data/app/controllers/spree/admin/return_authorizations_controller.rb +4 -0
- data/app/controllers/spree/admin/return_items_controller.rb +6 -0
- data/app/controllers/spree/admin/role_users_controller.rb +36 -0
- data/app/controllers/spree/admin/roles_controller.rb +8 -0
- data/app/controllers/spree/admin/shipments_controller.rb +2 -2
- data/app/controllers/spree/admin/shipping_categories_controller.rb +7 -0
- data/app/controllers/spree/admin/shipping_methods_controller.rb +6 -0
- data/app/controllers/spree/admin/stock_items_controller.rb +13 -0
- data/app/controllers/spree/admin/stock_locations_controller.rb +7 -0
- data/app/controllers/spree/admin/stock_transfers_controller.rb +14 -2
- data/app/controllers/spree/admin/store_credit_categories_controller.rb +5 -0
- data/app/controllers/spree/admin/store_credits_controller.rb +4 -0
- data/app/controllers/spree/admin/storefront_controller.rb +3 -0
- data/app/controllers/spree/admin/stores_controller.rb +17 -2
- data/app/controllers/spree/admin/tax_categories_controller.rb +7 -0
- data/app/controllers/spree/admin/tax_rates_controller.rb +6 -0
- data/app/controllers/spree/admin/taxonomies_controller.rb +15 -0
- data/app/controllers/spree/admin/taxons_controller.rb +24 -1
- data/app/controllers/spree/admin/themes_controller.rb +7 -0
- data/app/controllers/spree/admin/translations_controller.rb +9 -1
- data/app/controllers/spree/admin/user_passwords_controller.rb +22 -0
- data/app/controllers/spree/admin/user_sessions_controller.rb +23 -0
- data/app/controllers/spree/admin/users_controller.rb +11 -2
- data/app/controllers/spree/admin/variants_controller.rb +13 -0
- data/app/controllers/spree/admin/webhooks_subscribers_controller.rb +34 -12
- data/app/controllers/spree/admin/zones_controller.rb +5 -0
- data/app/helpers/spree/admin/base_helper.rb +33 -32
- data/app/helpers/spree/admin/bulk_operations_helper.rb +8 -2
- data/app/helpers/spree/admin/modal_helper.rb +1 -1
- data/app/helpers/spree/admin/navigation_helper.rb +12 -6
- data/app/helpers/spree/admin/posts_helper.rb +1 -1
- data/app/helpers/spree/admin/session_assets_helper.rb +1 -1
- data/app/helpers/spree/admin/stores_helper.rb +1 -18
- data/app/helpers/spree/admin/tags_helper.rb +2 -2
- data/app/javascript/spree/admin/application.js +2 -2
- data/app/javascript/spree/admin/controllers/asset_uploader_controller.js +3 -2
- data/app/javascript/spree/admin/controllers/variants_form_controller.js +3 -2
- data/app/javascript/spree/admin/helpers/bootstrap.js +3 -3
- data/app/javascript/spree/admin/helpers/trix/video_embed.js +2 -2
- data/app/views/active_storage/_upload_form.html.erb +1 -1
- data/app/views/layouts/spree/minimal.html.erb +22 -0
- data/app/views/spree/admin/admin_users/_admin_user.html.erb +19 -0
- data/app/views/spree/admin/admin_users/_audit_log.html.erb +5 -0
- data/app/views/spree/admin/admin_users/_form.html.erb +12 -0
- data/app/views/spree/admin/admin_users/edit.html.erb +35 -0
- data/app/views/spree/admin/admin_users/index.html.erb +18 -0
- data/app/views/spree/admin/admin_users/new.html.erb +21 -0
- data/app/views/spree/admin/admin_users/show.html.erb +113 -0
- data/app/views/spree/admin/coupon_codes/index.html.erb +6 -6
- data/app/views/spree/admin/custom_domains/_custom_domains.html.erb +1 -1
- data/app/views/spree/admin/customer_returns/index.html.erb +1 -1
- data/app/views/spree/admin/dashboard/_store_preview.html.erb +1 -1
- data/app/views/spree/admin/dashboard/_top_products.html.erb +5 -3
- data/app/views/spree/admin/digital_assets/_table.html.erb +1 -1
- data/app/views/spree/admin/digital_assets/index.html.erb +0 -1
- data/app/views/spree/admin/exports/index.html.erb +1 -1
- data/app/views/spree/admin/integrations/_integration.html.erb +36 -0
- data/app/views/spree/admin/integrations/edit.html.erb +11 -0
- data/app/views/spree/admin/integrations/index.html.erb +23 -0
- data/app/views/spree/admin/integrations/new.html.erb +14 -0
- data/app/views/spree/admin/invitations/_invitation.html.erb +52 -0
- data/app/views/spree/admin/invitations/create.turbo_stream.erb +4 -0
- data/app/views/spree/admin/invitations/index.html.erb +21 -0
- data/app/views/spree/admin/invitations/new.html.erb +32 -0
- data/app/views/spree/admin/invitations/show.html.erb +9 -0
- data/app/views/spree/admin/line_items/new.html.erb +2 -2
- data/app/views/spree/admin/oauth_applications/index.html.erb +1 -1
- data/app/views/spree/admin/option_types/edit.html.erb +1 -1
- data/app/views/spree/admin/option_types/index.html.erb +1 -1
- data/app/views/spree/admin/orders/_customer.html.erb +1 -2
- data/app/views/spree/admin/orders/_filters.html.erb +28 -22
- data/app/views/spree/admin/orders/_list.html.erb +1 -1
- data/app/views/spree/admin/orders/_refunds.html.erb +1 -1
- data/app/views/spree/admin/orders/_shipment.html.erb +1 -1
- data/app/views/spree/admin/orders/_summary.html.erb +1 -1
- data/app/views/spree/admin/orders/_table_filter_dropdown.html.erb +2 -2
- data/app/views/spree/admin/orders/customer_returns/_customer_return.html.erb +1 -1
- data/app/views/spree/admin/orders/customer_returns/_return_item_decision.html.erb +1 -1
- data/app/views/spree/admin/orders/return_authorizations/_form.html.erb +1 -1
- data/app/views/spree/admin/orders/return_authorizations/show.html.erb +2 -2
- data/app/views/spree/admin/page_blocks/_form_tab_buttons.html.erb +5 -7
- data/app/views/spree/admin/page_blocks/edit.html.erb +3 -5
- data/app/views/spree/admin/page_blocks/forms/_image.html.erb +9 -0
- data/app/views/spree/admin/page_builder/_add_block.html.erb +1 -1
- data/app/views/spree/admin/page_builder/_header.html.erb +35 -28
- data/app/views/spree/admin/page_builder/_pages_dropdown.html.erb +15 -21
- data/app/views/spree/admin/page_builder/_sidebar.html.erb +1 -1
- data/app/views/spree/admin/page_builder/_sidebar_block.html.erb +11 -10
- data/app/views/spree/admin/page_builder/_sidebar_sections_toolbar.html.erb +152 -39
- data/app/views/spree/admin/page_links/_list.html.erb +2 -2
- data/app/views/spree/admin/page_links/edit.html.erb +2 -4
- data/app/views/spree/admin/page_sections/_form_tab_buttons.html.erb +6 -10
- data/app/views/spree/admin/page_sections/new.html.erb +1 -1
- data/app/views/spree/admin/pages/edit.html.erb +2 -2
- data/app/views/spree/admin/payment_methods/_form.html.erb +1 -1
- data/app/views/spree/admin/payment_methods/index.html.erb +16 -15
- data/app/views/spree/admin/payments/_payment.html.erb +1 -1
- data/app/views/spree/admin/post_categories/index.html.erb +1 -1
- data/app/views/spree/admin/posts/index.html.erb +1 -1
- data/app/views/spree/admin/products/_bulk_operations.html.erb +1 -1
- data/app/views/spree/admin/products/_filters.html.erb +2 -5
- data/app/views/spree/admin/products/_list.html.erb +1 -1
- data/app/views/spree/admin/products/_table_filter_dropdown.html.erb +2 -2
- data/app/views/spree/admin/products/form/_categorization.html.erb +34 -30
- data/app/views/spree/admin/products/form/_variants.html.erb +1 -0
- data/app/views/spree/admin/promotion_actions/_promotion_action.html.erb +1 -1
- data/app/views/spree/admin/promotion_rules/_promotion_rule.html.erb +1 -1
- data/app/views/spree/admin/promotions/_filters.html.erb +2 -6
- data/app/views/spree/admin/promotions/_header.html.erb +1 -3
- data/app/views/spree/admin/promotions/_sidebar.html.erb +18 -0
- data/app/views/spree/admin/promotions/_table_filter_dropdown.html.erb +2 -2
- data/app/views/spree/admin/promotions/index.html.erb +1 -1
- data/app/views/spree/admin/properties/edit.html.erb +1 -1
- data/app/views/spree/admin/properties/index.html.erb +1 -1
- data/app/views/spree/admin/refund_reasons/index.html.erb +1 -1
- data/app/views/spree/admin/reimbursement_types/index.html.erb +1 -1
- data/app/views/spree/admin/reimbursements/edit.html.erb +2 -2
- data/app/views/spree/admin/reimbursements/show.html.erb +1 -1
- data/app/views/spree/admin/reports/_report.html.erb +1 -1
- data/app/views/spree/admin/return_authorization_reasons/index.html.erb +1 -1
- data/app/views/spree/admin/return_authorizations/_filters.html.erb +2 -2
- data/app/views/spree/admin/return_authorizations/_list.html.erb +1 -1
- data/app/views/spree/admin/roles/edit.html.erb +6 -4
- data/app/views/spree/admin/roles/index.html.erb +11 -7
- data/app/views/spree/admin/shared/_alerts.html.erb +1 -1
- data/app/views/spree/admin/shared/_breadcrumbs.html.erb +13 -0
- data/app/views/spree/admin/shared/_calendar_range_picker.html.erb +1 -1
- data/app/views/spree/admin/shared/_content_header.html.erb +3 -3
- data/app/views/spree/admin/shared/_filters_button.html.erb +1 -1
- data/app/views/spree/admin/shared/_filters_search_bar.html.erb +1 -1
- data/app/views/spree/admin/shared/_head.html.erb +10 -1
- data/app/views/spree/admin/shared/_header.html.erb +26 -17
- data/app/views/spree/admin/shared/_index_table_options.html.erb +1 -1
- data/app/views/spree/admin/shared/_multi_product_picker.html.erb +1 -1
- data/app/views/spree/admin/shared/_new_item_dropdown.html.erb +32 -0
- data/app/views/spree/admin/shared/_no_resource_found.html.erb +6 -3
- data/app/views/spree/admin/shared/_offcanvas_nav.html.erb +1 -14
- data/app/views/spree/admin/shared/_refunds.html.erb +1 -1
- data/app/views/spree/admin/shared/_sidebar.html.erb +0 -8
- data/app/views/spree/admin/shared/_tax_nav.html.erb +1 -0
- data/app/views/spree/admin/shared/_team_nav.html.erb +13 -0
- data/app/views/spree/admin/shared/_user_dropdown.html.erb +25 -20
- data/app/views/spree/admin/shared/devise/_links.html.erb +18 -0
- data/app/views/spree/admin/shared/sidebar/_enterprise_edition_notice.html.erb +7 -5
- data/app/views/spree/admin/shared/sidebar/_integrations_nav.html.erb +5 -7
- data/app/views/spree/admin/shared/sidebar/_orders_nav.html.erb +2 -2
- data/app/views/spree/admin/shared/sidebar/_products_nav.html.erb +2 -2
- data/app/views/spree/admin/shared/sidebar/_promotions_nav.html.erb +17 -0
- data/app/views/spree/admin/shared/sidebar/_returns_nav.html.erb +1 -1
- data/app/views/spree/admin/shared/sidebar/_store_dropdown.html.erb +33 -75
- data/app/views/spree/admin/shared/sidebar/_store_nav.html.erb +17 -36
- data/app/views/spree/admin/shared/sidebar/_storefront_nav.html.erb +6 -2
- data/app/views/spree/admin/shared/sidebar/_vendors_nav.html.erb +9 -7
- data/app/views/spree/admin/shared/sortable_tree/_taxonomy.html.erb +1 -1
- data/app/views/spree/admin/shipping_categories/index.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/_form.html.erb +7 -134
- data/app/views/spree/admin/shipping_methods/form/_display.html.erb +25 -0
- data/app/views/spree/admin/shipping_methods/form/_estimated_transit_business_days.html.erb +23 -0
- data/app/views/spree/admin/shipping_methods/form/_shipping_categories.html.erb +21 -0
- data/app/views/spree/admin/shipping_methods/form/_tax_category.html.erb +16 -0
- data/app/views/spree/admin/shipping_methods/form/_tracking_url.html.erb +18 -0
- data/app/views/spree/admin/shipping_methods/form/_zones.html.erb +26 -0
- data/app/views/spree/admin/shipping_methods/index.html.erb +1 -1
- data/app/views/spree/admin/stock_items/index.html.erb +1 -1
- data/app/views/spree/admin/stock_locations/_stock_location.html.erb +5 -3
- data/app/views/spree/admin/stock_locations/index.html.erb +4 -2
- data/app/views/spree/admin/stock_transfers/index.html.erb +1 -1
- data/app/views/spree/admin/store_credit_categories/index.html.erb +1 -1
- data/app/views/spree/admin/store_credits/_list.html.erb +1 -1
- data/app/views/spree/admin/stores/edit_emails.html.erb +1 -1
- data/app/views/spree/admin/stores/form/_basic.html.erb +1 -1
- data/app/views/spree/admin/stores/form/_emails.html.erb +1 -1
- data/app/views/spree/admin/tax_categories/index.html.erb +1 -1
- data/app/views/spree/admin/tax_rates/index.html.erb +1 -1
- data/app/views/spree/admin/taxonomies/index.html.erb +1 -1
- data/app/views/spree/admin/themes/_theme.html.erb +6 -4
- data/app/views/spree/admin/themes/_theme_preview_image.html.erb +6 -4
- data/app/views/spree/admin/themes/index.html.erb +1 -1
- data/app/views/spree/admin/translations/edit.html.erb +1 -1
- data/app/views/spree/admin/user_passwords/edit.html.erb +21 -0
- data/app/views/spree/admin/user_passwords/new.html.erb +12 -0
- data/app/views/spree/admin/user_sessions/new.html.erb +16 -0
- data/app/views/spree/admin/users/_form.html.erb +10 -8
- data/app/views/spree/admin/users/_user.html.erb +4 -4
- data/app/views/spree/admin/users/index.html.erb +4 -4
- data/app/views/spree/admin/users/new.html.erb +1 -1
- data/app/views/spree/admin/variants/_search_result.html.erb +1 -1
- data/app/views/spree/admin/variants/form/_media.html.erb +1 -0
- data/app/views/spree/admin/variants/form/_media_asset.html.erb +1 -1
- data/app/views/spree/admin/webhooks_subscribers/_form.html.erb +37 -19
- data/app/views/spree/admin/webhooks_subscribers/_webhooks_subscriber.html.erb +12 -6
- data/app/views/spree/admin/webhooks_subscribers/edit.html.erb +2 -2
- data/app/views/spree/admin/webhooks_subscribers/index.html.erb +1 -1
- data/app/views/spree/admin/webhooks_subscribers/show.html.erb +58 -47
- data/app/views/spree/admin/zones/_form.html.erb +11 -15
- data/app/views/spree/admin/zones/index.html.erb +1 -1
- data/config/importmap.rb +2 -2
- data/config/locales/en.yml +3 -0
- data/config/routes.rb +13 -1
- data/lib/spree/admin/engine.rb +11 -1
- data/lib/spree/admin.rb +1 -0
- data/vendor/javascript/bootstrap--dist--js--bootstrap.bundle.min.js.js +4 -4
- data/vendor/javascript/dompurify.js +24 -24
- metadata +65 -9
- data/app/javascript/spree/admin/controllers/webhook_subscriber_events_controller.js +0 -19
@@ -1,64 +1,177 @@
|
|
1
1
|
<%= turbo_frame_tag :page_sidebar_toolbar do %>
|
2
2
|
<div class="d-none">
|
3
|
-
<%
|
3
|
+
<% sections =
|
4
|
+
@page_preview.sections.includes(:blocks).map { |s| [@page_preview, s] } %>
|
5
|
+
|
6
|
+
<% sections +=
|
7
|
+
@theme_preview.sections.includes(:blocks).map { |s| [@theme_preview, s] } %>
|
8
|
+
|
9
|
+
<% sections.each do |parent, section| %>
|
4
10
|
<% next if section.new_record? %>
|
5
11
|
|
6
|
-
|
7
|
-
<
|
8
|
-
<
|
9
|
-
<
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
<
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
12
|
+
<% unless parent.is_a?(Spree::Theme) %>
|
13
|
+
<div id="editor-toolbar-section-<%= section.id %>">
|
14
|
+
<button class="editor-toolbar-lower">
|
15
|
+
<svg
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
17
|
+
width="16"
|
18
|
+
height="16"
|
19
|
+
fill="currentColor"
|
20
|
+
class="bi bi-arrow-down"
|
21
|
+
viewBox="0 0 16 16"
|
22
|
+
>
|
23
|
+
<path
|
24
|
+
fill-rule="evenodd"
|
25
|
+
d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"
|
26
|
+
/>
|
27
|
+
</svg>
|
28
|
+
</button>
|
29
|
+
<button class="editor-toolbar-higher">
|
30
|
+
<svg
|
31
|
+
xmlns="http://www.w3.org/2000/svg"
|
32
|
+
width="16"
|
33
|
+
height="16"
|
34
|
+
fill="currentColor"
|
35
|
+
class="bi bi-arrow-up"
|
36
|
+
viewBox="0 0 16 16"
|
37
|
+
>
|
38
|
+
<path
|
39
|
+
fill-rule="evenodd"
|
40
|
+
d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"
|
41
|
+
/>
|
42
|
+
</svg>
|
43
|
+
</button>
|
44
|
+
<button class="editor-toolbar-edit">
|
45
|
+
<svg
|
46
|
+
xmlns="http://www.w3.org/2000/svg"
|
47
|
+
width="16"
|
48
|
+
height="16"
|
49
|
+
fill="currentColor"
|
50
|
+
class="bi bi-pencil"
|
51
|
+
viewBox="0 0 16 16"
|
52
|
+
>
|
53
|
+
<path
|
54
|
+
d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z"
|
55
|
+
/>
|
56
|
+
</svg>
|
57
|
+
</button>
|
58
|
+
<button class="editor-toolbar-delete">
|
59
|
+
<svg
|
60
|
+
xmlns="http://www.w3.org/2000/svg"
|
61
|
+
width="16"
|
62
|
+
height="16"
|
63
|
+
fill="currentColor"
|
64
|
+
class="bi bi-trash"
|
65
|
+
viewBox="0 0 16 16"
|
66
|
+
>
|
67
|
+
<path
|
68
|
+
d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"
|
69
|
+
/>
|
70
|
+
<path
|
71
|
+
d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"
|
72
|
+
/>
|
73
|
+
</svg>
|
74
|
+
</button>
|
75
|
+
</div>
|
29
76
|
|
30
|
-
|
31
|
-
|
32
|
-
|
77
|
+
<%= button_to Spree.t(:move_up),
|
78
|
+
spree.move_higher_admin_page_section_path(parent, section),
|
79
|
+
method: :patch,
|
80
|
+
id: "editor-toolbar-higher-section-#{section.id}" %>
|
81
|
+
<%= button_to Spree.t(:move_down),
|
82
|
+
spree.move_lower_admin_page_section_path(parent, section),
|
83
|
+
method: :patch,
|
84
|
+
id: "editor-toolbar-lower-section-#{section.id}" %>
|
85
|
+
<%= link_to Spree.t(:destroy),
|
86
|
+
spree.admin_page_section_path(section),
|
87
|
+
data: {
|
88
|
+
turbo_confirm: Spree.t(:are_you_sure),
|
89
|
+
turbo_method: :delete,
|
90
|
+
},
|
91
|
+
id: "editor-toolbar-delete-section-#{section.id}" %>
|
92
|
+
|
93
|
+
<% end %>
|
33
94
|
|
34
95
|
<% section.blocks.each do |block| %>
|
35
96
|
<div id="editor-toolbar-block-<%= block.id %>">
|
36
97
|
<button class="editor-toolbar-lower">
|
37
|
-
<svg
|
38
|
-
|
98
|
+
<svg
|
99
|
+
xmlns="http://www.w3.org/2000/svg"
|
100
|
+
width="16"
|
101
|
+
height="16"
|
102
|
+
fill="currentColor"
|
103
|
+
class="bi bi-arrow-down"
|
104
|
+
viewBox="0 0 16 16"
|
105
|
+
>
|
106
|
+
<path
|
107
|
+
fill-rule="evenodd"
|
108
|
+
d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"
|
109
|
+
/>
|
39
110
|
</svg>
|
40
111
|
</button>
|
41
112
|
<button class="editor-toolbar-higher">
|
42
|
-
<svg
|
43
|
-
|
113
|
+
<svg
|
114
|
+
xmlns="http://www.w3.org/2000/svg"
|
115
|
+
width="16"
|
116
|
+
height="16"
|
117
|
+
fill="currentColor"
|
118
|
+
class="bi bi-arrow-up"
|
119
|
+
viewBox="0 0 16 16"
|
120
|
+
>
|
121
|
+
<path
|
122
|
+
fill-rule="evenodd"
|
123
|
+
d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"
|
124
|
+
/>
|
44
125
|
</svg>
|
45
126
|
</button>
|
46
127
|
<button class="editor-toolbar-edit">
|
47
|
-
<svg
|
48
|
-
|
128
|
+
<svg
|
129
|
+
xmlns="http://www.w3.org/2000/svg"
|
130
|
+
width="16"
|
131
|
+
height="16"
|
132
|
+
fill="currentColor"
|
133
|
+
class="bi bi-pencil"
|
134
|
+
viewBox="0 0 16 16"
|
135
|
+
>
|
136
|
+
<path
|
137
|
+
d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z"
|
138
|
+
/>
|
49
139
|
</svg>
|
50
140
|
</button>
|
51
141
|
<button class="editor-toolbar-delete">
|
52
|
-
<svg
|
53
|
-
|
54
|
-
|
142
|
+
<svg
|
143
|
+
xmlns="http://www.w3.org/2000/svg"
|
144
|
+
width="16"
|
145
|
+
height="16"
|
146
|
+
fill="currentColor"
|
147
|
+
class="bi bi-trash"
|
148
|
+
viewBox="0 0 16 16"
|
149
|
+
>
|
150
|
+
<path
|
151
|
+
d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"
|
152
|
+
/>
|
153
|
+
<path
|
154
|
+
d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"
|
155
|
+
/>
|
55
156
|
</svg>
|
56
157
|
</button>
|
57
158
|
</div>
|
58
159
|
|
59
|
-
<%= button_to Spree.t(:move_up),
|
60
|
-
|
61
|
-
|
160
|
+
<%= button_to Spree.t(:move_up),
|
161
|
+
spree.move_higher_admin_page_section_block_path(section, block),
|
162
|
+
method: :patch,
|
163
|
+
id: "editor-toolbar-higher-block-#{block.id}" %>
|
164
|
+
<%= button_to Spree.t(:move_down),
|
165
|
+
spree.move_lower_admin_page_section_block_path(section, block),
|
166
|
+
method: :patch,
|
167
|
+
id: "editor-toolbar-lower-block-#{block.id}" %>
|
168
|
+
<%= link_to Spree.t(:destroy),
|
169
|
+
spree.admin_page_section_block_path(section, block),
|
170
|
+
data: {
|
171
|
+
turbo_confirm: Spree.t(:are_you_sure),
|
172
|
+
turbo_method: :delete,
|
173
|
+
},
|
174
|
+
id: "editor-toolbar-delete-block-#{block.id}" %>
|
62
175
|
<% end %>
|
63
176
|
<% end %>
|
64
177
|
</div>
|
@@ -26,9 +26,9 @@
|
|
26
26
|
|
27
27
|
<% if show_add_link_button %>
|
28
28
|
<% if parent.is_a?(Spree::PageSection) %>
|
29
|
-
<% add_url = admin_page_section_links_path(parent) %>
|
29
|
+
<% add_url = spree.admin_page_section_links_path(parent) %>
|
30
30
|
<% elsif parent.is_a?(Spree::PageBlock) %>
|
31
|
-
<% add_url = admin_page_section_block_links_path(parent.section, parent) %>
|
31
|
+
<% add_url = spree.admin_page_section_block_links_path(parent.section, parent) %>
|
32
32
|
<% end %>
|
33
33
|
|
34
34
|
<%= link_to_with_icon 'plus', 'Add link', add_url, class: 'btn btn-primary w-100', data: { turbo_method: :post } if add_url && can?(:create, Spree::PageLink.new(parent: parent)) %>
|
@@ -10,9 +10,7 @@
|
|
10
10
|
<%= render 'spree/admin/page_links/form', f: f %>
|
11
11
|
<% end %>
|
12
12
|
</div>
|
13
|
-
<div class="
|
14
|
-
|
15
|
-
<%= link_to_delete(@page_link, url: spree.admin_page_link_path(@page_link)) %>
|
16
|
-
</div>
|
13
|
+
<div class="sidebar-footer">
|
14
|
+
<%= link_to_delete(@page_link, url: spree.admin_page_link_path(@page_link)) %>
|
17
15
|
</div>
|
18
16
|
<% end %>
|
@@ -1,12 +1,8 @@
|
|
1
1
|
<div class="sidebar-footer">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<%= link_to_delete(@page_section, url: spree.admin_page_section_path(@page_section)) %>
|
9
|
-
</div>
|
10
|
-
<% end %>
|
11
|
-
</div>
|
2
|
+
<% if @page_section.can_be_deleted? %>
|
3
|
+
<%= link_to_delete(@page_section, url: spree.admin_page_section_path(@page_section)) %>
|
4
|
+
<% end %>
|
5
|
+
<% if tab == :design %>
|
6
|
+
<%= link_to_with_icon "restore", Spree.t(:restore_defaults), spree.restore_design_settings_to_defaults_admin_page_section_path(@page_section), {data: {turbo_confirm: Spree.t(:are_you_sure), turbo_method: :patch }, class: 'btn btn-light btn-sm ml-auto'} %>
|
7
|
+
<% end %>
|
12
8
|
</div>
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<%= f.hidden_field :pageable_id %>
|
12
12
|
<%= f.hidden_field :pageable_type %>
|
13
13
|
<% cache spree_base_cache_scope.call('new-section-list'), expires_in: 1.hour do %>
|
14
|
-
<ul class="list-group list-group-flush m-2 mx-3">
|
14
|
+
<ul class="list-group list-group-flush m-2 mx-3 border p-1 rounded-lg bg-white">
|
15
15
|
<% @theme.available_page_sections.each do |section_class| %>
|
16
16
|
<li class="list-group-item p-2 list-group-item-action cursor-pointer d-flex align-items-center hover-action text-primary"
|
17
17
|
data-action="click->section-form#addSection"
|
@@ -1,14 +1,14 @@
|
|
1
1
|
<%= turbo_frame_tag :dialog_modal do %>
|
2
2
|
<%= form_with model: @page, url: spree.admin_page_path(@page), data: { controller: 'slug-form seo-form' }, scope: :page do |f| %>
|
3
3
|
<div class="modal-content">
|
4
|
-
<%= modal_header(
|
4
|
+
<%= modal_header(@page.display_name) %>
|
5
5
|
<div class="modal-body">
|
6
6
|
<%= render 'spree/admin/shared/error_messages', target: @page %>
|
7
7
|
<%= render 'form', f: f, vertical: true %>
|
8
8
|
</div>
|
9
9
|
<div class="modal-footer">
|
10
10
|
<%= turbo_save_button_tag Spree.t('actions.save'), data: {turbo_frame: :_top} %>
|
11
|
-
<%= link_to Spree.t('actions.destroy'), spree.admin_page_path(@page.id), data: { turbo_method: :delete, turbo_frame: '_top', turbo_confirm: Spree.t(:are_you_sure )}, class: 'btn btn-danger' %>
|
11
|
+
<%= link_to Spree.t('actions.destroy'), spree.admin_page_path(@page.id), data: { turbo_method: :delete, turbo_frame: '_top', turbo_confirm: Spree.t(:are_you_sure )}, class: 'btn btn-danger ml-auto' %>
|
12
12
|
</div>
|
13
13
|
</div>
|
14
14
|
<% end %>
|
@@ -55,7 +55,7 @@
|
|
55
55
|
</div>
|
56
56
|
<div class="form-group">
|
57
57
|
<%= label_tag :payment_method_auto_capture, Spree.t(:auto_capture) %>
|
58
|
-
<%= select(:payment_method, :auto_capture, [["#{Spree.t(:use_app_default)} (#{Spree::Config[:auto_capture]})", ''], [Spree.t(:say_yes), true], [Spree.t(:say_no), false]], {}, {class: 'custom-select'}) %>
|
58
|
+
<%= select(:payment_method, :auto_capture, [["#{Spree.t(:use_app_default)} (#{Spree::Config[:auto_capture]})", ''], [Spree.t(:say_yes).to_s, true], [Spree.t(:say_no).to_s, false]], {}, {class: 'custom-select'}) %>
|
59
59
|
</div>
|
60
60
|
|
61
61
|
<div class="form-group">
|
@@ -5,27 +5,28 @@
|
|
5
5
|
<div class="card-lg">
|
6
6
|
<div class="table-responsive">
|
7
7
|
<table class="table">
|
8
|
-
<thead
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
8
|
+
<thead>
|
9
|
+
<tr>
|
10
|
+
<th></th>
|
11
|
+
<th><%= Spree.t(:payment_method) %></th>
|
12
|
+
<th><%= Spree.t(:visibility) %></th>
|
13
|
+
<th class="text-center"><%= Spree.t(:active) %></th>
|
14
|
+
<th></th>
|
15
|
+
</tr>
|
16
|
+
</thead>
|
17
|
+
<tbody data-controller="sortable" data-sortable-handle-value=".move-handle" data-sortable-resource-name-value="payment_method" data-sortable-response-kind-value="turbo-stream">
|
18
|
+
<%= render partial: 'spree/admin/payment_methods/payment_method', collection: @payment_methods %>
|
19
|
+
</tbody>
|
20
|
+
</table>
|
21
|
+
</div>
|
21
22
|
</div>
|
22
23
|
|
23
24
|
<% if available_payment_methods.present? && can?(:create, Spree::PaymentMethod) %>
|
24
|
-
<
|
25
|
+
<h6 class="pb-2 pt-3">Available Payment Methods</h6>
|
25
26
|
<div class="card-lg">
|
26
27
|
<div class="table-responsive">
|
27
28
|
<table class="table">
|
28
|
-
<thead
|
29
|
+
<thead>
|
29
30
|
<tr>
|
30
31
|
<th><%= Spree.t(:name) %></th>
|
31
32
|
<th><%= Spree.t(:description) %></th>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
<div class="dropdown">
|
18
18
|
<button class="btn btn-light btn-sm" type="button" data-toggle="dropdown" aria-expanded="false">
|
19
|
-
<%= icon('dots', class: 'mr-0') %>
|
19
|
+
<%= icon('dots-vertical', class: 'mr-0') %>
|
20
20
|
</button>
|
21
21
|
<div class="dropdown-menu">
|
22
22
|
<% if payment.try(:gateway_dashboard_payment_url).present? %>
|
@@ -11,11 +11,8 @@
|
|
11
11
|
|
12
12
|
<div class="d-flex flex-column flex-lg-row gap-2">
|
13
13
|
<%= render 'spree/admin/shared/filters_search_bar', param: :multi_search %>
|
14
|
-
|
15
|
-
|
16
|
-
<%= render "spree/admin/products/table_filter_dropdown" %>
|
17
|
-
<%= render 'spree/admin/shared/filters_button' %>
|
18
|
-
</div>
|
14
|
+
<%= render "spree/admin/products/table_filter_dropdown" %>
|
15
|
+
<%= render 'spree/admin/shared/filters_button' %>
|
19
16
|
</div>
|
20
17
|
<div data-reveal-target="item" class="d-none" id="table-filter">
|
21
18
|
<%= f.hidden_field :status_eq, value: params.dig(:q, :status_eq) %>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<div class="dropdown
|
2
|
-
<button class="btn btn-light
|
1
|
+
<div class="dropdown">
|
2
|
+
<button class="btn btn-light dropdown-toggle" type="button" data-toggle="dropdown" data-display="static" data-flip="false" aria-expanded="false">
|
3
3
|
<span class="text-muted font-weight-normal mr-1">
|
4
4
|
<%= Spree.t(:show) %>
|
5
5
|
</span>
|
@@ -1,35 +1,39 @@
|
|
1
|
-
|
2
|
-
<div class="card-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<div class="
|
9
|
-
|
10
|
-
|
1
|
+
<% if can?(:manage, Spree::Classification) || can?(:manage, ActsAsTaggableOn::Tag) %>
|
2
|
+
<div class="card mb-4">
|
3
|
+
<div class="card-header">
|
4
|
+
<h5 class="card-title">
|
5
|
+
<%= Spree.t(:categorization) %>
|
6
|
+
</h5>
|
7
|
+
</div>
|
8
|
+
<div class="card-body">
|
9
|
+
<div class="form-group">
|
10
|
+
<% if can? :manage, Spree::Classification %>
|
11
|
+
<%= f.label :taxon_ids, Spree.t(:taxonomies) %>
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
<%= tom_select_tag 'product[taxon_ids]',
|
14
|
+
multiple: true,
|
15
|
+
active_option: @product.taxon_ids,
|
16
|
+
url: spree.admin_taxons_select_options_path(format: :json),
|
17
|
+
class: 'w-100' %>
|
18
|
+
<% elsif @product.taxons.any? %>
|
19
|
+
<%= f.label :taxon_ids, Spree.t(:taxonomies) %>
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
<ul class="text_list">
|
22
|
+
<% @product.taxons.manual.pluck(:name).each do |taxon_name| %>
|
23
|
+
<li><%= taxon_name %></li>
|
24
|
+
<% end %>
|
25
|
+
</ul>
|
26
|
+
<% else %>
|
27
|
+
<div class="alert alert-info"><%= Spree.t(:no_resource_found, resource: :taxons) %></div>
|
28
|
+
<% end %>
|
29
|
+
</div>
|
29
30
|
|
30
|
-
|
31
|
-
|
32
|
-
|
31
|
+
<% if can?(:manage, ActsAsTaggableOn::Tag) %>
|
32
|
+
<div class="form-group">
|
33
|
+
<%= f.label :tag_list, Spree.t(:tags) %>
|
34
|
+
<%= tom_select_tag 'product[tag_list]', multiple: true, class: 'w-100', options: tags_json_array, active_option: @product.tag_list, value_field: :name, create: true %>
|
35
|
+
</div>
|
36
|
+
<% end %>
|
33
37
|
</div>
|
34
38
|
</div>
|
35
|
-
|
39
|
+
<% end%>
|
@@ -15,6 +15,7 @@
|
|
15
15
|
data-variants-form-currencies-value="<%= supported_currencies.map(&:to_s).to_json %>"
|
16
16
|
data-variants-form-current-stock-location-id-value="<%= default_stock_location_for_product(@product).id %>"
|
17
17
|
data-variants-form-stock-locations-value="<%= available_stock_locations_for_product(@product).ids.map(&:to_s).to_json %>"
|
18
|
+
data-variants-form-admin-path-value="<%= spree.admin_path %>"
|
18
19
|
<% if @product_options.present? %> data-variants-form-options-value="<%= @product_options.to_json %>" <% end %>
|
19
20
|
<% if @product_available_options.present? %> data-variants-form-available-options-value="<%= @product_available_options.to_json %>" <% end %>
|
20
21
|
<% if @product_stock.present? %> data-variants-form-stock-value="<%= @product_stock.to_json %>" <% end %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<% if can?(:update, promotion_action) || can?(:destroy, promotion_action) %>
|
7
7
|
<div class="dropdown">
|
8
8
|
<button class="btn btn-light btn-sm" type="button" data-toggle="dropdown" aria-expanded="false">
|
9
|
-
<%= icon('dots', class: 'mr-0') %>
|
9
|
+
<%= icon('dots-vertical', class: 'mr-0') %>
|
10
10
|
</button>
|
11
11
|
<div class="dropdown-menu">
|
12
12
|
<%= link_to_with_icon 'pencil', Spree.t('actions.edit'), spree.edit_admin_promotion_action_path(promotion_action.promotion, promotion_action), class: 'dropdown-item' if can?(:update, promotion_action) %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<% if can?(:update, promotion_rule) || can?(:destroy, promotion_rule) %>
|
7
7
|
<div class="dropdown">
|
8
8
|
<button class="btn btn-light btn-sm" type="button" data-toggle="dropdown" aria-expanded="false">
|
9
|
-
<%= icon('dots', class: 'mr-0') %>
|
9
|
+
<%= icon('dots-vertical', class: 'mr-0') %>
|
10
10
|
</button>
|
11
11
|
<div class="dropdown-menu">
|
12
12
|
<%= link_to_with_icon 'pencil', Spree.t('actions.edit'), spree.edit_admin_promotion_rule_path(promotion_rule.promotion, promotion_rule), class: 'dropdown-item' if can?(:update, promotion_rule) %>
|
@@ -1,12 +1,8 @@
|
|
1
1
|
<%= search_form_for [:admin, @search], class: "filter-wrap", data: {controller: "filters reveal", reveal_hidden_class: "d-none"} do |f| %>
|
2
2
|
<div class="d-flex flex-column flex-lg-row gap-2">
|
3
3
|
<%= render 'spree/admin/shared/filters_search_bar', param: :name_cont, label: Spree.t(:name) %>
|
4
|
-
|
5
|
-
|
6
|
-
<%= render "spree/admin/promotions/table_filter_dropdown" %>
|
7
|
-
|
8
|
-
<%= render 'spree/admin/shared/filters_button' %>
|
9
|
-
</div>
|
4
|
+
<%= render "spree/admin/promotions/table_filter_dropdown" %>
|
5
|
+
<%= render 'spree/admin/shared/filters_button' %>
|
10
6
|
</div>
|
11
7
|
<div data-reveal-target="item" class="d-none" id="table-filter">
|
12
8
|
<div class="row">
|
@@ -1,9 +1,7 @@
|
|
1
1
|
<% content_for :page_title do %>
|
2
2
|
<%= page_header_back_button spree.admin_promotions_path, @promotion %>
|
3
3
|
<%= @promotion.name %>
|
4
|
-
|
5
|
-
<%= render 'spree/admin/promotions/status', promotion: @promotion %>
|
6
|
-
</div>
|
4
|
+
<%= render 'spree/admin/promotions/status', promotion: @promotion %>
|
7
5
|
<% end %>
|
8
6
|
|
9
7
|
<% content_for :page_tabs do %>
|
@@ -47,6 +47,24 @@
|
|
47
47
|
</span>
|
48
48
|
</li>
|
49
49
|
|
50
|
+
<li class="list-group-item d-flex justify-content-between align-items-center">
|
51
|
+
<span class="text-muted">
|
52
|
+
<%= Spree.t(:created_at) %>
|
53
|
+
</span>
|
54
|
+
<span>
|
55
|
+
<%= local_time(@promotion.created_at, format: :long) %>
|
56
|
+
</span>
|
57
|
+
</li>
|
58
|
+
|
59
|
+
<li class="list-group-item d-flex justify-content-between align-items-center">
|
60
|
+
<span class="text-muted">
|
61
|
+
<%= Spree.t(:updated_at) %>
|
62
|
+
</span>
|
63
|
+
<span>
|
64
|
+
<%= local_time(@promotion.updated_at, format: :long) %>
|
65
|
+
</span>
|
66
|
+
</li>
|
67
|
+
|
50
68
|
<li class="list-group-item d-flex justify-content-between align-items-center">
|
51
69
|
<span class="text-muted">
|
52
70
|
<%= Spree.t(:kind) %>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<div class="dropdown
|
2
|
-
<button class="btn btn-light
|
1
|
+
<div class="dropdown">
|
2
|
+
<button class="btn btn-light dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false">
|
3
3
|
<span class="text-muted font-weight-normal mr-1">
|
4
4
|
<%= Spree.t(:status) %>
|
5
5
|
</span>
|