internetee-registry/app/views/admin/mail_templates/show.haml
2015-08-25 21:12:59 +03:00

41 lines
1.1 KiB
Text

- content_for :actions do
= link_to(t(:edit), edit_admin_mail_template_path(@mail_template.id), class: 'btn btn-primary')
= link_to(t(:delete), admin_mail_template_path(@mail_template.id),
method: :delete, data: { confirm: t(:are_you_sure) }, class: 'btn btn-danger')
= link_to(t(:email_templates), admin_mail_templates_path, class: 'btn btn-default')
= render 'shared/title', name: @mail_template.name
.row
.col-md-12
.panel.panel-default
.panel-heading
%h3.panel-title= t(:general)
.panel-body
%dl.dl-horizontal
%dt= t(:subject)
%dd= @mail_template.subject
%dt= t(:from)
%dd= @mail_template.from
- if @mail_template.cc.present?
%dt= t(:cc)
%dd= @mail_template.cc
- if @mail_template.bcc.present?
%dt= t(:bcc)
%dd= @mail_template.bcc
.col-md-12
.panel.panel-default
.panel-heading
%h3.panel-title= t(:html_body)
.panel-body
= @html_body
.col-md-12
.panel.panel-default
.panel-heading
%h3.panel-title= t(:text_body)
.panel-body
= @text_body