From f6046d801fa6932c2e9d03e198f3c917527e32b0 Mon Sep 17 00:00:00 2001 From: mfo Date: Wed, 17 Apr 2024 07:04:15 +0200 Subject: [PATCH] feat(individual_form_component): add missing required on notification method --- .../individual_form_component.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/dossiers/individual_form_component/individual_form_component.html.haml b/app/components/dossiers/individual_form_component/individual_form_component.html.haml index ceab537b3..97b91976c 100644 --- a/app/components/dossiers/individual_form_component/individual_form_component.html.haml +++ b/app/components/dossiers/individual_form_component/individual_form_component.html.haml @@ -65,7 +65,7 @@ - Individual.notification_methods.each do |method, _| .fr-fieldset__element .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}" } = t("activerecord.attributes.individual.notification_methods.#{method}")