diff --git a/app/views/layouts/mail.html.haml b/app/views/layouts/mail.html.haml index faa67f5..0e26f3d 100755 --- a/app/views/layouts/mail.html.haml +++ b/app/views/layouts/mail.html.haml @@ -7,81 +7,10 @@ %head %meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" } - %body - -if @m_odr - %br - %br - - -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;": "")) + %body{:style => "background:#dadada;"} + %div{:style => "width:90%;max-width:600px;margin:30px auto;background:white;"} + =link_to image_tag("https://www.mamotosurcircuit.com/entete-mail.jpg", :style => "width:100%;margin-bottom:20px;"), "https://www.mamotosurcircuit.com/", :target => "_blank" + = 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.conditions - .conditions=simple_format @m_odr.conditions - - \ No newline at end of file + \ No newline at end of file diff --git a/public/entete-mail.jpg b/public/entete-mail.jpg new file mode 100644 index 0000000..b40c168 Binary files /dev/null and b/public/entete-mail.jpg differ diff --git a/public/footer-mail.jpg b/public/footer-mail.jpg new file mode 100644 index 0000000..d1e09b0 Binary files /dev/null and b/public/footer-mail.jpg differ