make the 'male' field selected by default during identity creation

This commit is contained in:
clemkeirua 2020-03-23 17:42:31 +01:00 committed by GitHub Action
parent 1bdc0836a6
commit a34b45e4f4
5 changed files with 14 additions and 2 deletions

View file

@ -12,8 +12,16 @@
%span.mandatory *
champs requis
= f.label :gender, class: "required"
= f.select :gender, [Individual::GENDER_MALE, Individual::GENDER_FEMALE], {}, class: "small"
%fieldset
%legend
= f.label :gender, class: "required"
.radios
%label
= f.radio_button :gender, Individual::GENDER_MALE
= Individual::GENDER_MALE
%label
= f.radio_button :gender, Individual::GENDER_FEMALE
= Individual::GENDER_FEMALE
.flex
.inline-champ