2016-12-07 17:55:34 +01:00
|
|
|
.row.white-back
|
|
|
|
= render partial: 'admin/procedures/head', locals: {active: 'E-mails'}
|
2016-08-31 16:07:11 +02:00
|
|
|
|
2016-12-07 17:55:34 +01:00
|
|
|
%h3
|
|
|
|
E-mail d'accusé de réception
|
2016-08-31 16:07:11 +02:00
|
|
|
|
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-08-31 16:07:11 +02:00
|
|
|
|
|
|
|
|
2016-12-07 17:55:34 +01:00
|
|
|
%table.table{style:'width: 50%'}
|
2016-08-31 16:07:11 +02:00
|
|
|
%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]
|