demarches-normaliennes/app/views/admin/mail_templates/edit.html.haml
Frederic Merizen b9a1f707f5 [#1110] name => libelle in mail templates
to match attestation templates
2018-01-05 12:48:07 +01:00

30 lines
927 B
Text

.white-back
%h3
= @mail_template.class.const_get(:DISPLAYED_NAME)
= simple_form_for @mail_template,
as: 'mail_template',
url: admin_procedure_mail_template_path(@procedure, @mail_template.class.const_get(:SLUG)),
method: :put do |f|
.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
.col-md-12
%table.table
%tr
%th.col-md-3
Balise
%th
Description
- @mail_template.class.const_get(:ALLOWED_TAGS).each do |tag|
%tr
%td.center
= "--#{tag[:libelle]}--"
%td
= tag[:description]