solidus_admin 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/components/solidus_admin/adjustment_reasons/index/component.rb +9 -19
- data/app/components/solidus_admin/base_component.rb +29 -1
- data/app/components/solidus_admin/option_types/index/component.rb +20 -6
- data/app/components/solidus_admin/orders/index/component.rb +20 -15
- data/app/components/solidus_admin/orders/index/component.yml +0 -1
- data/app/components/solidus_admin/payment_methods/index/component.rb +28 -18
- data/app/components/solidus_admin/payment_methods/index/component.yml +0 -5
- data/app/components/solidus_admin/products/index/component.rb +17 -10
- data/app/components/solidus_admin/products/index/component.yml +0 -2
- data/app/components/solidus_admin/promotion_categories/index/component.rb +12 -13
- data/app/components/solidus_admin/promotions/index/component.rb +17 -10
- data/app/components/solidus_admin/promotions/index/component.yml +0 -4
- data/app/components/solidus_admin/properties/index/component.rb +17 -18
- data/app/components/solidus_admin/refund_reasons/index/component.rb +18 -18
- data/app/components/solidus_admin/refunds_and_returns/component.rb +33 -13
- data/app/components/solidus_admin/reimbursement_types/index/component.rb +7 -25
- data/app/components/solidus_admin/return_reasons/index/component.rb +9 -19
- data/app/components/solidus_admin/shipping/component.rb +23 -11
- data/app/components/solidus_admin/shipping_categories/index/component.rb +18 -18
- data/app/components/solidus_admin/shipping_methods/index/component.rb +18 -18
- data/app/components/solidus_admin/stock_items/index/component.rb +9 -15
- data/app/components/solidus_admin/stock_locations/index/component.rb +18 -10
- data/app/components/solidus_admin/stock_locations/index/component.yml +0 -3
- data/app/components/solidus_admin/store_credit_reasons/index/component.rb +18 -18
- data/app/components/solidus_admin/stores/index/component.rb +17 -18
- data/app/components/solidus_admin/tax_categories/index/component.rb +20 -20
- data/app/components/solidus_admin/tax_rates/index/component.rb +18 -14
- data/app/components/solidus_admin/taxes/component.rb +8 -8
- data/app/components/solidus_admin/taxonomies/index/component.rb +17 -11
- data/app/components/solidus_admin/ui/pages/index/component.html.erb +30 -0
- data/app/components/solidus_admin/ui/pages/index/component.rb +119 -0
- data/app/components/solidus_admin/ui/table/component.html.erb +2 -1
- data/app/components/solidus_admin/ui/table/component.rb +1 -1
- data/app/components/solidus_admin/users/index/component.rb +17 -10
- data/app/components/solidus_admin/users/index/component.yml +0 -3
- data/app/components/solidus_admin/zones/index/component.rb +18 -10
- data/app/controllers/solidus_admin/promotion_categories_controller.rb +0 -9
- data/app/controllers/solidus_admin/properties_controller.rb +1 -1
- data/app/views/layouts/solidus_admin/preview.html.erb +2 -0
- data/config/initializers/view_component.rb +1 -1
- data/lib/solidus_admin/configuration.rb +3 -1
- data/lib/solidus_admin/version.rb +1 -1
- metadata +6 -43
- data/app/components/solidus_admin/adjustment_reasons/index/component.html.erb +0 -32
- data/app/components/solidus_admin/adjustment_reasons/index/component.yml +0 -4
- data/app/components/solidus_admin/option_types/index/component.html.erb +0 -30
- data/app/components/solidus_admin/orders/index/component.html.erb +0 -35
- data/app/components/solidus_admin/payment_methods/index/component.html.erb +0 -38
- data/app/components/solidus_admin/products/index/component.html.erb +0 -34
- data/app/components/solidus_admin/promotion_categories/index/component.html.erb +0 -26
- data/app/components/solidus_admin/promotion_categories/index/component.yml +0 -4
- data/app/components/solidus_admin/promotions/index/component.html.erb +0 -34
- data/app/components/solidus_admin/properties/index/component.html.erb +0 -34
- data/app/components/solidus_admin/properties/index/component.yml +0 -4
- data/app/components/solidus_admin/refund_reasons/index/component.html.erb +0 -31
- data/app/components/solidus_admin/refund_reasons/index/component.yml +0 -4
- data/app/components/solidus_admin/refunds_and_returns/component.html.erb +0 -26
- data/app/components/solidus_admin/reimbursement_types/index/component.html.erb +0 -22
- data/app/components/solidus_admin/reimbursement_types/index/component.yml +0 -4
- data/app/components/solidus_admin/return_reasons/index/component.html.erb +0 -31
- data/app/components/solidus_admin/return_reasons/index/component.yml +0 -4
- data/app/components/solidus_admin/shipping/component.html.erb +0 -30
- data/app/components/solidus_admin/shipping_categories/index/component.html.erb +0 -32
- data/app/components/solidus_admin/shipping_categories/index/component.yml +0 -4
- data/app/components/solidus_admin/shipping_methods/index/component.html.erb +0 -32
- data/app/components/solidus_admin/shipping_methods/index/component.yml +0 -4
- data/app/components/solidus_admin/stock_items/index/component.html.erb +0 -26
- data/app/components/solidus_admin/stock_locations/index/component.html.erb +0 -32
- data/app/components/solidus_admin/store_credit_reasons/index/component.html.erb +0 -31
- data/app/components/solidus_admin/store_credit_reasons/index/component.yml +0 -4
- data/app/components/solidus_admin/stores/index/component.html.erb +0 -34
- data/app/components/solidus_admin/stores/index/component.yml +0 -4
- data/app/components/solidus_admin/tax_categories/index/component.html.erb +0 -32
- data/app/components/solidus_admin/tax_categories/index/component.yml +0 -6
- data/app/components/solidus_admin/tax_rates/index/component.html.erb +0 -32
- data/app/components/solidus_admin/tax_rates/index/component.yml +0 -4
- data/app/components/solidus_admin/taxes/component.html.erb +0 -24
- data/app/components/solidus_admin/taxonomies/index/component.html.erb +0 -28
- data/app/components/solidus_admin/taxonomies/index/component.yml +0 -4
- data/app/components/solidus_admin/users/index/component.html.erb +0 -34
- data/app/components/solidus_admin/zones/index/component.html.erb +0 -35
- data/app/components/solidus_admin/zones/index/component.yml +0 -4
- /data/app/components/solidus_admin/{option_types → ui/pages}/index/component.yml +0 -0
@@ -1,34 +0,0 @@
|
|
1
|
-
<%= page do %>
|
2
|
-
<%= page_header do %>
|
3
|
-
<%= page_header_title title %>
|
4
|
-
<%= page_header_actions do %>
|
5
|
-
<%= render component("ui/button").new(
|
6
|
-
tag: :a,
|
7
|
-
text: t('.add'),
|
8
|
-
href: spree.new_admin_promotion_path,
|
9
|
-
icon: "add-line",
|
10
|
-
) %>
|
11
|
-
<% end %>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<%= render component('ui/table').new(
|
15
|
-
id: stimulus_id,
|
16
|
-
data: {
|
17
|
-
class: Spree::Promotion,
|
18
|
-
rows: @page.records,
|
19
|
-
url: ->(promotion) { spree.admin_promotion_path(promotion) },
|
20
|
-
prev: prev_page_path,
|
21
|
-
next: next_page_path,
|
22
|
-
columns: columns,
|
23
|
-
batch_actions: batch_actions,
|
24
|
-
},
|
25
|
-
search: {
|
26
|
-
name: :q,
|
27
|
-
value: params[:q],
|
28
|
-
url: solidus_admin.promotions_path,
|
29
|
-
searchbar_key: :name_or_codes_value_or_path_or_description_cont,
|
30
|
-
scopes: scopes,
|
31
|
-
filters: filters,
|
32
|
-
},
|
33
|
-
) %>
|
34
|
-
<% end %>
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<%= page do %>
|
2
|
-
<%= page_header do %>
|
3
|
-
<%= page_header_title title %>
|
4
|
-
<%= page_header_actions do %>
|
5
|
-
<%= render component("ui/button").new(
|
6
|
-
tag: :a,
|
7
|
-
text: t('.add'),
|
8
|
-
href: spree.new_admin_property_path,
|
9
|
-
icon: "add-line",
|
10
|
-
) %>
|
11
|
-
<% end %>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<%= render component('ui/table').new(
|
15
|
-
id: stimulus_id,
|
16
|
-
data: {
|
17
|
-
class: Spree::Property,
|
18
|
-
rows: @page.records,
|
19
|
-
url: ->(property) { solidus_admin.properties_path(property) },
|
20
|
-
prev: prev_page_path,
|
21
|
-
next: next_page_path,
|
22
|
-
columns: columns,
|
23
|
-
batch_actions: batch_actions,
|
24
|
-
},
|
25
|
-
search: {
|
26
|
-
name: :q,
|
27
|
-
value: params[:q],
|
28
|
-
url: solidus_admin.properties_path,
|
29
|
-
searchbar_key: :name_cont,
|
30
|
-
scopes: scopes,
|
31
|
-
filters: filters,
|
32
|
-
},
|
33
|
-
) %>
|
34
|
-
<% end %>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<%= render component('refunds_and_returns').new(current_class: Spree::RefundReason) do |layout| %>
|
2
|
-
<% layout.with_actions do %>
|
3
|
-
<%= render component("ui/button").new(
|
4
|
-
tag: :a,
|
5
|
-
text: t('.add'),
|
6
|
-
href: spree.new_admin_refund_reason_path,
|
7
|
-
icon: "add-line",
|
8
|
-
class: "align-self-end w-full",
|
9
|
-
) %>
|
10
|
-
<% end %>
|
11
|
-
<%= render component('ui/table').new(
|
12
|
-
id: stimulus_id,
|
13
|
-
data: {
|
14
|
-
class: Spree::RefundReason,
|
15
|
-
rows: @page.records,
|
16
|
-
url: ->(refund_reason) { spree.edit_admin_refund_reason_path(refund_reason) },
|
17
|
-
prev: prev_page_path,
|
18
|
-
next: next_page_path,
|
19
|
-
columns: columns,
|
20
|
-
batch_actions: batch_actions,
|
21
|
-
},
|
22
|
-
search: {
|
23
|
-
name: :q,
|
24
|
-
value: params[:q],
|
25
|
-
url: solidus_admin.refund_reasons_path,
|
26
|
-
searchbar_key: :name_or_code_cont,
|
27
|
-
scopes: scopes,
|
28
|
-
filters: filters,
|
29
|
-
},
|
30
|
-
) %>
|
31
|
-
<% end %>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<%= page do %>
|
2
|
-
<%= page_header do %>
|
3
|
-
<%= page_header_title safe_join([
|
4
|
-
tag.div(t(".title")),
|
5
|
-
tag.div(t(".subtitle"), class: "font-normal text-sm text-gray-500"),
|
6
|
-
]) %>
|
7
|
-
<% end %>
|
8
|
-
<%= page_header do %>
|
9
|
-
<% title = capture do %>
|
10
|
-
<% tabs.each do |tab_class, href|%>
|
11
|
-
<%= render component('ui/button').new(
|
12
|
-
tag: :a,
|
13
|
-
scheme: :ghost,
|
14
|
-
href: href,
|
15
|
-
text: tab_class.model_name.human.pluralize,
|
16
|
-
"aria-current" => tab_class == @current_class,
|
17
|
-
) %>
|
18
|
-
<% end %>
|
19
|
-
<% end %>
|
20
|
-
<%= page_header_title title %>
|
21
|
-
<%= page_header_actions do %>
|
22
|
-
<%= actions %>
|
23
|
-
<% end %>
|
24
|
-
<% end %>
|
25
|
-
<%= content %>
|
26
|
-
<% end %>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<%= render component('refunds_and_returns').new(current_class: Spree::ReimbursementType) do |layout| %>
|
2
|
-
<%= render component('ui/table').new(
|
3
|
-
id: stimulus_id,
|
4
|
-
data: {
|
5
|
-
class: Spree::ReimbursementType,
|
6
|
-
rows: @page.records,
|
7
|
-
url: nil,
|
8
|
-
prev: prev_page_path,
|
9
|
-
next: next_page_path,
|
10
|
-
columns: columns,
|
11
|
-
batch_actions: batch_actions,
|
12
|
-
},
|
13
|
-
search: {
|
14
|
-
name: :q,
|
15
|
-
value: params[:q],
|
16
|
-
url: solidus_admin.reimbursement_types_path,
|
17
|
-
searchbar_key: :name_cont,
|
18
|
-
scopes: scopes,
|
19
|
-
filters: filters,
|
20
|
-
},
|
21
|
-
) %>
|
22
|
-
<% end %>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<%= render component('refunds_and_returns').new(current_class: Spree::ReturnReason) do |layout| %>
|
2
|
-
<% layout.with_actions do %>
|
3
|
-
<%= render component("ui/button").new(
|
4
|
-
tag: :a,
|
5
|
-
text: t('.add'),
|
6
|
-
href: spree.new_admin_return_reason_path,
|
7
|
-
icon: "add-line",
|
8
|
-
class: "align-self-end w-full",
|
9
|
-
) %>
|
10
|
-
<% end %>
|
11
|
-
<%= render component('ui/table').new(
|
12
|
-
id: stimulus_id,
|
13
|
-
data: {
|
14
|
-
class: Spree::ReturnReason,
|
15
|
-
rows: @page.records,
|
16
|
-
url: ->(return_reason) { spree.edit_admin_return_reason_path(return_reason) },
|
17
|
-
prev: prev_page_path,
|
18
|
-
next: next_page_path,
|
19
|
-
columns: columns,
|
20
|
-
batch_actions: batch_actions,
|
21
|
-
},
|
22
|
-
search: {
|
23
|
-
name: :q,
|
24
|
-
value: params[:q],
|
25
|
-
url: solidus_admin.return_reasons_path,
|
26
|
-
searchbar_key: :name_cont,
|
27
|
-
scopes: scopes,
|
28
|
-
filters: filters,
|
29
|
-
},
|
30
|
-
) %>
|
31
|
-
<% end %>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
<%= page do %>
|
2
|
-
<%= page_header do %>
|
3
|
-
<%= page_header_title safe_join([
|
4
|
-
tag.div(t(".title")),
|
5
|
-
tag.div(t(".subtitle"), class: "font-normal text-sm text-gray-500"),
|
6
|
-
]) %>
|
7
|
-
<% end %>
|
8
|
-
|
9
|
-
<%= page_header do %>
|
10
|
-
<% title = capture do %>
|
11
|
-
<% tabs.each do |tab_class, href|%>
|
12
|
-
<%= render component('ui/button').new(
|
13
|
-
tag: :a,
|
14
|
-
scheme: :ghost,
|
15
|
-
href: href,
|
16
|
-
text: tab_class.model_name.human.pluralize,
|
17
|
-
"aria-current" => tab_class == @current_class,
|
18
|
-
) %>
|
19
|
-
<% end %>
|
20
|
-
<% end %>
|
21
|
-
|
22
|
-
<%= page_header_title title %>
|
23
|
-
|
24
|
-
<%= page_header_actions do %>
|
25
|
-
<%= actions %>
|
26
|
-
<% end %>
|
27
|
-
<% end %>
|
28
|
-
|
29
|
-
<%= content %>
|
30
|
-
<% end %>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<%= render component('shipping').new(current_class: Spree::ShippingCategory) do |layout| %>
|
2
|
-
<% layout.with_actions do %>
|
3
|
-
<%= render component("ui/button").new(
|
4
|
-
tag: :a,
|
5
|
-
text: t('.add'),
|
6
|
-
href: spree.new_admin_shipping_category_path,
|
7
|
-
icon: "add-line",
|
8
|
-
class: "align-self-end w-full",
|
9
|
-
) %>
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
<%= render component('ui/table').new(
|
13
|
-
id: stimulus_id,
|
14
|
-
data: {
|
15
|
-
class: Spree::ShippingCategory,
|
16
|
-
rows: @page.records,
|
17
|
-
url: ->(shipping_category) { spree.edit_admin_shipping_category_path(shipping_category) },
|
18
|
-
prev: prev_page_path,
|
19
|
-
next: next_page_path,
|
20
|
-
columns: columns,
|
21
|
-
batch_actions: batch_actions,
|
22
|
-
},
|
23
|
-
search: {
|
24
|
-
name: :q,
|
25
|
-
value: params[:q],
|
26
|
-
url: solidus_admin.shipping_categories_path,
|
27
|
-
searchbar_key: :name_or_description_cont,
|
28
|
-
scopes: scopes,
|
29
|
-
filters: filters,
|
30
|
-
},
|
31
|
-
) %>
|
32
|
-
<% end %>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<%= render component('shipping').new(current_class: Spree::ShippingMethod) do |layout| %>
|
2
|
-
<% layout.with_actions do %>
|
3
|
-
<%= render component("ui/button").new(
|
4
|
-
tag: :a,
|
5
|
-
text: t('.add'),
|
6
|
-
href: spree.new_admin_shipping_method_path,
|
7
|
-
icon: "add-line",
|
8
|
-
class: "align-self-end w-full",
|
9
|
-
) %>
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
<%= render component('ui/table').new(
|
13
|
-
id: stimulus_id,
|
14
|
-
data: {
|
15
|
-
class: Spree::ShippingMethod,
|
16
|
-
rows: @page.records,
|
17
|
-
url: ->(shipping_method) { spree.edit_admin_shipping_method_path(shipping_method) },
|
18
|
-
prev: prev_page_path,
|
19
|
-
next: next_page_path,
|
20
|
-
columns: columns,
|
21
|
-
batch_actions: batch_actions,
|
22
|
-
},
|
23
|
-
search: {
|
24
|
-
name: :q,
|
25
|
-
value: params[:q],
|
26
|
-
url: solidus_admin.shipping_methods_path,
|
27
|
-
searchbar_key: :name_or_description_cont,
|
28
|
-
scopes: scopes,
|
29
|
-
filters: filters,
|
30
|
-
},
|
31
|
-
) %>
|
32
|
-
<% end %>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<%= page do %>
|
2
|
-
<%= page_header do %>
|
3
|
-
<%= page_header_title title %>
|
4
|
-
<% end %>
|
5
|
-
|
6
|
-
<%= render component('ui/table').new(
|
7
|
-
id: stimulus_id,
|
8
|
-
data: {
|
9
|
-
class: Spree::StockItem,
|
10
|
-
rows: @page.records,
|
11
|
-
prev: prev_page_path,
|
12
|
-
next: next_page_path,
|
13
|
-
columns: columns,
|
14
|
-
batch_actions: batch_actions,
|
15
|
-
url: -> { solidus_admin.edit_stock_item_path(_1, page: params[:page], q: permitted_query_params) },
|
16
|
-
},
|
17
|
-
search: {
|
18
|
-
name: :q,
|
19
|
-
value: permitted_query_params,
|
20
|
-
url: solidus_admin.stock_items_path,
|
21
|
-
searchbar_key: :variant_product_name_or_variant_sku_or_variant_option_values_name_or_variant_option_values_presentation_cont,
|
22
|
-
scopes: scopes,
|
23
|
-
filters: filters,
|
24
|
-
},
|
25
|
-
) %>
|
26
|
-
<% end %>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<%= render component('shipping').new(current_class: Spree::StockLocation) do |layout| %>
|
2
|
-
<% layout.with_actions do %>
|
3
|
-
<%= render component("ui/button").new(
|
4
|
-
tag: :a,
|
5
|
-
text: t('.add'),
|
6
|
-
href: spree.new_admin_stock_location_path,
|
7
|
-
icon: "add-line",
|
8
|
-
class: "align-self-end w-full",
|
9
|
-
) %>
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
<%= render component('ui/table').new(
|
13
|
-
id: stimulus_id,
|
14
|
-
data: {
|
15
|
-
class: Spree::StockLocation,
|
16
|
-
rows: @page.records,
|
17
|
-
url: ->(stock_location) { spree.edit_admin_stock_location_path(stock_location) },
|
18
|
-
prev: prev_page_path,
|
19
|
-
next: next_page_path,
|
20
|
-
columns: columns,
|
21
|
-
batch_actions: batch_actions,
|
22
|
-
},
|
23
|
-
search: {
|
24
|
-
name: :q,
|
25
|
-
value: params[:q],
|
26
|
-
url: solidus_admin.stock_locations_path,
|
27
|
-
searchbar_key: :name_or_description_cont,
|
28
|
-
scopes: scopes,
|
29
|
-
filters: filters,
|
30
|
-
},
|
31
|
-
) %>
|
32
|
-
<% end %>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<%= render component('refunds_and_returns').new(current_class: Spree::StoreCreditReason) do |layout| %>
|
2
|
-
<% layout.with_actions do %>
|
3
|
-
<%= render component("ui/button").new(
|
4
|
-
tag: :a,
|
5
|
-
text: t('.add'),
|
6
|
-
href: spree.new_admin_store_credit_reason_path,
|
7
|
-
icon: "add-line",
|
8
|
-
class: "align-self-end w-full",
|
9
|
-
) %>
|
10
|
-
<% end %>
|
11
|
-
<%= render component('ui/table').new(
|
12
|
-
id: stimulus_id,
|
13
|
-
data: {
|
14
|
-
class: Spree::StoreCreditReason,
|
15
|
-
rows: @page.records,
|
16
|
-
url: ->(store_credit_reason) { spree.edit_admin_store_credit_reason_path(store_credit_reason) },
|
17
|
-
prev: prev_page_path,
|
18
|
-
next: next_page_path,
|
19
|
-
columns: columns,
|
20
|
-
batch_actions: batch_actions,
|
21
|
-
},
|
22
|
-
search: {
|
23
|
-
name: :q,
|
24
|
-
value: params[:q],
|
25
|
-
url: solidus_admin.store_credit_reasons_path,
|
26
|
-
searchbar_key: :name_cont,
|
27
|
-
scopes: scopes,
|
28
|
-
filters: filters,
|
29
|
-
},
|
30
|
-
) %>
|
31
|
-
<% end %>
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<%= page do %>
|
2
|
-
<%= page_header do %>
|
3
|
-
<%= page_header_title title %>
|
4
|
-
<%= page_header_actions do %>
|
5
|
-
<%= render component("ui/button").new(
|
6
|
-
tag: :a,
|
7
|
-
text: t('.add'),
|
8
|
-
href: spree.new_admin_store_path,
|
9
|
-
icon: "add-line",
|
10
|
-
) %>
|
11
|
-
<% end %>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<%= render component('ui/table').new(
|
15
|
-
id: stimulus_id,
|
16
|
-
data: {
|
17
|
-
class: Spree::Store,
|
18
|
-
rows: @page.records,
|
19
|
-
url: ->(store) { spree.edit_admin_store_path(store) },
|
20
|
-
prev: prev_page_path,
|
21
|
-
next: next_page_path,
|
22
|
-
columns: columns,
|
23
|
-
batch_actions: batch_actions,
|
24
|
-
},
|
25
|
-
search: {
|
26
|
-
name: :q,
|
27
|
-
value: params[:q],
|
28
|
-
url: solidus_admin.stores_path,
|
29
|
-
searchbar_key: :name_or_url_or_code_cont,
|
30
|
-
scopes: scopes,
|
31
|
-
filters: filters,
|
32
|
-
},
|
33
|
-
) %>
|
34
|
-
<% end %>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<%= render component('taxes').new(model_class: Spree::TaxCategory) do |layout| %>
|
2
|
-
<% layout.with_actions do %>
|
3
|
-
<%= render component("ui/button").new(
|
4
|
-
tag: :a,
|
5
|
-
text: t('.add'),
|
6
|
-
href: spree.new_admin_tax_category_path,
|
7
|
-
icon: "add-line",
|
8
|
-
class: "align-self-end w-full",
|
9
|
-
) %>
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
<%= render component('ui/table').new(
|
13
|
-
id: stimulus_id,
|
14
|
-
data: {
|
15
|
-
class: Spree::TaxCategory,
|
16
|
-
rows: @page.records,
|
17
|
-
url: ->(tax_category) { spree.edit_admin_tax_category_path(tax_category) },
|
18
|
-
prev: prev_page_path,
|
19
|
-
next: next_page_path,
|
20
|
-
columns: columns,
|
21
|
-
batch_actions: batch_actions,
|
22
|
-
},
|
23
|
-
search: {
|
24
|
-
name: :q,
|
25
|
-
value: params[:q],
|
26
|
-
url: solidus_admin.tax_categories_path,
|
27
|
-
searchbar_key: :name_or_description_cont,
|
28
|
-
scopes: scopes,
|
29
|
-
filters: filters,
|
30
|
-
},
|
31
|
-
) %>
|
32
|
-
<% end %>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
<%= render component('taxes').new(model_class: Spree::TaxRate) do |layout| %>
|
2
|
-
<% layout.with_actions do %>
|
3
|
-
<%= render component("ui/button").new(
|
4
|
-
tag: :a,
|
5
|
-
text: t('.add'),
|
6
|
-
href: spree.new_admin_tax_rate_path,
|
7
|
-
icon: "add-line",
|
8
|
-
class: "align-self-end w-full",
|
9
|
-
) %>
|
10
|
-
<% end %>
|
11
|
-
|
12
|
-
<%= render component('ui/table').new(
|
13
|
-
id: stimulus_id,
|
14
|
-
data: {
|
15
|
-
class: Spree::TaxRate,
|
16
|
-
rows: @page.records,
|
17
|
-
url: ->(tax_rate) { spree.edit_admin_tax_rate_path(tax_rate) },
|
18
|
-
prev: prev_page_path,
|
19
|
-
next: next_page_path,
|
20
|
-
columns: columns,
|
21
|
-
batch_actions: batch_actions,
|
22
|
-
},
|
23
|
-
search: {
|
24
|
-
name: :q,
|
25
|
-
value: params[:q],
|
26
|
-
url: solidus_admin.tax_rates_path,
|
27
|
-
searchbar_key: :name_or_description_cont,
|
28
|
-
scopes: scopes,
|
29
|
-
filters: filters,
|
30
|
-
},
|
31
|
-
) %>
|
32
|
-
<% end %>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<%= page do %>
|
2
|
-
<%= page_header do %>
|
3
|
-
<%= page_header_title safe_join([
|
4
|
-
tag.div(t(".title")),
|
5
|
-
tag.div(t(".subtitle"), class: "font-normal text-sm text-gray-500"),
|
6
|
-
]) %>
|
7
|
-
<% end %>
|
8
|
-
|
9
|
-
<%= page_header do %>
|
10
|
-
<% title = capture do %>
|
11
|
-
<% tabs.each do %>
|
12
|
-
<%= render(component('ui/button').new(tag: :a, scheme: :ghost, **_1)) %>
|
13
|
-
<% end %>
|
14
|
-
<% end %>
|
15
|
-
|
16
|
-
<%= page_header_title title %>
|
17
|
-
|
18
|
-
<%= page_header_actions do %>
|
19
|
-
<%= actions %>
|
20
|
-
<% end %>
|
21
|
-
<% end %>
|
22
|
-
|
23
|
-
<%= content %>
|
24
|
-
<% end %>
|
@@ -1,28 +0,0 @@
|
|
1
|
-
<%= page do %>
|
2
|
-
<%= page_header do %>
|
3
|
-
<%= page_header_title title %>
|
4
|
-
<%= page_header_actions do %>
|
5
|
-
<%= render component("ui/button").new(
|
6
|
-
tag: :a,
|
7
|
-
text: t('.add'),
|
8
|
-
href: spree.new_admin_taxonomy_path,
|
9
|
-
icon: "add-line",
|
10
|
-
) %>
|
11
|
-
<% end %>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<%= render component('ui/table').new(
|
15
|
-
id: stimulus_id,
|
16
|
-
data: {
|
17
|
-
class: Spree::Taxonomy,
|
18
|
-
rows: @page.records,
|
19
|
-
url: ->(taxonomy) { spree.edit_admin_taxonomy_path(taxonomy) },
|
20
|
-
columns: columns,
|
21
|
-
batch_actions: batch_actions,
|
22
|
-
},
|
23
|
-
sortable: {
|
24
|
-
url: ->(taxonomy) { solidus_admin.move_taxonomy_path(taxonomy) },
|
25
|
-
param: 'position',
|
26
|
-
},
|
27
|
-
) %>
|
28
|
-
<% end %>
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<%= page do %>
|
2
|
-
<%= page_header do %>
|
3
|
-
<%= page_header_title title %>
|
4
|
-
<%= page_header_actions do %>
|
5
|
-
<%= render component("ui/button").new(
|
6
|
-
tag: :a,
|
7
|
-
text: t('.add'),
|
8
|
-
href: spree.new_admin_user_path,
|
9
|
-
icon: "add-line",
|
10
|
-
) %>
|
11
|
-
<% end %>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<%= render component('ui/table').new(
|
15
|
-
id: stimulus_id,
|
16
|
-
data: {
|
17
|
-
class: Spree.user_class,
|
18
|
-
rows: @page.records,
|
19
|
-
url: ->(user) { spree.admin_user_path(user) },
|
20
|
-
prev: prev_page_path,
|
21
|
-
next: next_page_path,
|
22
|
-
columns: columns,
|
23
|
-
batch_actions: batch_actions,
|
24
|
-
},
|
25
|
-
search: {
|
26
|
-
name: :q,
|
27
|
-
value: params[:q],
|
28
|
-
url: solidus_admin.users_path,
|
29
|
-
searchbar_key: :email_cont,
|
30
|
-
scopes: scopes,
|
31
|
-
filters: filters,
|
32
|
-
},
|
33
|
-
) %>
|
34
|
-
<% end %>
|
@@ -1,35 +0,0 @@
|
|
1
|
-
<%= page do %>
|
2
|
-
<%= page_header do %>
|
3
|
-
<%= page_header_title title %>
|
4
|
-
<%= page_header_actions do %>
|
5
|
-
<%= render component("ui/button").new(
|
6
|
-
tag: :a,
|
7
|
-
text: t('.add'),
|
8
|
-
href: spree.new_admin_zone_path,
|
9
|
-
icon: "add-line",
|
10
|
-
class: "align-self-end w-full",
|
11
|
-
) %>
|
12
|
-
<% end %>
|
13
|
-
<% end %>
|
14
|
-
|
15
|
-
<%= render component('ui/table').new(
|
16
|
-
id: stimulus_id,
|
17
|
-
data: {
|
18
|
-
class: Spree::Zone,
|
19
|
-
rows: @page.records,
|
20
|
-
url: ->(zone) { spree.edit_admin_zone_path(zone) },
|
21
|
-
prev: prev_page_path,
|
22
|
-
next: next_page_path,
|
23
|
-
columns: columns,
|
24
|
-
batch_actions: batch_actions,
|
25
|
-
},
|
26
|
-
search: {
|
27
|
-
name: :q,
|
28
|
-
value: params[:q],
|
29
|
-
url: solidus_admin.zones_path,
|
30
|
-
searchbar_key: :name_or_description_cont,
|
31
|
-
scopes: scopes,
|
32
|
-
filters: filters,
|
33
|
-
},
|
34
|
-
) %>
|
35
|
-
<% end %>
|