suite
This commit is contained in:
parent
26c174a121
commit
81fffee269
@ -7,81 +7,10 @@
|
|||||||
%head
|
%head
|
||||||
%meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
|
%meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
|
||||||
|
|
||||||
%body
|
%body{:style => "background:#dadada;"}
|
||||||
-if @m_odr
|
%div{:style => "width:90%;max-width:600px;margin:30px auto;background:white;"}
|
||||||
%br
|
=link_to image_tag("https://www.mamotosurcircuit.com/entete-mail.jpg", :style => "width:100%;margin-bottom:20px;"), "https://www.mamotosurcircuit.com/", :target => "_blank"
|
||||||
%br
|
= yield
|
||||||
|
=link_to image_tag("https://www.mamotosurcircuit.com/entete-mail.jpg", :style => "width:100%;margin-top:20px;"), "https://www.mamotosurcircuit.com/", :target => "_blank"
|
||||||
-if @m_odr.logo_image_file
|
|
||||||
=image_tag "https://"+HOSTNAME+@m_odr.logo_image_file.file.url, :class => "odr_logo", :style => (@m_odr.logo_image_file_width? ? "max-width:#{@m_odr.logo_image_file_width}px;margin:auto;": "")
|
|
||||||
|
|
||||||
|
|
||||||
-if @m_odr.banner_image_file
|
|
||||||
=image_tag "https://"+HOSTNAME+@m_odr.banner_image_file.file.url, :class => "odr_banner", :style => (@m_odr.banner_image_file_width? ? "max-width:#{@m_odr.banner_image_file_width}px;margin:auto;margin-bottom:40px;": "")
|
|
||||||
|
|
||||||
-background = (@m_odr.background_image_file ? "https://"+HOSTNAME+@m_odr.background_image_file.file.url : "")
|
|
||||||
:scss
|
|
||||||
body{
|
|
||||||
background:url('#{background}') fixed;
|
|
||||||
background-size:100%;
|
|
||||||
background-size: cover;
|
|
||||||
font-family:arial, sans-serif;
|
|
||||||
}
|
|
||||||
.odr_logo,.odr_banner{
|
|
||||||
width:90%;
|
|
||||||
display:block;
|
|
||||||
margin:auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#odr_form
|
|
||||||
.form_pannel
|
|
||||||
= yield
|
|
||||||
%br
|
|
||||||
%br
|
|
||||||
|
|
||||||
|
|
||||||
-if @m_odr
|
|
||||||
|
|
||||||
|
|
||||||
:scss
|
|
||||||
#odr_form{
|
|
||||||
max-width:800px;
|
|
||||||
margin:auto;
|
|
||||||
width:90%;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
p{
|
|
||||||
margin:10px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.conditions{
|
|
||||||
|
|
||||||
max-width:800px;
|
|
||||||
margin:auto;
|
|
||||||
width:90%;
|
|
||||||
font-size:0.9em;
|
|
||||||
text-align:center;
|
|
||||||
margin-top:10px;
|
|
||||||
margin-bottom:100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form_pannel{
|
|
||||||
background:rgba(white,0.8);
|
|
||||||
padding:10px 20px;
|
|
||||||
margin:10px 0;
|
|
||||||
box-shadow:0 0 15px rgba(0,0,0,0.1);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
-if @m_odr.footer_image_file
|
|
||||||
-if @m_odr.footer_image_link?
|
|
||||||
=link_to image_tag("https://"+HOSTNAME+@m_odr.footer_image_file.file.url, :class => "odr_banner", :style => (@m_odr.footer_image_width? ? "max-width:#{@m_odr.footer_image_width}px;margin:auto;margin-top:50px;": "")), @m_odr.footer_image_link, :target => "_blank"
|
|
||||||
-else
|
|
||||||
=image_tag("https://"+HOSTNAME+@m_odr.footer_image_file.file.url, :class => "odr_banner", :style => (@m_odr.footer_image_width? ? "max-width:#{@m_odr.footer_image_width}px;margin:auto;": ""))
|
|
||||||
|
|
||||||
-if @m_odr.conditions
|
|
||||||
.conditions=simple_format @m_odr.conditions
|
|
||||||
|
|
||||||
|
|
BIN
public/entete-mail.jpg
Normal file
BIN
public/entete-mail.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 100 KiB |
BIN
public/footer-mail.jpg
Normal file
BIN
public/footer-mail.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Loading…
x
Reference in New Issue
Block a user