add translations for yes-no radios form and update dsfr styles

This commit is contained in:
Julie Salha 2023-04-18 13:43:11 +02:00
parent 7c4ae3b786
commit 93c5c52e19
3 changed files with 22 additions and 7 deletions

View file

@ -0,0 +1,4 @@
en:
yes: "Yes"
no: "No"
legend: "Yes/No"

View file

@ -0,0 +1,4 @@
fr:
yes: "Oui"
no: "Non"
legend: "Oui/Non"

View file

@ -1,8 +1,15 @@
%fieldset.radios
%label{ for: @champ.yes_input_id }
= @form.radio_button :value, true, id: @champ.yes_input_id
Oui
%fieldset.fr-fieldset
%legend.fr-fieldset__legend.visually-hidden
= t(".legend")
%label{ for: @champ.no_input_id }
= @form.radio_button :value, false, id: @champ.no_input_id
Non
.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")
.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")