demarches-normaliennes/app/views/admin/mail_templates/edit.html.haml
gregoirenovel 43ae28de87 Make the email templates tags table occupy the whole width available
It improves the content formatting (no more ugly
line breaks splitting a tag on several lines)
2017-05-04 16:17:38 +02:00

30 lines
907 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.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
- MailTemplateConcern::TAGS.each do |balise|
%tr
%td.center
= "--#{balise.first}--"
%td
= balise.second[:description]