negos_app/app/views/customer_mailer/new_commission.old.haml
2016-02-16 21:09:48 +01:00

89 lines
2.6 KiB
Plaintext
Executable File

-if @commission
!!!
%html{:lang => "fr" }
%head
%meta{ :"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8" }
:scss
body{
font-family:'Gill sans', helvetica,sans-serif;
padding:0;
margin:0;
background:#F0F0F0;
font-size:16px;
text-align:center;
}
p{
margin:auto;
max-width:600px;
}
hr{
border:0px;
border-top:1px solid #eeeeee;
}
.content{
padding:10px;
}
.top{
background:url('https://sideplace.com/fond-mail.jpg') center center no-repeat #9EAFC3;
background-size:100%;
background-size:cover;
text-align:center;
color:white;
h1{
font-size:30px;
font-weight:normal;
text-transform:uppercase;
}
p{
margin:auto;
max-width:400px;
font-size:20px;
}
}
.top a{
color:white;
}
%body
.top
=image_tag "https://sideplace.com/new_commission.png", :style => "height:120px;margin-top:120px;"
%h1
Bravo
=@commission.customer.firstname if @commission.customer.firstname?
!
%p
Vous avez reçu une nouvelle
-if @commission.commission_type_id == 1
commission directe.
-elsif @commission.commission_type_id == 2
commission binaire.
-elsif @commission.commission_type_id == 3
commission de participation.
%p{:style => "margin-top:2em;"}
+
=number_to_currency @commission.amount
%div{:style => "text-align:right"}
=link_to image_tag("https://sideplace.com/logo.png", :style => "width:180px;margin:10px;margin-top:120px;border:none;", :id => "logo"), "https://sideplace.com"
.content
%br
%p
Votre solde de commission est désormais de
=number_to_currency @commission.customer.solde_commissions
%br
%p Vous pouvez utiliser ce solde pour acheter d'autres coffrets de crédits, où demander un virement sur votre compte bancaire (si celui-ci est domicilié dans un des pays supporté).
%br
%p
Pour cela rendez-vous sur
=link_to "votre compte Sideplace.com", "https://sideplace.com/public/customers_auths/new", :style => "color:#3175AD;"