Style: simple css for custom emails list
This commit is contained in:
parent
c77c46bf37
commit
5cceb9773c
3 changed files with 27 additions and 18 deletions
11
app/assets/stylesheets/custom-mails.scss
Normal file
11
app/assets/stylesheets/custom-mails.scss
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#custom-mails {
|
||||||
|
padding: 20px;
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
background-color: #FFF;
|
||||||
|
box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.5);
|
||||||
|
margin: 15px auto;
|
||||||
|
max-width: 800px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,15 +1,13 @@
|
||||||
.row.white-back
|
#custom-mails
|
||||||
%h1 E-mails personnalisables
|
.wrapper
|
||||||
|
%h1 E-mails personnalisables
|
||||||
.row
|
%table.table
|
||||||
.col-md-6
|
%tr
|
||||||
%table.table
|
%th{ colspan: 2 }
|
||||||
|
Type d'email
|
||||||
|
- @procedure.mail_templates.each do |mt|
|
||||||
%tr
|
%tr
|
||||||
%th{ colspan: 2 }
|
%td
|
||||||
Type d'email
|
= mt.decorate.name
|
||||||
- @procedure.mail_templates.each do |mt|
|
%td.text-right
|
||||||
%tr
|
= link_to "Personnaliser l'e-mail", edit_admin_procedure_mail_template_path(@procedure, mt)
|
||||||
%td
|
|
||||||
= mt.decorate.name
|
|
||||||
%td.text-right
|
|
||||||
= link_to "Personnaliser l'e-mail", edit_admin_procedure_mail_template_path(@procedure, mt)
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
%div#main-container{class: "col-xs-#{main_container_size}"}
|
#main-container{ class: "col-xs-#{main_container_size}" }
|
||||||
%div.row
|
.row
|
||||||
= render partial: 'layouts/flash_messages'
|
= render partial: 'layouts/flash_messages'
|
||||||
%div.row
|
.row
|
||||||
= yield
|
= yield
|
||||||
%div.row
|
.row
|
||||||
|
|
Loading…
Add table
Reference in a new issue