initial upload
This commit is contained in:
79
monaem/templates/reglement/crediter.pt
Normal file
79
monaem/templates/reglement/crediter.pt
Normal file
@@ -0,0 +1,79 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<div class="row col-md-7">
|
||||
<h3>1 - Sélectionner une quantité</h3>
|
||||
<form id="crediter-form" action="${url}" method="post"
|
||||
class="form-horizontal"
|
||||
data-fv-framework="bootstrap"
|
||||
data-fv-icon-valid="glyphicon glyphicon-ok"
|
||||
data-fv-icon-invalid="glyphicon glyphicon-remove"
|
||||
data-fv-icon-validating="glyphicon glyphicon-refresh">
|
||||
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th>Désignation</th>
|
||||
<th>Prix TTC</th>
|
||||
<th>Quantité</th>
|
||||
</tr>
|
||||
<tr tal:repeat="item items">
|
||||
<td tal:content="item.LIB" />
|
||||
<td align="right">
|
||||
<span tal:content="layout.to_euro(item.PUTTC)" />
|
||||
</td>
|
||||
<td>
|
||||
<select class="form-control" id="${item.REF}" name="${item.REF}">
|
||||
<tal:block tal:repeat="i [x for x in range(0,9)]">
|
||||
<option tal:condition="str(i)==qtes[repeat.item.index]" selected>${i}</option>
|
||||
<option tal:condition="str(i)!=qtes[repeat.item.index]">${i}</option>
|
||||
</tal:block>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit" name="form.submitted">
|
||||
<span class="glyphicon glyphicon-refresh"></span> Calculer le montant total</button>
|
||||
</div>
|
||||
|
||||
<!-- lire le total calculer -->
|
||||
<div tal:condition="mttotal">
|
||||
<h3>2 - Régler</h3>
|
||||
<h4>Montant total à régler : <b><span class="text-danger">${layout.to_euro(mttotal)}</span></b></h4>
|
||||
<!-- case a cocher "Accepter CGV" -->
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<input type="checkbox" name="cb_cgv" id="cb_binaire" class="styled" />
|
||||
<label for="cb_binaire">En cochant cette case, je reconnais avoir lu et accepté les <a href="http://www.marietton.com/files/CGV-Marietton.pdf">Conditions Générales de Vente</a>.</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit" name="regler.submitted">
|
||||
<span class="glyphicon glyphicon-euro"></span> Régler</button>
|
||||
<img src="${request.static_url('monaem:static/img/CB.gif')}" alt="CB logo" title="CB logo" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#crediter-form').formValidation({
|
||||
fields: {
|
||||
cb_cgv: {
|
||||
validators: {
|
||||
notEmpty: {
|
||||
message: 'Veuillez accepter les Conditions Générales de Vente pour continuer.'
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div><!-- content -->
|
||||
</metal:block>
|
||||
|
||||
|
||||
153
monaem/templates/reglement/reglement.pt
Normal file
153
monaem/templates/reglement/reglement.pt
Normal file
@@ -0,0 +1,153 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<div><img src="${request.static_url('monaem:static/img/CA-e-transaction.png')}" class="logo Crédit Agricole" alt="logo Crédit Agricole" /></div>
|
||||
<h3>Montant à payer : <span class="text-danger">${layout.to_euro(sum_to_pay)}</span></h3>
|
||||
|
||||
<div class="row">
|
||||
<div id="step1" class="col-md-6">
|
||||
<form id="calculate-reglement-form" action="${url}" method="post">
|
||||
<h4>1. Choisissez le mode de paiement :</h4>
|
||||
<!-- total à payer <= 300 euros ? -->
|
||||
<div class="form-group" tal:condition="sum_to_pay < 300">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" value="1" name="nfois" checked ="checked">Comptant<br />
|
||||
<input type="radio" value="3" name="nfois" disabled>En 3 fois sans frais (à partir de 300 €)
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- total à payer >= 300 euros ? -->
|
||||
<div class="form-group" tal:condition="sum_to_pay >= 300">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<span tal:condition="nfois == '1'">
|
||||
<input type="radio" value="1" name="nfois" checked="checked"> Comptant <br />
|
||||
</span>
|
||||
<span tal:condition="nfois != '1'">
|
||||
<input type="radio" value="1" name="nfois"> Comptant <br />
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="radio">
|
||||
<label>
|
||||
<span tal:condition="nfois == '3'">
|
||||
<input type="radio" value="1" name="nfois" checked="checked"> En 3 fois sans frais (à partir de 300 €) <br />
|
||||
</span>
|
||||
<span tal:condition="nfois != '3'">
|
||||
<input type="radio" value="3" name="nfois"> En 3 fois sans frais (à partir de 300 €) <br />
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit" name="form.submitted">
|
||||
<span class="glyphicon glyphicon-refresh"></span> Calculer
|
||||
</button>
|
||||
<img src="${request.static_url('monaem:static/img/CB.gif')}" alt="CB logo" title="CB logo" />
|
||||
</div>
|
||||
</form>
|
||||
</div><!-- step1 -->
|
||||
</div> <!-- row 1 -->
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6" tal:condition="pay_ok">
|
||||
<div tal:condition="nfois == '1'">
|
||||
<p>Vous avez choisi le mode de <strong>paiement comptant</strong>.</p>
|
||||
</div>
|
||||
|
||||
<div tal:condition="nfois == '3'">
|
||||
<p>Vous paierez cette facture <strong>en 3 fois sans frais</strong>.</p>
|
||||
|
||||
<table class="table table-striped table-condensed" tal:condition="schedule_dates and schedule_sums">
|
||||
<tr>
|
||||
<th>Echéances</th>
|
||||
<th>Montant prélevé</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>${schedule_dates[0]}</td>
|
||||
<td>${layout.to_euro(schedule_sums[0]/100)}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>${schedule_dates[1]}</td>
|
||||
<td>${layout.to_euro(schedule_sums[1]/100)}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>${schedule_dates[2]}</td>
|
||||
<td>${layout.to_euro(schedule_sums[1]/100)}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div> <!-- pay_ok -->
|
||||
</div> <!-- row 2 -->
|
||||
|
||||
<div class="row">
|
||||
<div id="step2" class="col-md-8" tal:condition="pbx_total > 0">
|
||||
<h4>2. Réglez :</h4>
|
||||
<p class="text-danger" tal:condition="nfois == '3'">
|
||||
Attention, vous ne pouvez pas régler une facture en 3 fois avec une <b>e-carte bleue à usage unique</b> !
|
||||
</p>
|
||||
|
||||
<!-- appel systeme PAYBOX -->
|
||||
<form action="${url_paybox}" method="POST">
|
||||
<input type="hidden" name="PBX_SITE" value="${pbx_site}" />
|
||||
<input type="hidden" name="PBX_RANG" value="${pbx_rang}" />
|
||||
<input type="hidden" name="PBX_IDENTIFIANT" value="${pbx_identifiant}" />
|
||||
|
||||
<input type="hidden" name="PBX_TOTAL" value="${pbx_total}" />
|
||||
<input type="hidden" name="PBX_DEVISE" value="${pbx_devise}" />
|
||||
<input type="hidden" name="PBX_CMD" value="${pbx_cmd}" />
|
||||
<input type="hidden" name="PBX_PORTEUR" value="${pbx_porteur}" />
|
||||
<input type="hidden" name="PBX_RETOUR" value="${pbx_retour}" />
|
||||
<input type="hidden" name="PBX_DATEVALMAX" value="${pbx_datevalmax}" />
|
||||
<input type="hidden" name="PBX_REPONDRE_A" value="${pbx_repondre_a}" />
|
||||
<input type="hidden" name="PBX_HASH" value="${pbx_hash}" />
|
||||
<input type="hidden" name="PBX_TIME" value="${pbx_time}" />
|
||||
<input type="hidden" name="PBX_HMAC" value="${pbx_hmac}" />
|
||||
|
||||
<div class="form-group">
|
||||
<button class="btn btn-primary" type="submit" id="pay">
|
||||
<span class="glyphicon glyphicon-ok"></span> Procéder au paiement sécurisé
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div><!-- step2 -->
|
||||
</div> <!-- row 3-->
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$(".select_bill").change(
|
||||
function () {
|
||||
if ($(".select_bill:checked").length) {
|
||||
$('button#calculate').prop('disabled', false);
|
||||
} else {
|
||||
$('button#calculate').prop('disabled', true);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- intégrer les macros Google analytics -->
|
||||
<div tal:condition="ref == 'PAP'">
|
||||
<div metal:use-macro="snippets.macros['pap_stats']"></div>
|
||||
</div>
|
||||
<div tal:condition="ref == 'PEM'">
|
||||
<div metal:use-macro="snippets.macros['pem_stats']"></div>
|
||||
</div>
|
||||
<div tal:condition="ref == 'PAS'">
|
||||
<div metal:use-macro="snippets.macros['pas_stats']"></div>
|
||||
</div>
|
||||
<div tal:condition="ref == 'PRS'">
|
||||
<div metal:use-macro="snippets.macros['prs_stats']"></div>
|
||||
</div>
|
||||
<div tal:condition="ref == 'B96'">
|
||||
<div metal:use-macro="snippets.macros['b96_stats']"></div>
|
||||
</div>
|
||||
</div>
|
||||
</metal:block>
|
||||
22
monaem/templates/reglement/reglement_acc.pt
Normal file
22
monaem/templates/reglement/reglement_acc.pt
Normal file
@@ -0,0 +1,22 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<metal:js metal:fill-slot="additional_scripts">
|
||||
|
||||
</metal:js>
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<br />
|
||||
<p>
|
||||
<b>Votre paiement a été accepté par notre banque</b>.<br />
|
||||
<br />
|
||||
Votre compte bancaire ou postal sera débité prochainement.<br />
|
||||
Votre compte client sera mis à jour. <br />
|
||||
</p>
|
||||
|
||||
<br />
|
||||
[ <a href="${request.application_url}">Revenir à la page d'accueil</a> ]
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
</metal:block>
|
||||
|
||||
24
monaem/templates/reglement/reglement_ann.pt
Normal file
24
monaem/templates/reglement/reglement_ann.pt
Normal file
@@ -0,0 +1,24 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<metal:js metal:fill-slot="additional_scripts">
|
||||
|
||||
</metal:js>
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<br />
|
||||
<p>
|
||||
<b>Vous avez interrompu la procédure de paiement</b>.<br />
|
||||
<br />
|
||||
Votre compte bancaire ou postal n'a pas été affecté.<br />
|
||||
Votre compte client reste inchangé.<br />
|
||||
<br />
|
||||
Il vous sera possible de recommencer votre règlement ultérieurement.
|
||||
</p>
|
||||
|
||||
<br />
|
||||
[ <a href="${request.application_url}">Revenir à la page d'accueil</a> ]
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
</metal:block>
|
||||
|
||||
21
monaem/templates/reglement/reglement_ref.pt
Normal file
21
monaem/templates/reglement/reglement_ref.pt
Normal file
@@ -0,0 +1,21 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<metal:js metal:fill-slot="additional_scripts">
|
||||
|
||||
</metal:js>
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<br />
|
||||
<p>
|
||||
<b>Votre paiement n'a pas été accepté par PAYBOX</b>.
|
||||
<br />
|
||||
Vous pouvez attendre un moment et renouveler votre opération de paiement.
|
||||
</p>
|
||||
|
||||
<br />
|
||||
[ <a href="${request.application_url}">Revenir à la page d'accueil</a> ]
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
</metal:block>
|
||||
|
||||
Reference in New Issue
Block a user