Class: SolidusAdmin::Taxes::Component
- Inherits:
-
UI::Pages::Index::Component
- Object
- UI::Pages::Index::Component
- SolidusAdmin::Taxes::Component
show all
- Defined in:
- app/components/solidus_admin/taxes/component.rb
Instance Method Summary
collapse
Instance Method Details
#tabs ⇒ Object
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'app/components/solidus_admin/taxes/component.rb', line 11
def tabs
[
{
text: Spree::TaxCategory.model_name.human.pluralize,
href: solidus_admin.tax_categories_path,
current: model_class == Spree::TaxCategory,
},
{
text: Spree::TaxRate.model_name.human.pluralize,
href: solidus_admin.tax_rates_path,
current: model_class == Spree::TaxRate,
},
]
end
|
#title ⇒ Object
4
5
6
7
8
9
|
# File 'app/components/solidus_admin/taxes/component.rb', line 4
def title
safe_join([
tag.div(t(".title")),
tag.div(t(".subtitle"), class: "font-normal text-sm text-gray-500"),
])
end
|