Nicolas Bally 767bed7998 suite
2020-03-03 18:19:59 +01:00

84 lines
2.7 KiB
Plaintext

-if false
%div{:style => "margin-top:30px;font-weight:bold;font-weight:800;font-size:2em;text-transform:uppercase;font-family: 'Open Sans','Helvetica Neue', Helvetica, sans-serif;text-align:center;"}
-count = ((@m_odr.start_at) - (Date.today))
-if @m_odr.landing_text?
=@m_odr.landing_text
-else
Démarrage
%div{:style => "font-weight:bold;font-weight:800;text-transform:uppercase;font-family: 'Open Sans','Helvetica Neue', Helvetica, sans-serif;text-align:center;line-height:200px;position:relative;top:-40px"}
dans
.clock{:style => "margin:2em;display:inline-block;width:auto;margin:0 auto;position:relative;top:35px"}
-if count > 1
jours !
-else
jour !
<script type="text/javascript">
=raw "var clock_max = #{count};"
</script>
:javascript
var countup;
var clock = $('.clock').FlipClock(0, {
clockFace: 'Counter',
minimumDigits: 1,
callbacks:{
init:function (){
}
}
});
if(clock_max > 0){
countup = setInterval(function() {
clock.increment();
if(clock.getTime().time >= clock_max) {
clock.stop();
clearInterval(countup);
}
}, 0);}
-if false
%p{:style => "font-weight:bold;font-size:2em;text-transform:uppercase;font-family:'Helvetica Neue', Helvetica, sans-serif;"}
jours avant l'ouverture
-else
-if !@file_tunel_download
-@file_tunel_download = @file_tunel_send.file_tunel_downloads.build()
#odr_form{:style => "margin:50px auto;max-width:600px;"}
=semantic_form_for [:public, @file_tunel_download], html: { multipart: true } , :remote => false do |f|
=f.hidden_field :file_tunel_send_id
=hidden_field_tag :force, params[:force]
=#f.hidden_field :t
.form_pannel
%h3=@file_tunel_download.file_tunel_send.file_tunel.name
=simple_format @file_tunel_download.file_tunel_send.file_tunel.description
=f.inputs do
=f.input :civilite, :label => "Civilité", :as => :select, :collection => [[qit("don-particular-civilite-mme","Mme."), "Mme"], [qit("don-particular-civilite-m","M."), "M"]], :include_blank => true
=f.input :name, :label => "Nom"
=f.input :firstname, :label => "Prénom"
%br
%center=f.submit "Recevoir mon lien de téléchargement", :class => "btn btn-primary"
%br
:scss
abbr[title="required"] {
//display: none;
text-decoration:none;
border:0;
}
form{
td{
vertical-align:top;
}
}