-if @m_odr -@title = @m_odr.name -@description = @m_odr.description !!! %html{:lang => "fr" } %head %meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" } %body -if @m_odr %br %br -if @m_odr.id >= 31 -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