spree_admin 5.4.0.beta3 → 5.4.0.beta4
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/controllers/spree/admin/coupon_codes_controller.rb +6 -0
- data/app/controllers/spree/admin/gift_cards_controller.rb +0 -15
- data/app/helpers/spree/admin/orders_helper.rb +0 -18
- data/app/helpers/spree/admin/products_helper.rb +0 -27
- data/app/helpers/spree/admin/promotions_helper.rb +0 -11
- data/app/helpers/spree/admin/table_helper.rb +5 -2
- data/app/models/spree/admin/table/column.rb +1 -0
- data/app/views/spree/admin/coupon_codes/index.html.erb +2 -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/return_authorization_reasons/index.html.erb +1 -1
- data/app/views/spree/admin/return_authorizations/index.html.erb +1 -1
- data/app/views/spree/admin/shipping_categories/index.html.erb +1 -1
- data/app/views/spree/admin/shipping_methods/index.html.erb +1 -1
- data/app/views/spree/admin/stock_locations/index.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/zones/index.html.erb +1 -1
- data/config/initializers/spree_admin_tables.rb +384 -0
- metadata +6 -79
- data/app/views/spree/admin/coupon_codes/_filters.html.erb +0 -41
- data/app/views/spree/admin/coupon_codes/_table_header.html.erb +0 -0
- data/app/views/spree/admin/coupon_codes/_table_row.html.erb +0 -8
- data/app/views/spree/admin/coupon_codes/index.csv.erb +0 -14
- data/app/views/spree/admin/customer_returns/_filters.html.erb +0 -11
- data/app/views/spree/admin/customer_returns/_table_header.html.erb +0 -8
- data/app/views/spree/admin/customer_returns/_table_row.html.erb +0 -31
- data/app/views/spree/admin/gift_cards/_filters.html.erb +0 -53
- data/app/views/spree/admin/gift_cards/_gift_card.html.erb +0 -28
- data/app/views/spree/admin/gift_cards/_list.html.erb +0 -24
- data/app/views/spree/admin/gift_cards/_table_filter_dropdown.html.erb +0 -25
- data/app/views/spree/admin/metafield_definitions/_filters.html.erb +0 -18
- data/app/views/spree/admin/metafield_definitions/_table_header.html.erb +0 -11
- data/app/views/spree/admin/metafield_definitions/_table_row.html.erb +0 -22
- data/app/views/spree/admin/newsletter_subscribers/_filters.html.erb +0 -41
- data/app/views/spree/admin/newsletter_subscribers/_table_header.html.erb +0 -8
- data/app/views/spree/admin/newsletter_subscribers/_table_row.html.erb +0 -36
- data/app/views/spree/admin/option_types/_filters.html.erb +0 -7
- data/app/views/spree/admin/option_types/_table_header.html.erb +0 -19
- data/app/views/spree/admin/option_types/_table_row.html.erb +0 -19
- data/app/views/spree/admin/orders/_filters.html.erb +0 -116
- data/app/views/spree/admin/orders/_list.html.erb +0 -28
- data/app/views/spree/admin/orders/_order.html.erb +0 -28
- data/app/views/spree/admin/orders/_table_filter_dropdown.html.erb +0 -34
- data/app/views/spree/admin/policies/_filters.html.erb +0 -8
- data/app/views/spree/admin/policies/_table_header.html.erb +0 -8
- data/app/views/spree/admin/policies/_table_row.html.erb +0 -20
- data/app/views/spree/admin/price_lists/_table_header.html.erb +0 -7
- data/app/views/spree/admin/products/_filters.html.erb +0 -66
- data/app/views/spree/admin/products/_list.html.erb +0 -47
- data/app/views/spree/admin/products/_product.html.erb +0 -29
- data/app/views/spree/admin/products/_product_status.html.erb +0 -3
- data/app/views/spree/admin/products/_table_filter_dropdown.html.erb +0 -42
- data/app/views/spree/admin/promotions/_filters.html.erb +0 -29
- data/app/views/spree/admin/promotions/_table_filter_dropdown.html.erb +0 -17
- data/app/views/spree/admin/promotions/_table_header.html.erb +0 -7
- data/app/views/spree/admin/promotions/_table_row.html.erb +0 -31
- data/app/views/spree/admin/refund_reasons/_table_header.html.erb +0 -6
- data/app/views/spree/admin/refund_reasons/_table_row.html.erb +0 -14
- data/app/views/spree/admin/reimbursement_types/_table_header.html.erb +0 -7
- data/app/views/spree/admin/reimbursement_types/_table_row.html.erb +0 -17
- data/app/views/spree/admin/return_authorization_reasons/_table_header.html.erb +0 -5
- data/app/views/spree/admin/return_authorization_reasons/_table_row.html.erb +0 -18
- data/app/views/spree/admin/return_authorizations/_list.html.erb +0 -21
- data/app/views/spree/admin/return_authorizations/_table_header.html.erb +0 -6
- data/app/views/spree/admin/return_authorizations/_table_row.html.erb +0 -40
- data/app/views/spree/admin/return_authorizations/filters.html.erb +0 -34
- data/app/views/spree/admin/shipping_categories/_table_header.html.erb +0 -4
- data/app/views/spree/admin/shipping_categories/_table_row.html.erb +0 -8
- data/app/views/spree/admin/shipping_methods/_table_header.html.erb +0 -8
- data/app/views/spree/admin/shipping_methods/_table_row.html.erb +0 -33
- data/app/views/spree/admin/stock_items/_filters.html.erb +0 -35
- data/app/views/spree/admin/stock_items/_table_header.html.erb +0 -9
- data/app/views/spree/admin/stock_items/_table_row.html.erb +0 -43
- data/app/views/spree/admin/stock_locations/_table_header.html.erb +0 -9
- data/app/views/spree/admin/stock_locations/_table_row.html.erb +0 -36
- data/app/views/spree/admin/stock_transfers/_filters.html.erb +0 -49
- data/app/views/spree/admin/stock_transfers/_table_header.html.erb +0 -9
- data/app/views/spree/admin/stock_transfers/_table_row.html.erb +0 -11
- data/app/views/spree/admin/tax_categories/_table_header.html.erb +0 -7
- data/app/views/spree/admin/tax_categories/_table_row.html.erb +0 -13
- data/app/views/spree/admin/tax_rates/_table_header.html.erb +0 -9
- data/app/views/spree/admin/tax_rates/_table_row.html.erb +0 -15
- data/app/views/spree/admin/taxonomies/_table_header.html.erb +0 -6
- data/app/views/spree/admin/taxonomies/_table_row.html.erb +0 -16
- data/app/views/spree/admin/taxonomies/filters.html.erb +0 -6
- data/app/views/spree/admin/users/_filters.html.erb +0 -81
- data/app/views/spree/admin/webhook_deliveries/_table_header.html.erb +0 -8
- data/app/views/spree/admin/webhook_deliveries/_table_row.html.erb +0 -22
- data/app/views/spree/admin/webhook_endpoints/_table_header.html.erb +0 -7
- data/app/views/spree/admin/webhook_endpoints/_table_row.html.erb +0 -24
- data/app/views/spree/admin/zones/_table_header.html.erb +0 -8
- data/app/views/spree/admin/zones/_table_row.html.erb +0 -8
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.4.0.
|
|
4
|
+
version: 5.4.0.beta4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vendo Connect Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: spree
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 5.4.0.
|
|
19
|
+
version: 5.4.0.beta4
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 5.4.0.
|
|
26
|
+
version: 5.4.0.beta4
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: active_link_to
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -557,10 +557,6 @@ files:
|
|
|
557
557
|
- app/views/spree/admin/classifications/destroy.turbo_stream.erb
|
|
558
558
|
- app/views/spree/admin/classifications/index.html.erb
|
|
559
559
|
- app/views/spree/admin/classifications/new.html.erb
|
|
560
|
-
- app/views/spree/admin/coupon_codes/_filters.html.erb
|
|
561
|
-
- app/views/spree/admin/coupon_codes/_table_header.html.erb
|
|
562
|
-
- app/views/spree/admin/coupon_codes/_table_row.html.erb
|
|
563
|
-
- app/views/spree/admin/coupon_codes/index.csv.erb
|
|
564
560
|
- app/views/spree/admin/coupon_codes/index.html.erb
|
|
565
561
|
- app/views/spree/admin/customer_group_users/bulk_create.turbo_stream.erb
|
|
566
562
|
- app/views/spree/admin/customer_group_users/bulk_destroy.turbo_stream.erb
|
|
@@ -574,9 +570,6 @@ files:
|
|
|
574
570
|
- app/views/spree/admin/customer_groups/new.html.erb
|
|
575
571
|
- app/views/spree/admin/customer_groups/show.html.erb
|
|
576
572
|
- app/views/spree/admin/customer_groups/update.turbo_stream.erb
|
|
577
|
-
- app/views/spree/admin/customer_returns/_filters.html.erb
|
|
578
|
-
- app/views/spree/admin/customer_returns/_table_header.html.erb
|
|
579
|
-
- app/views/spree/admin/customer_returns/_table_row.html.erb
|
|
580
573
|
- app/views/spree/admin/customer_returns/index.html.erb
|
|
581
574
|
- app/views/spree/admin/dashboard/_analytics.html.erb
|
|
582
575
|
- app/views/spree/admin/dashboard/_setup_progress.html.erb
|
|
@@ -611,11 +604,7 @@ files:
|
|
|
611
604
|
- app/views/spree/admin/exports/new.html.erb
|
|
612
605
|
- app/views/spree/admin/gift_card_batches/_form.html.erb
|
|
613
606
|
- app/views/spree/admin/gift_card_batches/new.html.erb
|
|
614
|
-
- app/views/spree/admin/gift_cards/_filters.html.erb
|
|
615
607
|
- app/views/spree/admin/gift_cards/_form.html.erb
|
|
616
|
-
- app/views/spree/admin/gift_cards/_gift_card.html.erb
|
|
617
|
-
- app/views/spree/admin/gift_cards/_list.html.erb
|
|
618
|
-
- app/views/spree/admin/gift_cards/_table_filter_dropdown.html.erb
|
|
619
608
|
- app/views/spree/admin/gift_cards/edit.html.erb
|
|
620
609
|
- app/views/spree/admin/gift_cards/index.html.erb
|
|
621
610
|
- app/views/spree/admin/gift_cards/new.html.erb
|
|
@@ -648,10 +637,7 @@ files:
|
|
|
648
637
|
- app/views/spree/admin/markets/edit.html.erb
|
|
649
638
|
- app/views/spree/admin/markets/index.html.erb
|
|
650
639
|
- app/views/spree/admin/markets/new.html.erb
|
|
651
|
-
- app/views/spree/admin/metafield_definitions/_filters.html.erb
|
|
652
640
|
- app/views/spree/admin/metafield_definitions/_form.html.erb
|
|
653
|
-
- app/views/spree/admin/metafield_definitions/_table_header.html.erb
|
|
654
|
-
- app/views/spree/admin/metafield_definitions/_table_row.html.erb
|
|
655
641
|
- app/views/spree/admin/metafield_definitions/edit.html.erb
|
|
656
642
|
- app/views/spree/admin/metafield_definitions/index.html.erb
|
|
657
643
|
- app/views/spree/admin/metafield_definitions/new.html.erb
|
|
@@ -664,15 +650,9 @@ files:
|
|
|
664
650
|
- app/views/spree/admin/metafields/types/_rich_text.html.erb
|
|
665
651
|
- app/views/spree/admin/metafields/types/_short_text.html.erb
|
|
666
652
|
- app/views/spree/admin/metafields/update.turbo_stream.erb
|
|
667
|
-
- app/views/spree/admin/newsletter_subscribers/_filters.html.erb
|
|
668
|
-
- app/views/spree/admin/newsletter_subscribers/_table_header.html.erb
|
|
669
|
-
- app/views/spree/admin/newsletter_subscribers/_table_row.html.erb
|
|
670
653
|
- app/views/spree/admin/newsletter_subscribers/index.html.erb
|
|
671
|
-
- app/views/spree/admin/option_types/_filters.html.erb
|
|
672
654
|
- app/views/spree/admin/option_types/_form.html.erb
|
|
673
655
|
- app/views/spree/admin/option_types/_option_value_fields.html.erb
|
|
674
|
-
- app/views/spree/admin/option_types/_table_header.html.erb
|
|
675
|
-
- app/views/spree/admin/option_types/_table_row.html.erb
|
|
676
656
|
- app/views/spree/admin/option_types/edit.html.erb
|
|
677
657
|
- app/views/spree/admin/option_types/index.html.erb
|
|
678
658
|
- app/views/spree/admin/option_types/new.html.erb
|
|
@@ -684,14 +664,11 @@ files:
|
|
|
684
664
|
- app/views/spree/admin/orders/_customer.html.erb
|
|
685
665
|
- app/views/spree/admin/orders/_customer_returns.html.erb
|
|
686
666
|
- app/views/spree/admin/orders/_customer_summary.html.erb
|
|
687
|
-
- app/views/spree/admin/orders/_filters.html.erb
|
|
688
667
|
- app/views/spree/admin/orders/_form.html.erb
|
|
689
668
|
- app/views/spree/admin/orders/_header.html.erb
|
|
690
669
|
- app/views/spree/admin/orders/_header_custom.html.erb
|
|
691
670
|
- app/views/spree/admin/orders/_line_item.html.erb
|
|
692
671
|
- app/views/spree/admin/orders/_line_items.html.erb
|
|
693
|
-
- app/views/spree/admin/orders/_list.html.erb
|
|
694
|
-
- app/views/spree/admin/orders/_order.html.erb
|
|
695
672
|
- app/views/spree/admin/orders/_order_promotion.html.erb
|
|
696
673
|
- app/views/spree/admin/orders/_payments.html.erb
|
|
697
674
|
- app/views/spree/admin/orders/_promotions.html.erb
|
|
@@ -704,7 +681,6 @@ files:
|
|
|
704
681
|
- app/views/spree/admin/orders/_special_instructions.html.erb
|
|
705
682
|
- app/views/spree/admin/orders/_summary.html.erb
|
|
706
683
|
- app/views/spree/admin/orders/_summary_custom.html.erb
|
|
707
|
-
- app/views/spree/admin/orders/_table_filter_dropdown.html.erb
|
|
708
684
|
- app/views/spree/admin/orders/_tax_lines.html.erb
|
|
709
685
|
- app/views/spree/admin/orders/_tax_rates.html.erb
|
|
710
686
|
- app/views/spree/admin/orders/_user_overview.html.erb
|
|
@@ -765,10 +741,7 @@ files:
|
|
|
765
741
|
- app/views/spree/admin/payments/source_views/_check.html.erb
|
|
766
742
|
- app/views/spree/admin/payments/source_views/_gateway.html.erb
|
|
767
743
|
- app/views/spree/admin/payments/source_views/_storecredit.html.erb
|
|
768
|
-
- app/views/spree/admin/policies/_filters.html.erb
|
|
769
744
|
- app/views/spree/admin/policies/_form.html.erb
|
|
770
|
-
- app/views/spree/admin/policies/_table_header.html.erb
|
|
771
|
-
- app/views/spree/admin/policies/_table_row.html.erb
|
|
772
745
|
- app/views/spree/admin/policies/edit.html.erb
|
|
773
746
|
- app/views/spree/admin/policies/index.html.erb
|
|
774
747
|
- app/views/spree/admin/policies/new.html.erb
|
|
@@ -782,7 +755,6 @@ files:
|
|
|
782
755
|
- app/views/spree/admin/price_lists/_form.html.erb
|
|
783
756
|
- app/views/spree/admin/price_lists/_products_header.html.erb
|
|
784
757
|
- app/views/spree/admin/price_lists/_rules.html.erb
|
|
785
|
-
- app/views/spree/admin/price_lists/_table_header.html.erb
|
|
786
758
|
- app/views/spree/admin/price_lists/edit.html.erb
|
|
787
759
|
- app/views/spree/admin/price_lists/edit_prices.html.erb
|
|
788
760
|
- app/views/spree/admin/price_lists/index.html.erb
|
|
@@ -798,15 +770,10 @@ files:
|
|
|
798
770
|
- app/views/spree/admin/price_rules/forms/_zone_rule.html.erb
|
|
799
771
|
- app/views/spree/admin/price_rules/new.html.erb
|
|
800
772
|
- app/views/spree/admin/products/_edit_page_title.html.erb
|
|
801
|
-
- app/views/spree/admin/products/_filters.html.erb
|
|
802
773
|
- app/views/spree/admin/products/_form.html.erb
|
|
803
774
|
- app/views/spree/admin/products/_import_button.html.erb
|
|
804
|
-
- app/views/spree/admin/products/_list.html.erb
|
|
805
|
-
- app/views/spree/admin/products/_product.html.erb
|
|
806
|
-
- app/views/spree/admin/products/_product_status.html.erb
|
|
807
775
|
- app/views/spree/admin/products/_search_result.html.erb
|
|
808
776
|
- app/views/spree/admin/products/_search_results.html.erb
|
|
809
|
-
- app/views/spree/admin/products/_table_filter_dropdown.html.erb
|
|
810
777
|
- app/views/spree/admin/products/edit.html.erb
|
|
811
778
|
- app/views/spree/admin/products/form/_base.html.erb
|
|
812
779
|
- app/views/spree/admin/products/form/_categorization.html.erb
|
|
@@ -843,15 +810,11 @@ files:
|
|
|
843
810
|
- app/views/spree/admin/promotion_rules/forms/_user_logged_in.html.erb
|
|
844
811
|
- app/views/spree/admin/promotion_rules/new.html.erb
|
|
845
812
|
- app/views/spree/admin/promotions/_actions.html.erb
|
|
846
|
-
- app/views/spree/admin/promotions/_filters.html.erb
|
|
847
813
|
- app/views/spree/admin/promotions/_form.html.erb
|
|
848
814
|
- app/views/spree/admin/promotions/_header.html.erb
|
|
849
815
|
- app/views/spree/admin/promotions/_rules.html.erb
|
|
850
816
|
- app/views/spree/admin/promotions/_sidebar.html.erb
|
|
851
817
|
- app/views/spree/admin/promotions/_status.html.erb
|
|
852
|
-
- app/views/spree/admin/promotions/_table_filter_dropdown.html.erb
|
|
853
|
-
- app/views/spree/admin/promotions/_table_header.html.erb
|
|
854
|
-
- app/views/spree/admin/promotions/_table_row.html.erb
|
|
855
818
|
- app/views/spree/admin/promotions/_usage_limit.html.erb
|
|
856
819
|
- app/views/spree/admin/promotions/edit.html.erb
|
|
857
820
|
- app/views/spree/admin/promotions/form/_kind.html.erb
|
|
@@ -860,8 +823,6 @@ files:
|
|
|
860
823
|
- app/views/spree/admin/promotions/new.html.erb
|
|
861
824
|
- app/views/spree/admin/promotions/show.html.erb
|
|
862
825
|
- app/views/spree/admin/refund_reasons/_form.html.erb
|
|
863
|
-
- app/views/spree/admin/refund_reasons/_table_header.html.erb
|
|
864
|
-
- app/views/spree/admin/refund_reasons/_table_row.html.erb
|
|
865
826
|
- app/views/spree/admin/refund_reasons/edit.html.erb
|
|
866
827
|
- app/views/spree/admin/refund_reasons/index.html.erb
|
|
867
828
|
- app/views/spree/admin/refund_reasons/new.html.erb
|
|
@@ -869,8 +830,6 @@ files:
|
|
|
869
830
|
- app/views/spree/admin/refunds/edit.html.erb
|
|
870
831
|
- app/views/spree/admin/refunds/new.html.erb
|
|
871
832
|
- app/views/spree/admin/reimbursement_types/_form.html.erb
|
|
872
|
-
- app/views/spree/admin/reimbursement_types/_table_header.html.erb
|
|
873
|
-
- app/views/spree/admin/reimbursement_types/_table_row.html.erb
|
|
874
833
|
- app/views/spree/admin/reimbursement_types/edit.html.erb
|
|
875
834
|
- app/views/spree/admin/reimbursement_types/index.html.erb
|
|
876
835
|
- app/views/spree/admin/reimbursement_types/new.html.erb
|
|
@@ -882,15 +841,9 @@ files:
|
|
|
882
841
|
- app/views/spree/admin/reports/index.html.erb
|
|
883
842
|
- app/views/spree/admin/reports/new.html.erb
|
|
884
843
|
- app/views/spree/admin/return_authorization_reasons/_form.html.erb
|
|
885
|
-
- app/views/spree/admin/return_authorization_reasons/_table_header.html.erb
|
|
886
|
-
- app/views/spree/admin/return_authorization_reasons/_table_row.html.erb
|
|
887
844
|
- app/views/spree/admin/return_authorization_reasons/edit.html.erb
|
|
888
845
|
- app/views/spree/admin/return_authorization_reasons/index.html.erb
|
|
889
846
|
- app/views/spree/admin/return_authorization_reasons/new.html.erb
|
|
890
|
-
- app/views/spree/admin/return_authorizations/_list.html.erb
|
|
891
|
-
- app/views/spree/admin/return_authorizations/_table_header.html.erb
|
|
892
|
-
- app/views/spree/admin/return_authorizations/_table_row.html.erb
|
|
893
|
-
- app/views/spree/admin/return_authorizations/filters.html.erb
|
|
894
847
|
- app/views/spree/admin/return_authorizations/index.html.erb
|
|
895
848
|
- app/views/spree/admin/roles/_form.html.erb
|
|
896
849
|
- app/views/spree/admin/roles/edit.html.erb
|
|
@@ -966,14 +919,10 @@ files:
|
|
|
966
919
|
- app/views/spree/admin/shipments/edit.html.erb
|
|
967
920
|
- app/views/spree/admin/shipments/split.html.erb
|
|
968
921
|
- app/views/spree/admin/shipping_categories/_form.html.erb
|
|
969
|
-
- app/views/spree/admin/shipping_categories/_table_header.html.erb
|
|
970
|
-
- app/views/spree/admin/shipping_categories/_table_row.html.erb
|
|
971
922
|
- app/views/spree/admin/shipping_categories/edit.html.erb
|
|
972
923
|
- app/views/spree/admin/shipping_categories/index.html.erb
|
|
973
924
|
- app/views/spree/admin/shipping_categories/new.html.erb
|
|
974
925
|
- app/views/spree/admin/shipping_methods/_form.html.erb
|
|
975
|
-
- app/views/spree/admin/shipping_methods/_table_header.html.erb
|
|
976
|
-
- app/views/spree/admin/shipping_methods/_table_row.html.erb
|
|
977
926
|
- app/views/spree/admin/shipping_methods/edit.html.erb
|
|
978
927
|
- app/views/spree/admin/shipping_methods/form/_display.html.erb
|
|
979
928
|
- app/views/spree/admin/shipping_methods/form/_estimated_transit_business_days.html.erb
|
|
@@ -984,25 +933,17 @@ files:
|
|
|
984
933
|
- app/views/spree/admin/shipping_methods/index.html.erb
|
|
985
934
|
- app/views/spree/admin/shipping_methods/new.html.erb
|
|
986
935
|
- app/views/spree/admin/shipping_methods/update.turbo_stream.erb
|
|
987
|
-
- app/views/spree/admin/stock_items/_filters.html.erb
|
|
988
|
-
- app/views/spree/admin/stock_items/_table_header.html.erb
|
|
989
|
-
- app/views/spree/admin/stock_items/_table_row.html.erb
|
|
990
936
|
- app/views/spree/admin/stock_items/index.html.erb
|
|
991
937
|
- app/views/spree/admin/stock_items/update.turbo_stream.erb
|
|
992
938
|
- app/views/spree/admin/stock_locations/_form.html.erb
|
|
993
|
-
- app/views/spree/admin/stock_locations/_table_header.html.erb
|
|
994
|
-
- app/views/spree/admin/stock_locations/_table_row.html.erb
|
|
995
939
|
- app/views/spree/admin/stock_locations/edit.html.erb
|
|
996
940
|
- app/views/spree/admin/stock_locations/index.html.erb
|
|
997
941
|
- app/views/spree/admin/stock_locations/new.html.erb
|
|
998
942
|
- app/views/spree/admin/stock_transfers/_destination_movement_form.html.erb
|
|
999
|
-
- app/views/spree/admin/stock_transfers/_filters.html.erb
|
|
1000
943
|
- app/views/spree/admin/stock_transfers/_new_variant_modal.html.erb
|
|
1001
944
|
- app/views/spree/admin/stock_transfers/_new_variant_template.html.erb
|
|
1002
945
|
- app/views/spree/admin/stock_transfers/_source_movement_form.html.erb
|
|
1003
946
|
- app/views/spree/admin/stock_transfers/_stock_movement.html.erb
|
|
1004
|
-
- app/views/spree/admin/stock_transfers/_table_header.html.erb
|
|
1005
|
-
- app/views/spree/admin/stock_transfers/_table_row.html.erb
|
|
1006
947
|
- app/views/spree/admin/stock_transfers/index.html.erb
|
|
1007
948
|
- app/views/spree/admin/stock_transfers/new.html.erb
|
|
1008
949
|
- app/views/spree/admin/stock_transfers/show.html.erb
|
|
@@ -1057,22 +998,15 @@ files:
|
|
|
1057
998
|
- app/views/spree/admin/tables/columns/_webhook_delivery_actions.html.erb
|
|
1058
999
|
- app/views/spree/admin/tables/columns/_webhook_delivery_status.html.erb
|
|
1059
1000
|
- app/views/spree/admin/tax_categories/_form.html.erb
|
|
1060
|
-
- app/views/spree/admin/tax_categories/_table_header.html.erb
|
|
1061
|
-
- app/views/spree/admin/tax_categories/_table_row.html.erb
|
|
1062
1001
|
- app/views/spree/admin/tax_categories/edit.html.erb
|
|
1063
1002
|
- app/views/spree/admin/tax_categories/index.html.erb
|
|
1064
1003
|
- app/views/spree/admin/tax_categories/new.html.erb
|
|
1065
1004
|
- app/views/spree/admin/tax_rates/_form.html.erb
|
|
1066
|
-
- app/views/spree/admin/tax_rates/_table_header.html.erb
|
|
1067
|
-
- app/views/spree/admin/tax_rates/_table_row.html.erb
|
|
1068
1005
|
- app/views/spree/admin/tax_rates/edit.html.erb
|
|
1069
1006
|
- app/views/spree/admin/tax_rates/index.html.erb
|
|
1070
1007
|
- app/views/spree/admin/tax_rates/new.html.erb
|
|
1071
1008
|
- app/views/spree/admin/taxonomies/_form.html.erb
|
|
1072
|
-
- app/views/spree/admin/taxonomies/_table_header.html.erb
|
|
1073
|
-
- app/views/spree/admin/taxonomies/_table_row.html.erb
|
|
1074
1009
|
- app/views/spree/admin/taxonomies/edit.html.erb
|
|
1075
|
-
- app/views/spree/admin/taxonomies/filters.html.erb
|
|
1076
1010
|
- app/views/spree/admin/taxonomies/index.html.erb
|
|
1077
1011
|
- app/views/spree/admin/taxonomies/new.html.erb
|
|
1078
1012
|
- app/views/spree/admin/taxonomies/show.html.erb
|
|
@@ -1107,7 +1041,6 @@ files:
|
|
|
1107
1041
|
- app/views/spree/admin/users/_billing.html.erb
|
|
1108
1042
|
- app/views/spree/admin/users/_details.html.erb
|
|
1109
1043
|
- app/views/spree/admin/users/_extra_actions.html.erb
|
|
1110
|
-
- app/views/spree/admin/users/_filters.html.erb
|
|
1111
1044
|
- app/views/spree/admin/users/_form.html.erb
|
|
1112
1045
|
- app/views/spree/admin/users/_form_fields.html.erb
|
|
1113
1046
|
- app/views/spree/admin/users/_last_order.html.erb
|
|
@@ -1131,16 +1064,12 @@ files:
|
|
|
1131
1064
|
- app/views/spree/admin/variants/form/_dimensions.html.erb
|
|
1132
1065
|
- app/views/spree/admin/variants/form/_inventory.html.erb
|
|
1133
1066
|
- app/views/spree/admin/variants/form/_pricing.html.erb
|
|
1134
|
-
- app/views/spree/admin/webhook_deliveries/_table_header.html.erb
|
|
1135
|
-
- app/views/spree/admin/webhook_deliveries/_table_row.html.erb
|
|
1136
1067
|
- app/views/spree/admin/webhook_deliveries/index.html.erb
|
|
1137
1068
|
- app/views/spree/admin/webhook_deliveries/show.html.erb
|
|
1138
1069
|
- app/views/spree/admin/webhook_endpoints/_details.html.erb
|
|
1139
1070
|
- app/views/spree/admin/webhook_endpoints/_form.html.erb
|
|
1140
1071
|
- app/views/spree/admin/webhook_endpoints/_secret_key.html.erb
|
|
1141
1072
|
- app/views/spree/admin/webhook_endpoints/_summary.html.erb
|
|
1142
|
-
- app/views/spree/admin/webhook_endpoints/_table_header.html.erb
|
|
1143
|
-
- app/views/spree/admin/webhook_endpoints/_table_row.html.erb
|
|
1144
1073
|
- app/views/spree/admin/webhook_endpoints/edit.html.erb
|
|
1145
1074
|
- app/views/spree/admin/webhook_endpoints/index.html.erb
|
|
1146
1075
|
- app/views/spree/admin/webhook_endpoints/new.html.erb
|
|
@@ -1149,8 +1078,6 @@ files:
|
|
|
1149
1078
|
- app/views/spree/admin/zones/_country_members.html.erb
|
|
1150
1079
|
- app/views/spree/admin/zones/_form.html.erb
|
|
1151
1080
|
- app/views/spree/admin/zones/_state_members.html.erb
|
|
1152
|
-
- app/views/spree/admin/zones/_table_header.html.erb
|
|
1153
|
-
- app/views/spree/admin/zones/_table_row.html.erb
|
|
1154
1081
|
- app/views/spree/admin/zones/edit.html.erb
|
|
1155
1082
|
- app/views/spree/admin/zones/index.html.erb
|
|
1156
1083
|
- app/views/spree/admin/zones/new.html.erb
|
|
@@ -1242,9 +1169,9 @@ licenses:
|
|
|
1242
1169
|
- BSD-3-Clause
|
|
1243
1170
|
metadata:
|
|
1244
1171
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
|
1245
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v5.4.0.
|
|
1172
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v5.4.0.beta4
|
|
1246
1173
|
documentation_uri: https://docs.spreecommerce.org/
|
|
1247
|
-
source_code_uri: https://github.com/spree/spree/tree/v5.4.0.
|
|
1174
|
+
source_code_uri: https://github.com/spree/spree/tree/v5.4.0.beta4
|
|
1248
1175
|
post_install_message:
|
|
1249
1176
|
rdoc_options: []
|
|
1250
1177
|
require_paths:
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<%= search_form_for [:admin, @promotion, @search], class: "filter-wrap", data: {controller: "filters"} do |f| %>
|
|
2
|
-
<div class="flex flex-col lg:flex-row gap-2">
|
|
3
|
-
<%= render 'spree/admin/shared/filters_search_bar', param: :code_i_cont %>
|
|
4
|
-
|
|
5
|
-
<div class="flex items-center justify-between">
|
|
6
|
-
<%= dropdown do %>
|
|
7
|
-
<%= dropdown_toggle class: 'btn-light dropdown-toggle' do %>
|
|
8
|
-
<span class="text-gray-600 font-normal mr-1">
|
|
9
|
-
<%= Spree.t(:show) %>
|
|
10
|
-
</span>
|
|
11
|
-
<%= Spree.t(:all) if (params[:q] || {}).values_at(:state_eq).all?(&:blank?) %>
|
|
12
|
-
<%= Spree.t('admin.coupon_codes.used') if params.dig(:q, :state_eq) == 'used' %>
|
|
13
|
-
<%= Spree.t('admin.coupon_codes.unused') if params.dig(:q, :state_eq) == 'unused' %>
|
|
14
|
-
<% end %>
|
|
15
|
-
<%= dropdown_menu do %>
|
|
16
|
-
<%= active_link_to Spree.t(:all),
|
|
17
|
-
spree.admin_promotion_coupon_codes_path(@promotion),
|
|
18
|
-
class: 'dropdown-item',
|
|
19
|
-
active: (params[:q] || {}).values_at(:state_eq).all?(&:blank?) %>
|
|
20
|
-
<%= link_to Spree.t('admin.coupon_codes.used'),
|
|
21
|
-
spree.admin_promotion_coupon_codes_path(@promotion, q: {state_eq: :used}),
|
|
22
|
-
class: "dropdown-item #{'active' if params.dig(:q, :state_eq) == 'used'}" %>
|
|
23
|
-
<%= link_to Spree.t('admin.coupon_codes.unused'),
|
|
24
|
-
spree.admin_promotion_coupon_codes_path(@promotion, q: {state_eq: :unused}),
|
|
25
|
-
class: "dropdown-item #{'active' if params.dig(:q, :state_eq) == 'unused'}" %>
|
|
26
|
-
<% end %>
|
|
27
|
-
<% end %>
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
<div data-controller="tooltip">
|
|
31
|
-
<%= link_to spree.admin_promotion_coupon_codes_path(@promotion, format: :csv), class: 'btn btn-light' do %>
|
|
32
|
-
<%= icon 'download' %>
|
|
33
|
-
<%= Spree.t(:download) %>
|
|
34
|
-
<% end %>
|
|
35
|
-
<%= tooltip(Spree.t('admin.export_coupons')) %>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
<%= render "spree/admin/shared/filter_badge_template" %>
|
|
40
|
-
<div data-filters-target="badgesContainer" class="filter-badges-container"></div>
|
|
41
|
-
<% end %>
|
|
File without changes
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<tr id="<%= spree_dom_id coupon_code %>">
|
|
2
|
-
<td class="w-1/2">
|
|
3
|
-
<code><%= coupon_code.code.upcase %></code>
|
|
4
|
-
<%= clipboard_component(coupon_code.code.upcase) %>
|
|
5
|
-
</td>
|
|
6
|
-
<td class="w-1/4 text-sm"><%= active_badge(coupon_code.state == 'used') %></td>
|
|
7
|
-
<td class="w-1/4 text-sm"><%= spree_time(coupon_code.created_at) %></td>
|
|
8
|
-
</tr>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<%- headers = [
|
|
2
|
-
'Coupon',
|
|
3
|
-
'State',
|
|
4
|
-
'Created at'
|
|
5
|
-
]
|
|
6
|
-
-%>
|
|
7
|
-
<%= CSV.generate_line(headers).strip %>
|
|
8
|
-
<%- @coupon_codes.pluck(:code, :state, :created_at).each do |coupon_code| -%>
|
|
9
|
-
<%= CSV.generate_line([
|
|
10
|
-
coupon_code[0].upcase,
|
|
11
|
-
coupon_code[1],
|
|
12
|
-
coupon_code[2]
|
|
13
|
-
]).strip %>
|
|
14
|
-
<%- end -%>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<%= search_form_for [:admin, @search], url: spree.admin_customer_returns_path, class: "filter-wrap", data: {controller: "filters"} do |f| %>
|
|
2
|
-
<%= render "spree/admin/shared/filters_search_bar",
|
|
3
|
-
param: :number_cont,
|
|
4
|
-
label: Spree.t(:number) %>
|
|
5
|
-
|
|
6
|
-
<%= render_admin_partials(:customer_returns_filters_partials, f: f) %>
|
|
7
|
-
|
|
8
|
-
<%= render "spree/admin/shared/filter_badge_template" %>
|
|
9
|
-
|
|
10
|
-
<div data-filters-target="badgesContainer" class="filter-badges-container"></div>
|
|
11
|
-
<% end %>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<tr>
|
|
2
|
-
<th scope="col"><%= Spree.t(:number) %></th>
|
|
3
|
-
<th scope="col"><%= Spree.t(:created_at) %></th>
|
|
4
|
-
<th scope="col"><%= Spree.t(:customer) %></th>
|
|
5
|
-
<th scope="col"><%= Spree.t(:order) %></th>
|
|
6
|
-
<th scope="col"><%= Spree.t(:reimbursement_status) %></th>
|
|
7
|
-
<th scope="col"><%= Spree.t(:pre_tax_total) %></th>
|
|
8
|
-
</tr>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<% if customer_return.order.present? %>
|
|
2
|
-
<tr
|
|
3
|
-
id="<%= spree_dom_id customer_return %>"
|
|
4
|
-
data-controller="row-link"
|
|
5
|
-
class="cursor-pointer"
|
|
6
|
-
>
|
|
7
|
-
<td class="font-bold" data-action="click->row-link#openLink">
|
|
8
|
-
<% if can?(:edit, customer_return) %>
|
|
9
|
-
<%= link_to customer_return.number,
|
|
10
|
-
spree.edit_admin_order_customer_return_path( customer_return.order, customer_return),
|
|
11
|
-
data: {
|
|
12
|
-
row_link_target: "link",
|
|
13
|
-
} %>
|
|
14
|
-
<% else %>
|
|
15
|
-
<%= customer_return.number %>
|
|
16
|
-
<% end %>
|
|
17
|
-
</td>
|
|
18
|
-
<td data-action="click->row-link#openLink"><%= spree_time(customer_return.created_at) %></td>
|
|
19
|
-
<td data-action="click->row-link#openLink"><%= render "spree/admin/orders/customer_summary", order: customer_return.order %></td>
|
|
20
|
-
<td data-action="click->row-link#openLink"><%= link_to customer_return.order.number,
|
|
21
|
-
spree.edit_admin_order_path(customer_return.order) %></td>
|
|
22
|
-
<td data-action="click->row-link#openLink">
|
|
23
|
-
<% if customer_return.fully_reimbursed? %>
|
|
24
|
-
<span class="badge badge-success"><%= Spree.t(:reimbursed) %></span>
|
|
25
|
-
<% else %>
|
|
26
|
-
<span class="badge badge-inactive"><%= Spree.t(:incomplete) %></span>
|
|
27
|
-
<% end %>
|
|
28
|
-
</td>
|
|
29
|
-
<td data-action="click->row-link#openLink"><%= customer_return.display_pre_tax_total.to_html %></td>
|
|
30
|
-
</tr>
|
|
31
|
-
<% end %>
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<% frame_name ||= nil %>
|
|
2
|
-
<% filter_form_url = params[:user_id].present? ? spree.admin_user_gift_cards_path(params[:user_id]) : spree.admin_gift_cards_path %>
|
|
3
|
-
|
|
4
|
-
<%= search_form_for @search,
|
|
5
|
-
url: filter_form_url,
|
|
6
|
-
class: "filter-wrap",
|
|
7
|
-
data: {
|
|
8
|
-
controller: "filters dialog",
|
|
9
|
-
filters_url_value: request.url
|
|
10
|
-
} do |f| %>
|
|
11
|
-
<%= hidden_field_tag :frame_name, frame_name if frame_name.present? %>
|
|
12
|
-
|
|
13
|
-
<div class="flex flex-col lg:flex-row gap-2">
|
|
14
|
-
<%= render 'spree/admin/shared/filters_search_bar', param: :code_i_cont, label: Spree.t(:code) %>
|
|
15
|
-
<%= render "table_filter_dropdown" %>
|
|
16
|
-
<%= button_tag type: 'button', class: 'btn btn-light flex items-center', data: { action: 'dialog#open' } do %>
|
|
17
|
-
<%= icon "adjustments", class: "mr-1" %>
|
|
18
|
-
<%= Spree.t("admin.filters") %>
|
|
19
|
-
<% end %>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<%= drawer(id: 'gift-card-filters-drawer', controller_name: 'dialog') do %>
|
|
23
|
-
<%= drawer_header(Spree.t(:filter), 'dialog') %>
|
|
24
|
-
<div class="drawer-body">
|
|
25
|
-
<% if params[:user_id].blank? %>
|
|
26
|
-
<div class="form-group">
|
|
27
|
-
<%= f.label :users_email_eq, Spree.t(:email) %>
|
|
28
|
-
<%= f.text_field :users_email_eq, class: "form-input", data: {filters_target: :input} %>
|
|
29
|
-
</div>
|
|
30
|
-
<% end %>
|
|
31
|
-
|
|
32
|
-
<div class="form-group">
|
|
33
|
-
<%= f.label :batch_prefix_eq, Spree.t('admin.gift_card_batches.prefix') %>
|
|
34
|
-
<%= f.text_field :batch_prefix_eq, class: "form-input", data: {filters_target: :input} %>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
<%= render_admin_partials(:gift_cards_filters_partials, f: f) %>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="drawer-footer">
|
|
40
|
-
<%= drawer_discard_button('dialog') %>
|
|
41
|
-
<div class="form-actions">
|
|
42
|
-
<%= turbo_save_button_tag Spree.t(:filter_results) do %>
|
|
43
|
-
<%= icon("search") %>
|
|
44
|
-
<%= Spree.t(:filter_results) %>
|
|
45
|
-
<% end %>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
<% end %>
|
|
49
|
-
|
|
50
|
-
<%= render "spree/admin/shared/filter_badge_template" %>
|
|
51
|
-
|
|
52
|
-
<div data-filters-target="badgesContainer" class="filter-badges-container"></div>
|
|
53
|
-
<% end %>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<% link = @user.present? ? spree.admin_user_gift_card_path(gift_card, user_id: @user.id) : spree.admin_gift_card_path(gift_card) %>
|
|
2
|
-
|
|
3
|
-
<tr id="<%= spree_dom_id gift_card %>" data-controller="row-link">
|
|
4
|
-
<td class="w-1/4 py-0">
|
|
5
|
-
<%= link_to gift_card.code.upcase, link, class: 'font-bold block w-full h-full py-2', data: { 'turbo-frame': '_top', row_link_target: :link } %>
|
|
6
|
-
</td>
|
|
7
|
-
<td class="w-10 cursor-pointer" data-action="click->row-link#openLink"><%= gift_card.display_amount %></td>
|
|
8
|
-
<td class="w-10 cursor-pointer" data-action="click->row-link#openLink"><%= gift_card.display_amount_used %></td>
|
|
9
|
-
<td class="w-10 cursor-pointer" data-action="click->row-link#openLink"><%= gift_card.currency.upcase %></td>
|
|
10
|
-
<td class="w-10 cursor-pointer" data-action="click->row-link#openLink"><%= active_badge(gift_card.active?, label: gift_card.display_state) %></td>
|
|
11
|
-
<td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
|
|
12
|
-
<% if gift_card.expires_at.present? %>
|
|
13
|
-
<%= spree_date(gift_card.expires_at) %>
|
|
14
|
-
<% else %>
|
|
15
|
-
<span class="text-gray-600">
|
|
16
|
-
<%= Spree.t(:not_available) %>
|
|
17
|
-
</span>
|
|
18
|
-
<% end %></td>
|
|
19
|
-
<td class="w-15 cursor-pointer" data-action="click->row-link#openLink">
|
|
20
|
-
<% if gift_card.user.present? %>
|
|
21
|
-
<%= gift_card.user.email %>
|
|
22
|
-
<% else %>
|
|
23
|
-
<span class="text-gray-600">
|
|
24
|
-
<%= Spree.t(:not_available) %>
|
|
25
|
-
</span>
|
|
26
|
-
<% end %>
|
|
27
|
-
</td>
|
|
28
|
-
</tr>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<% if @collection.any? %>
|
|
2
|
-
<div class="table-responsive" id="listing_gift_cards">
|
|
3
|
-
<table class="table">
|
|
4
|
-
<thead class="text-gray-600">
|
|
5
|
-
<tr>
|
|
6
|
-
<th scope="col"><%= Spree.t(:code) %></th>
|
|
7
|
-
<th scope="col"><%= Spree.t(:amount) %></th>
|
|
8
|
-
<th scope="col"><%= Spree.t(:used) %></th>
|
|
9
|
-
<th scope="col"><%= Spree.t(:currency) %></th>
|
|
10
|
-
<th scope="col"><%= Spree.t(:status) %></th>
|
|
11
|
-
<th scope="col"><%= Spree.t(:expires_at) %></th>
|
|
12
|
-
<th scope="col"><%= Spree.t(:customer) %></th>
|
|
13
|
-
</tr>
|
|
14
|
-
</thead>
|
|
15
|
-
<tbody>
|
|
16
|
-
<%= render collection: @collection, partial: 'spree/admin/gift_cards/gift_card' %>
|
|
17
|
-
</tbody>
|
|
18
|
-
</table>
|
|
19
|
-
</div>
|
|
20
|
-
<%= render partial: 'spree/admin/shared/index_table_options', locals: { collection: @collection } %>
|
|
21
|
-
<% else %>
|
|
22
|
-
<% new_object_url = @user.present? ? spree.new_admin_user_gift_card_path(@user) : spree.new_admin_gift_card_path %>
|
|
23
|
-
<%= render 'spree/admin/shared/no_resource_found', model_class: Spree::GiftCard, new_object_url: new_object_url %>
|
|
24
|
-
<% end %>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<%= dropdown do %>
|
|
2
|
-
<%= dropdown_toggle class: 'btn-light dropdown-toggle' do %>
|
|
3
|
-
<span class="text-gray-600 font-normal">Show:</span>
|
|
4
|
-
<%= gift_cards_filter_dropdown_value %>
|
|
5
|
-
<% end %>
|
|
6
|
-
<%= dropdown_menu do %>
|
|
7
|
-
|
|
8
|
-
<%= active_link_to Spree.t('admin.gift_cards.all_statuses'), params.to_unsafe_h.deep_merge({page: nil, q: {active: nil, expired: nil, redeemed: nil, partially_redeemed: nil}}), class: 'dropdown-item', active: (params[:q] || {}).values_at(*%w[active expired redeemed partially_redeemed] ).all?(&:blank?) %>
|
|
9
|
-
|
|
10
|
-
<%= link_to Spree.t('admin.gift_cards.active'),
|
|
11
|
-
params.to_unsafe_h.deep_merge({page: nil, q: {active: true, expired: nil, redeemed: nil, partially_redeemed: nil}}),
|
|
12
|
-
class: "dropdown-item #{'active' if params[:q] && params[:q][:active].present?}" %>
|
|
13
|
-
|
|
14
|
-
<%= link_to params.to_unsafe_h.deep_merge({page: nil, q: {expired: true, active: nil, redeemed: nil, partially_redeemed: nil}}),
|
|
15
|
-
class: "dropdown-item #{'active' if params[:q] && params[:q][:expired].present?}" do %>
|
|
16
|
-
<%= Spree.t(:expired) %>
|
|
17
|
-
<% end %>
|
|
18
|
-
|
|
19
|
-
<%= link_to params.to_unsafe_h.deep_merge({page: nil, q: {redeemed: true, active: nil, expired: nil, partially_redeemed: nil}}),
|
|
20
|
-
class: "dropdown-item #{'active' if params[:q] && params[:q][:redeemed].present?}" do %>
|
|
21
|
-
<%= Spree.t('admin.gift_cards.redeemed') %>
|
|
22
|
-
<% end %>
|
|
23
|
-
|
|
24
|
-
<% end %>
|
|
25
|
-
<% end %>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<%= search_form_for [:admin, @search], class: "filter-wrap", data: {controller: "filters auto-submit"} do |f| %>
|
|
2
|
-
<div class="flex">
|
|
3
|
-
<%= render 'spree/admin/shared/filters_search_bar', param: :multi_search, label: Spree.t(:title) %>
|
|
4
|
-
|
|
5
|
-
<%= select_tag 'q[resource_type_eq]',
|
|
6
|
-
options_for_select(metafield_definition_resource_types, params.dig(:q, :resource_type_eq)),
|
|
7
|
-
{
|
|
8
|
-
include_blank: Spree.t(:all),
|
|
9
|
-
class: 'form-select w-20',
|
|
10
|
-
data: {
|
|
11
|
-
filters_target: :input,
|
|
12
|
-
action: 'auto-submit#submit'
|
|
13
|
-
}
|
|
14
|
-
} %>
|
|
15
|
-
</div>
|
|
16
|
-
<%= render "spree/admin/shared/filter_badge_template" %>
|
|
17
|
-
<div data-filters-target="badgesContainer" class="filter-badges-container"></div>
|
|
18
|
-
<% end %>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<thead>
|
|
2
|
-
<tr>
|
|
3
|
-
<th><%= Spree.t(:key) %></th>
|
|
4
|
-
<th><%= Spree.t(:name) %></th>
|
|
5
|
-
<th><%= Spree.t(:resource) %></th>
|
|
6
|
-
<th><%= Spree.t(:type) %></th>
|
|
7
|
-
<th><%= Spree.t(:display_on) %></th>
|
|
8
|
-
<th><%= Spree.t('admin.metafield_definitions.used_in') %></th>
|
|
9
|
-
<th></th>
|
|
10
|
-
</tr>
|
|
11
|
-
</thead>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<tr id="<%= spree_dom_id(metafield_definition) %>">
|
|
2
|
-
<td><code><%= metafield_definition.full_key %></code></td>
|
|
3
|
-
<td><%= metafield_definition.name %></td>
|
|
4
|
-
<td><%= metafield_definition.resource_type.demodulize.titleize %></td>
|
|
5
|
-
<td><span class="badge badge-light"><%= metafield_definition.metafield_type.demodulize.titleize %></span></td>
|
|
6
|
-
<td>
|
|
7
|
-
<%= form_with model: metafield_definition, url: admin_metafield_definition_path(metafield_definition), method: :patch, data: { controller: 'auto-submit' } do |f| %>
|
|
8
|
-
<%= f.select :display_on, display_on_options(Spree::MetafieldDefinition), {}, { class: 'form-select form-select-sm', data: { action: 'auto-submit#submit' } } %>
|
|
9
|
-
<% end %>
|
|
10
|
-
</td>
|
|
11
|
-
<td>
|
|
12
|
-
<% if metafield_definition.metafields.count.positive? %>
|
|
13
|
-
<%= metafield_definition.metafields.count %>
|
|
14
|
-
<%= Spree.t(metafield_definition.resource_type.demodulize.pluralize.to_sym) %>
|
|
15
|
-
<% else %>
|
|
16
|
-
<span class="text-gray-600"><%= Spree.t(:not_available) %></span>
|
|
17
|
-
<% end %>
|
|
18
|
-
</td>
|
|
19
|
-
<td class="text-right">
|
|
20
|
-
<%= link_to_edit(metafield_definition, data: { turbo_frame: '_top' }) %>
|
|
21
|
-
</td>
|
|
22
|
-
</tr>
|