add translations for yes-no radios form and update dsfr styles
This commit is contained in:
parent
7c4ae3b786
commit
93c5c52e19
3 changed files with 22 additions and 7 deletions
|
@ -0,0 +1,4 @@
|
|||
en:
|
||||
yes: "Yes"
|
||||
no: "No"
|
||||
legend: "Yes/No"
|
|
@ -0,0 +1,4 @@
|
|||
fr:
|
||||
yes: "Oui"
|
||||
no: "Non"
|
||||
legend: "Oui/Non"
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue