Fix templates

This commit is contained in:
Ludovic Stephan 2021-02-18 17:58:08 +01:00
parent 4e758fbba0
commit a421bec625
2 changed files with 13 additions and 25 deletions

View file

@ -35,20 +35,16 @@
{% block main %} {% block main %}
<div class="table-responsive"> <div class="table-responsive">
<table <table class="table table-hover table-condensed sortable" {# Initial sort: [(trigramme,asc)] #}
class="table table-hover table-condensed sortable"
{# Initial sort: [(trigramme,asc)] #}
data-sortlist="[[0,0]]"> data-sortlist="[[0,0]]">
<thead> <thead>
<tr> <tr>
<td class="text-center">Tri.</td> <td class="text-center">Tri.</td>
<td>Nom</td> <td>Nom</td>
<td class="text-right">Balance</td> <td class="text-right">Balance</td>
<td class="text-right">Réelle</td>
<td data-sorter="shortDate">Début</td> <td data-sorter="shortDate">Début</td>
<td>Découvert autorisé</td> <td>Découvert autorisé</td>
<td data-sorter="shortDate">Jusqu'au</td> <td data-sorter="shortDate">Jusqu'au</td>
<td>Balance offset</td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -61,11 +57,6 @@
</td> </td>
<td>{{ neg.account.name }}</td> <td>{{ neg.account.name }}</td>
<td class="text-right">{{ neg.account.balance|floatformat:2 }}€</td> <td class="text-right">{{ neg.account.balance|floatformat:2 }}€</td>
<td class="text-right">
{% if neg.balance_offset %}
{{ neg.account.real_balance|floatformat:2 }}€
{% endif %}
</td>
<td title="{{ neg.start }}"> <td title="{{ neg.start }}">
{{ neg.start|date:'d/m/Y H:i'}} {{ neg.start|date:'d/m/Y H:i'}}
</td> </td>
@ -73,7 +64,6 @@
<td title="{{ neg.authz_overdraft_until }}"> <td title="{{ neg.authz_overdraft_until }}">
{{ neg.authz_overdraft_until|date:'d/m/Y H:i' }} {{ neg.authz_overdraft_until|date:'d/m/Y H:i' }}
</td> </td>
<td>{{ neg.balance_offset|default_if_none:'' }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

View file

@ -39,7 +39,8 @@
<li>{{ account.departement }} {{ account.promo }}</li> <li>{{ account.departement }} {{ account.promo }}</li>
<li> <li>
{% if account.is_cof %} {% if account.is_cof %}
<span title="Réduction de {{ kfet_config.reduction_cof }} % sur tes commandes" data-toggle="tooltip" data-placement="right">Adhérent COF</span> <span title="Réduction de {{ kfet_config.reduction_cof }} % sur tes commandes" data-toggle="tooltip"
data-placement="right">Adhérent COF</span>
{% else %} {% else %}
Non-COF Non-COF
{% endif %} {% endif %}
@ -54,9 +55,6 @@
{% if account.negative.start %} {% if account.negative.start %}
<li>Depuis le <b>{{ account.negative.start|date:"d/m/Y à H:i" }}</b></li> <li>Depuis le <b>{{ account.negative.start|date:"d/m/Y à H:i" }}</b></li>
{% endif %} {% endif %}
{% if account.real_balance != account.balance %}
<li>Solde réel: {{ account.real_balance }} €</li>
{% endif %}
<li> <li>
Plafond : Plafond :
<b>{{ account.negative.authz_overdraft_amount|default:kfet_config.overdraft_amount }} €</b> <b>{{ account.negative.authz_overdraft_amount|default:kfet_config.overdraft_amount }} €</b>