Remove simple form from mail_templates
This commit is contained in:
parent
c4ed341847
commit
785b8fd78f
1 changed files with 10 additions and 4 deletions
|
@ -4,17 +4,23 @@
|
||||||
%h3
|
%h3
|
||||||
= @mail_template.class.const_get(:DISPLAYED_NAME)
|
= @mail_template.class.const_get(:DISPLAYED_NAME)
|
||||||
|
|
||||||
= simple_form_for @mail_template,
|
= form_for @mail_template,
|
||||||
as: 'mail_template',
|
as: 'mail_template',
|
||||||
url: admin_procedure_mail_template_path(@procedure, @mail_template.class.const_get(:SLUG)),
|
url: admin_procedure_mail_template_path(@procedure, @mail_template.class.const_get(:SLUG)),
|
||||||
method: :put do |f|
|
method: :put do |f|
|
||||||
.row
|
.row
|
||||||
.col-md-6
|
.col-md-6
|
||||||
= f.input :subject, label: "Objet de l'email"
|
.form-group.string.optional.mail_template_subject
|
||||||
= f.input :body, label: "Corps de l'email", input_html: { class: 'wysihtml5' }
|
= f.label :subject, "Objet de l'email", class: 'control-label string optional'
|
||||||
|
= f.text_field :subject, class: 'form-control string optional'
|
||||||
|
|
||||||
|
.form-group.text.optional.mail_template_body
|
||||||
|
= f.label :body, "Corps de l'email", class: 'control-label string optional'
|
||||||
|
= f.text_area :body, class: 'wysihtml5 form-control text optional'
|
||||||
|
|
||||||
.text-right
|
.text-right
|
||||||
= link_to "Annuler", admin_procedure_mail_templates_path(@procedure), class: "btn btn-default"
|
= link_to "Annuler", admin_procedure_mail_templates_path(@procedure), class: "btn btn-default"
|
||||||
= f.button :submit, 'Mettre à jour', class: "btn-success"
|
= f.submit 'Mettre à jour', class: "btn btn-default btn-success"
|
||||||
= link_to "Prévisualiser", preview_procedure_mail_template_path(@procedure, @mail_template.class.const_get(:SLUG)), class: "btn btn-primary", target: "_blank"
|
= link_to "Prévisualiser", preview_procedure_mail_template_path(@procedure, @mail_template.class.const_get(:SLUG)), class: "btn btn-primary", target: "_blank"
|
||||||
|
|
||||||
.row
|
.row
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue