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.
This commit is contained in:
Javi Martín
2025-07-09 15:23:10 +02:00
parent cb57b0c0c1
commit d5b4e5b7b9
6 changed files with 29 additions and 11 deletions

View File

@@ -6,4 +6,10 @@ class Admin::SiteCustomization::Pages::FormComponent < ApplicationComponent
def initialize(page)
@page = page
end
private
def attribute_name(attribute)
SiteCustomization::Page.human_attribute_name(attribute)
end
end