feat(individual_form_component): add missing required on notification method

This commit is contained in:
mfo 2024-04-17 07:04:15 +02:00
parent 95de0d6239
commit f6046d801f

View file

@ -65,7 +65,7 @@
- Individual.notification_methods.each do |method, _| - Individual.notification_methods.each do |method, _|
.fr-fieldset__element .fr-fieldset__element
.fr-radio-group .fr-radio-group
= individual.radio_button :notification_method, method, id: "notification_method_#{method}", "data-action" => "for-tiers#toggleEmailInput", "data-for-tiers-target" => "notificationMethod" = individual.radio_button :notification_method, method, required: true, id: "notification_method_#{method}", "data-action" => "for-tiers#toggleEmailInput", "data-for-tiers-target" => "notificationMethod"
%label.fr-label{ for: "notification_method_#{method}" } %label.fr-label{ for: "notification_method_#{method}" }
= t("activerecord.attributes.individual.notification_methods.#{method}") = t("activerecord.attributes.individual.notification_methods.#{method}")