From f80cccba9376584a7f7f747fba4702f198a2490e Mon Sep 17 00:00:00 2001 From: Julie Salha Date: Tue, 18 Apr 2023 14:54:01 +0200 Subject: [PATCH] reset component yes no structure --- .../yes_no_component/yes_no_component.html.haml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/app/components/editable_champ/yes_no_component/yes_no_component.html.haml b/app/components/editable_champ/yes_no_component/yes_no_component.html.haml index 013659574..7dfb2d9e3 100644 --- a/app/components/editable_champ/yes_no_component/yes_no_component.html.haml +++ b/app/components/editable_champ/yes_no_component/yes_no_component.html.haml @@ -2,14 +2,10 @@ %legend.fr-fieldset__legend.visually-hidden = t(".legend") - .fr-fieldset__element.fr-fieldset__element--inline - .fr-radio-group - = @form.radio_button :value, false, id: @champ.yes_input_id - %label.fr-label{ for: @champ.yes_input_id } - = t(".yes") + %label{ for: @champ.yes_input_id } + = @form.radio_button :value, true, id: @champ.yes_input_id + = t(".yes") - .fr-fieldset__element.fr-fieldset__element--inline - .fr-radio-group - = @form.radio_button :value, false, id: @champ.no_input_id - %label.fr-label{ for: @champ.no_input_id } - = t(".no") + %label{ for: @champ.no_input_id } + = @form.radio_button :value, false, id: @champ.no_input_id + = t(".no")