ajout de labels invisibles sur les champs d'invitation

This commit is contained in:
clemkeirua 2020-03-05 17:53:32 +01:00 committed by GitHub Action
parent 1a58dd69c2
commit 5321f7c708
2 changed files with 6 additions and 2 deletions

View file

@ -26,7 +26,7 @@
input[type=email] {
width: auto;
margin-bottom: 0;
margin-bottom: $default-spacer;
}
.button {

View file

@ -15,8 +15,12 @@
= form_tag dossier_invites_path(dossier), remote: true, method: :post, class: 'form' do
.row
.col
= email_field_tag :invite_email, '', class: 'small', placeholder: 'adresse email', required: true
%span
= label_tag :invite_email, "Adresse email"
= email_field_tag :invite_email, '', class: 'small', placeholder: 'Adresse email', required: true
.col
%span
= label_tag :invite_message, "Ajouter un message à la personne invitée (optionnel)"
= text_area_tag :invite_message, '', class: 'small', placeholder: 'Ajouter un message à la personne invitée (optionnel)'
.col
= submit_tag 'Envoyer une invitation', class: 'button accepted'