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
|
||||
%h4
|
||||
Nom *
|
||||
= ff.text_field :nom, { class: 'form-control' }
|
||||
= ff.text_field :nom, { class: 'form-control', required: true }
|
||||
.form-group
|
||||
%label
|
||||
%h4
|
||||
Prénom *
|
||||
= ff.text_field :prenom, { class: 'form-control' }
|
||||
= ff.text_field :prenom, { class: 'form-control', required: true }
|
||||
.form-group
|
||||
%label
|
||||
%h4
|
||||
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
|
||||
%label{ style: 'font-weight: normal;' }
|
||||
|
|
Loading…
Reference in a new issue