Fix templates
This commit is contained in:
parent
4e758fbba0
commit
a421bec625
2 changed files with 13 additions and 25 deletions
|
@ -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"
|
data-sortlist="[[0,0]]">
|
||||||
{# Initial sort: [(trigramme,asc)] #}
|
|
||||||
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,11 +64,10 @@
|
||||||
<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>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -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>
|
||||||
|
@ -89,20 +87,20 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$( function() {
|
$(function () {
|
||||||
|
|
||||||
// Tooltips
|
// Tooltips
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
|
|
||||||
// Opened tab button
|
// Opened tab button
|
||||||
let tabs_buttons = $('.tabs-buttons a');
|
let tabs_buttons = $('.tabs-buttons a');
|
||||||
tabs_buttons.click( function() {
|
tabs_buttons.click(function () {
|
||||||
tabs_buttons.removeClass('focus');
|
tabs_buttons.removeClass('focus');
|
||||||
$(this).addClass('focus');
|
$(this).addClass('focus');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Delete button
|
// Delete button
|
||||||
$('#button-delete').click(function() {
|
$('#button-delete').click(function () {
|
||||||
$.confirm({
|
$.confirm({
|
||||||
title: 'Confirmer la suppression',
|
title: 'Confirmer la suppression',
|
||||||
content: `
|
content: `
|
||||||
|
@ -115,10 +113,10 @@ $( function() {
|
||||||
animation: 'top',
|
animation: 'top',
|
||||||
closeAnimation: 'bottom',
|
closeAnimation: 'bottom',
|
||||||
keyboardEnabled: true,
|
keyboardEnabled: true,
|
||||||
confirm: function() {
|
confirm: function () {
|
||||||
$('#account-delete-form').submit();
|
$('#account-delete-form').submit();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
Loading…
Add table
Reference in a new issue