Files
grecia/app/components/admin/site_customization/pages/form_component.rb
Javi Martín d5b4e5b7b9 Use <legend> tags to group radio button fields
In a few places, we were using <label> tags that pointed to elements
that didn't exist.
2025-08-07 15:24:51 +02:00

16 lines
322 B
Ruby

class Admin::SiteCustomization::Pages::FormComponent < ApplicationComponent
include TranslatableFormHelper
include GlobalizeHelper
attr_reader :page
def initialize(page)
@page = page
end
private
def attribute_name(attribute)
SiteCustomization::Page.human_attribute_name(attribute)
end
end