Require mandatory fields on the frontend side
This commit is contained in:
parent
1c3db68886
commit
dd1fd419c7
1 changed files with 3 additions and 3 deletions
|
@ -21,17 +21,17 @@
|
||||||
%label
|
%label
|
||||||
%h4
|
%h4
|
||||||
Nom *
|
Nom *
|
||||||
= ff.text_field :nom, { class: 'form-control' }
|
= ff.text_field :nom, { class: 'form-control', required: true }
|
||||||
.form-group
|
.form-group
|
||||||
%label
|
%label
|
||||||
%h4
|
%h4
|
||||||
Prénom *
|
Prénom *
|
||||||
= ff.text_field :prenom, { class: 'form-control' }
|
= ff.text_field :prenom, { class: 'form-control', required: true }
|
||||||
.form-group
|
.form-group
|
||||||
%label
|
%label
|
||||||
%h4
|
%h4
|
||||||
Date de naissance *
|
Date de naissance *
|
||||||
= ff.date_field :birthdate, { class: 'form-control', placeholder: 'jj/mm/aaaa' }
|
= ff.date_field :birthdate, { class: 'form-control', placeholder: 'jj/mm/aaaa', required: true }
|
||||||
|
|
||||||
%p
|
%p
|
||||||
%label{ style: 'font-weight: normal;' }
|
%label{ style: 'font-weight: normal;' }
|
||||||
|
|
Loading…
Reference in a new issue