From 7ea7eea9520616dc4ee0ae9b0bec31a1aee0ec07 Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Tue, 31 Oct 2017 16:22:27 +0100 Subject: [PATCH] New UI : Style file uploader --- .../new_gestionnaire/dossiers/messagerie.html.haml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/new_gestionnaire/dossiers/messagerie.html.haml b/app/views/new_gestionnaire/dossiers/messagerie.html.haml index e289cfdbc..691549ecb 100644 --- a/app/views/new_gestionnaire/dossiers/messagerie.html.haml +++ b/app/views/new_gestionnaire/dossiers/messagerie.html.haml @@ -30,6 +30,12 @@ = form_for(@commentaire, url: commentaire_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' }) do |f| = f.text_area :body, rows: 5, placeholder: 'Répondre ici', required: true - = f.file_field :file, accept: @commentaire.accept_extension_list - .send-wrapper - = f.submit 'Envoyer', class: 'button send', data: { disable_with: "Envoi..." } + .flex.justify-between + %div + = f.file_field :file, id: :file, accept: @commentaire.file.accept_extension_list + %label{ for: :file } + .notice + (taille max : 20 Mo) + + .send-wrapper + = f.submit 'Envoyer', class: 'button send', data: { disable_with: "Envoi…" }