code from amapei
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<style>
|
||||
table.table{
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.table td{
|
||||
border: 1px solid #ddd;
|
||||
padding: 6px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div>
|
||||
::raw __content__::
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
|
||||
<div style="color:#666;font-size:12px;">
|
||||
::_("This e-mail was sent from"):: <a href="http://::HOST::">::_("Cagette.net")::</a>.
|
||||
|
||||
::if group!=null::
|
||||
<br/>
|
||||
::_("You receive this message because you are part of"):: <b>::group.name::</b>
|
||||
::end::
|
||||
|
||||
::if list!=null::
|
||||
( ::list:: )
|
||||
::end::
|
||||
|
||||
<!-- btn -->
|
||||
::if group!=null::
|
||||
<div style="width:50%;max-width:300px;margin: 12px auto;padding: 8px;text-decoration: none;background: #070;border-radius: 3px;text-align: center;">
|
||||
<a href="http://::HOST::/group/::group.id::" style="color: white;font-weight: bold;text-decoration: none;font-size:1.2em;">
|
||||
→ ::group.name::
|
||||
</a>
|
||||
</div>
|
||||
::end::
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,16 @@
|
||||
:: use 'mail/design.mtt'::
|
||||
|
||||
<p>
|
||||
::_("Hello"):: ::user.firstName::,
|
||||
</p>
|
||||
<p>
|
||||
::_("You asked to modify your password,")::
|
||||
<a href="::link::">::_("Click here to perform this operation")::</a>.
|
||||
</p>
|
||||
<p>
|
||||
::_("Be careful, this link is valid only 24 hours for security reasons.")::
|
||||
</p>
|
||||
|
||||
::end::
|
||||
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
:: use 'mail/design.mtt'::
|
||||
|
||||
<div style="max-width:400px;margin:auto;border:solid 1px #AAA;border-radius:8px;padding:12px;text-align:center;font-family:Arial;">
|
||||
|
||||
<img src="http://::HOST::/img/logo2.png" title="Cagette.net" />
|
||||
|
||||
<p>
|
||||
::_("Hello"):: $$nullSafe(::name::),
|
||||
</p>
|
||||
|
||||
<p>
|
||||
::if groupName!=null::
|
||||
|
||||
::raw __("As a member of <b>::groupName::</b>",{groupName:groupName})::
|
||||
<br/>
|
||||
::_("you have been pre-registered on Cagette.net")::
|
||||
|
||||
::else::
|
||||
|
||||
<b>::_("you have been pre-registered on Cagette.net")::</b>
|
||||
|
||||
::end::
|
||||
</p>
|
||||
|
||||
<p>
|
||||
::_("This software makes the organisation of the group easy by informing you about the next delivery dates, orders and current contracts")::
|
||||
</p>
|
||||
<p>
|
||||
::_("In order to finalize the subscription, please choose your password")::
|
||||
</p>
|
||||
<p>
|
||||
::_("You will then be able to connect anytime by using your e-mail")::
|
||||
( <i>::email:: ::if email2!=null:: ou ::email2:: ::end::</i> )
|
||||
::_("and your password on the website"):: <a href="http://::HOST::">::HOST::</a>
|
||||
|
||||
<a href="http://::HOST::/user/validate/::k::" class="btn" style="display:block;padding:8px;background:#227700;border-radius:8px;width:auto;color: white;margin: 12px; text-decoration: none;margin-top:16px;font-size:120%;">
|
||||
» ::_("Finalize your subscription")::
|
||||
</a>
|
||||
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
::end::
|
||||
@@ -0,0 +1,8 @@
|
||||
:: use 'mail/design.mtt'::
|
||||
|
||||
|
||||
::raw text::
|
||||
|
||||
|
||||
|
||||
::end::
|
||||
@@ -0,0 +1,17 @@
|
||||
:: use 'mail/design.mtt'::
|
||||
|
||||
<p>
|
||||
::_("Hello"):: ::user.firstName::,
|
||||
</p>
|
||||
<p>
|
||||
::__("A new password has been defined for ::site::",{site:NAME})::
|
||||
<br/>
|
||||
::raw __("The new password is <b>::pass::</b>, don't forget it !",{pass:password})::
|
||||
</p>
|
||||
<p>
|
||||
::raw __("You can use the following emails to log into your account : <b>::emails::</b>",{emails:emails})::
|
||||
</p>
|
||||
|
||||
::end::
|
||||
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
::use 'mail/design.mtt'::
|
||||
|
||||
<h3>Récapitulatif de votre commande "<b>::contract.name::</b>"</h3>
|
||||
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<td>
|
||||
Date de livraison
|
||||
</td>
|
||||
<td>
|
||||
::dDate(distribution.date):: de ::hHour(distribution.date):: à ::hHour(distribution.end)::
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Adresse</td>
|
||||
<td>
|
||||
::distribution._place.getFullAddress()::
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
<!-- produits -->
|
||||
<table class="table table-bordered table-hover" >
|
||||
<tr>
|
||||
<th>Qté</th>
|
||||
<th>Produit</th>
|
||||
<th>P.U</th>
|
||||
<th>Sous-total</th>
|
||||
<th>Frais</th>
|
||||
<th>Total</th>
|
||||
</tr>
|
||||
::set total = 0::
|
||||
::foreach m orders::
|
||||
<tr>
|
||||
<td>
|
||||
::raw m.smartQt:
|
||||
</td>
|
||||
<td>
|
||||
::m.productName::
|
||||
</td>
|
||||
<td>
|
||||
::formatNum(m.productPrice):: ::currency()::
|
||||
</td>
|
||||
<td>
|
||||
::formatNum(m.subTotal):: ::currency()::
|
||||
</td>
|
||||
<td>
|
||||
<!-- frais -->
|
||||
::if m.percentageValue!=null::
|
||||
<a href="#" data-toggle="tooltip" data-placement="top" title="::m.percentageName:: : ::m.percentageValue:: %">
|
||||
::formatNum(m.fees):: ::currency()::
|
||||
</a>
|
||||
::end::
|
||||
</td>
|
||||
<td>
|
||||
<!-- total -->
|
||||
::formatNum(m.total):: ::currency()::
|
||||
::set total = total + m.total::
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
::end::
|
||||
|
||||
<tr style="background:#DDD;">
|
||||
<th colspan="4"></th>
|
||||
<th class="text-right">Total :</th>
|
||||
<th>::formatNum(total):: ::currency()::</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
::end::
|
||||
@@ -0,0 +1,69 @@
|
||||
::use 'mail/design.mtt'::
|
||||
|
||||
<h3>Récapitulatif de commande par produits</h3>
|
||||
|
||||
<p>
|
||||
Les commandes du contrat <b>::contract.name::</b> dont vous êtes coordinateur ont fermé le <b>::hDate(distribution.orderEndDate)::</b>.
|
||||
</p>
|
||||
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<td>
|
||||
Date de livraison
|
||||
</td>
|
||||
<td>
|
||||
::dDate(distribution.date):: de ::hHour(distribution.date):: à ::hHour(distribution.end)::
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Adresse</td>
|
||||
<td>
|
||||
::distribution._place.getFullAddress()::
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
<!-- produits -->
|
||||
<table class="table table-bordered table-hover" >
|
||||
<tr>
|
||||
<th>Poids/Vol.</th>
|
||||
<th>Quantités</th>
|
||||
<th>Produit</th>
|
||||
<th>Référence</th>
|
||||
<th>Prix unitaire TTC</th>
|
||||
<th>Total</th>
|
||||
</tr>
|
||||
::set total = 0::
|
||||
::foreach m orders::
|
||||
<tr>
|
||||
<td>::raw m.weightOrVolume::</td>
|
||||
<td>
|
||||
::raw m.quantity::
|
||||
</td>
|
||||
<td>
|
||||
::m.pname::
|
||||
</td>
|
||||
<td class="ref">
|
||||
$$nullSafe(::m.ref::)
|
||||
</td>
|
||||
<td>
|
||||
::formatNum(m.priceTTC):: ::currency()::
|
||||
</td>
|
||||
<td>
|
||||
::formatNum(m.totalTTC):: ::currency()::
|
||||
::set total = total + m.totalTTC::
|
||||
</td>
|
||||
</tr>
|
||||
::end::
|
||||
|
||||
<tr style="background:#DDD;">
|
||||
<th colspan="4"></th>
|
||||
<th class="text-right">Total :</th>
|
||||
<th>::formatNum(total):: ::currency()::</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
::end::
|
||||
Reference in New Issue
Block a user