demarches-normaliennes/app/views/admin/mails/index.html.haml

29 lines
773 B
Text
Raw Normal View History

2016-12-07 17:55:34 +01:00
.row.white-back
%h3
E-mail d'accusé de réception
2016-12-07 17:55:34 +01:00
- unless @procedure.mail_received.blank?
= form_for @procedure.mail_received, url: {controller: 'admin/mails', action: 'update', id: @procedure.mail_received.id} do |f|
=f.text_field :object, {class:'form-control', style:'width: 40%'}
%br
=f.text_area :body, {class: 'form-control wysihtml5'}
%br
=f.submit 'Mettre à jour', {class:'btn btn-success', style:'float: right'}
2016-12-07 17:55:34 +01:00
%table.table{style:'width: 50%'}
%tr
2016-12-07 17:55:34 +01:00
%th
Balise
%th
Description
- MailTemplate.tags.each do |balise|
%tr
%td.center
%b.text-success
\--
= balise.first
\--
%td
=balise.second[:description]