-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
47 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 9 additions & 11 deletions
20
admin/app/components/solidus_admin/tax_categories/index/component.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
admin/app/components/solidus_admin/taxes/component.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<%= page do %> | ||
<%= page_header do %> | ||
<%= page_header_title safe_join([ | ||
tag.div(t(".title")), | ||
tag.div(t(".subtitle"), class: "body-small text-gray-500"), | ||
# tag.div( | ||
# render(component('ui/tab').new(text: Spree::TaxCategory.model_name.human.pluralize, href: solidus_admin.tax_categories_path, current: true)) + | ||
# render(component('ui/tab').new(text: Spree::TaxRate.model_name.human.pluralize, href: spree.admin_tax_rates_path, current: false)), | ||
# class: "flex gap-2 mt-4" | ||
# ), | ||
]) %> | ||
<% end %> | ||
|
||
<%= page_header do %> | ||
<% title = capture do %> | ||
<%= render(component('ui/tab').new(text: Spree::TaxCategory.model_name.human.pluralize, href: solidus_admin.tax_categories_path, current: true)) %> | ||
<%= render(component('ui/tab').new(text: Spree::TaxRate.model_name.human.pluralize, href: spree.admin_tax_rates_path, current: false)) %> | ||
<% end %> | ||
|
||
<%= page_header_title title %> | ||
|
||
<%= page_header_actions do %> | ||
<%= actions %> | ||
<% end %> | ||
<% end %> | ||
|
||
<%= content %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
class SolidusAdmin::Taxes::Component < SolidusAdmin::BaseComponent | ||
include SolidusAdmin::Layout::PageHelpers | ||
renders_one :actions | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
en: | ||
title: "Taxes" | ||
subtitle: "Configure tax rates and tax categories for products and shipping in different markets." |