Files
nairobi/app/components/admin/dashboard/actions/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

15 lines
354 B
Ruby

class Admin::Dashboard::Actions::FormComponent < ApplicationComponent
attr_reader :dashboard_action, :url_action
def initialize(dashboard_action, url_action:)
@dashboard_action = dashboard_action
@url_action = url_action
end
private
def attribute_name(attribute)
Dashboard::Action.human_attribute_name(attribute)
end
end