2017-02-01 16:44:31 +01:00
|
|
|
= form_tag(url_for({ controller: 'commentaires', action: :create, dossier_id: dossier_facade.dossier.id, champ_id: dossier_facade.champ_id }), class: 'form-inline', method: 'POST', multipart: true) do
|
|
|
|
|
2017-04-26 14:55:14 +02:00
|
|
|
%textarea.form-control.wysihtml5#texte_commentaire{ name: 'texte_commentaire', style: 'width: 100%; margin-bottom: 2%;', rows: '5', placeholder: "Commentaire" }
|
2017-02-01 16:44:31 +01:00
|
|
|
|
|
|
|
.row
|
|
|
|
.col-md-6
|
2017-04-06 19:58:11 +02:00
|
|
|
%h4.text-primary{ style: 'margin-top: 0px;' } Ajouter un fichier
|
2017-10-31 17:45:04 +01:00
|
|
|
= file_field_tag "file", accept: Commentaire.new.file.accept_extension_list, style: 'float: left; margin-left: 20px;'
|
2017-02-14 16:20:52 +01:00
|
|
|
.col-md-6.text-right
|
2017-05-12 11:26:20 +02:00
|
|
|
= submit_tag 'Envoyer', id: 'save-message', class: 'form-control btn btn-danger', data: { disable_with: 'Envoi...' }
|