2017-01-24 14:36:43 +01:00
|
|
|
.white-back
|
|
|
|
%h3
|
2017-02-28 23:08:54 +01:00
|
|
|
= @mail_template.name
|
2017-01-24 14:36:43 +01:00
|
|
|
|
2017-03-06 16:52:07 +01:00
|
|
|
= simple_form_for @mail_template,
|
|
|
|
as: 'mail_template',
|
2017-03-05 11:05:28 +01:00
|
|
|
url: admin_procedure_mail_template_path(@procedure, @mail_template.class.slug),
|
|
|
|
method: :put do |f|
|
2017-01-24 14:36:43 +01:00
|
|
|
.row
|
|
|
|
.col-md-6
|
|
|
|
= f.input :object, label: "Objet de l'email"
|
|
|
|
= f.input :body, label: "Corps de l'email", input_html: {class: 'wysihtml5'}
|
|
|
|
.text-right
|
|
|
|
= link_to "Annuler", admin_procedure_mail_templates_path(@procedure), class: "btn btn-default"
|
|
|
|
= f.button :submit, 'Mettre à jour', class: "btn-success"
|
|
|
|
|
|
|
|
.row
|
2017-02-16 13:59:32 +01:00
|
|
|
.col-md-8
|
2017-01-24 14:36:43 +01:00
|
|
|
%table.table
|
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
Balise
|
|
|
|
%th
|
|
|
|
Description
|
2017-03-06 16:52:07 +01:00
|
|
|
- MailTemplateConcern::TAGS.each do |balise|
|
2017-01-24 14:36:43 +01:00
|
|
|
%tr
|
|
|
|
%td.center
|
2017-02-21 18:05:48 +01:00
|
|
|
= "--#{balise.first}--"
|
2017-01-24 14:36:43 +01:00
|
|
|
%td
|
|
|
|
=balise.second[:description]
|