demarches-normaliennes/app/views/shared/dossiers/messages/_form.html.haml
simon lehericey 84b125d272 p cannot be included in label
The main problem come from
%label{for: input_id}
  #{champ.libelle}
  %span.notice= string_to_html(champ.description)
%input

where string_to_html contains p tags

The proposed solution is
%label #{champ.libelle}
%p.notice
%input

It should be iso in the graphic sense.
2019-11-21 15:34:59 +01:00

14 lines
688 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

= form_for(commentaire, url: form_url, html: { class: 'form' }) do |f|
- placeholder = 'Écrivez votre message à ladministration ici'
- if instructeur_signed_in? || administrateur_signed_in?
- placeholder = 'Écrivez votre message ici'
= f.text_area :body, rows: 5, placeholder: placeholder, required: true, class: 'message-textarea'
.flex.justify-between.wrap
%div
= f.label :piece_jointe, for: :piece_jointe do
Joindre un document
%span.notice (taille max : 20 Mo)
= f.file_field :piece_jointe, id: 'piece_jointe', direct_upload: true
%div
= f.submit 'Envoyer le message', class: 'button primary send', data: { disable: true }