This way we can simplify the view, particularly the form. However, we're still adding some complexity to the form so inputs are inside labels and so the collection is easier to style with CSS.
13 lines
242 B
Ruby
13 lines
242 B
Ruby
class Admin::Locales::ShowComponent < ApplicationComponent
|
|
include Header
|
|
attr_reader :locales_settings
|
|
|
|
def initialize(locales_settings)
|
|
@locales_settings = locales_settings
|
|
end
|
|
|
|
def title
|
|
t("admin.menu.locales")
|
|
end
|
|
end
|