Require mandatory fields on the frontend side

This commit is contained in:
gregoirenovel 2017-03-28 18:07:43 +02:00 committed by LeSim
parent 1c3db68886
commit dd1fd419c7

View file

@ -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;' }