2017-05-20 13:57:21 +02:00
|
|
|
{% extends "kfet/base_col_2.html" %}
|
2016-08-04 05:21:04 +02:00
|
|
|
|
2017-05-20 13:57:21 +02:00
|
|
|
{% block title %}Caisses{% endblock %}
|
|
|
|
{% block header-title %}Caisses{% endblock %}
|
2016-08-04 05:21:04 +02:00
|
|
|
|
2017-06-12 01:51:10 +02:00
|
|
|
{% block fixed %}
|
2016-08-04 05:21:04 +02:00
|
|
|
|
2017-06-12 01:51:10 +02:00
|
|
|
<aside>
|
|
|
|
<div class="heading">
|
|
|
|
{{ checkouts|length }}
|
|
|
|
<span class="sub">caisse{{ checkouts|length|pluralize }}</span>
|
|
|
|
</div>
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
<div class="buttons">
|
|
|
|
<a class="btn btn-primary" href="{% url 'kfet.checkout.create' %}">
|
2017-05-30 20:44:30 +02:00
|
|
|
<span class="glyphicon glyphicon-plus"></span>
|
|
|
|
<span>Créer une caisse</span>
|
|
|
|
</a>
|
2017-05-20 13:57:21 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
2017-06-12 01:51:10 +02:00
|
|
|
{% block main %}
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
kfet -- Tables are sortable
Many tables in kfet app templates become sortable:
account list, negative account list, article list, article inventory
list, article supplier list, article category list, checkout list,
checkout statement list, inventory list, inventory details, order list,
order creation, order details.
This is achieved thanks to the jQuery plugin 'tablesorter':
https://mottie.github.io/tablesorter/docs/
- Affected tables also got sticky headers (it stays visible on scroll).
- Dates format are modified in order to ease the date sorting with the
plugin (it avoids writing a custom parser, or an extractor from
additional hidden element in the table cells).
- Tables whose content is classified by category (of articles) now uses
several tbodies. This has minor effects on the tables style.
- Tags of the header help signs become 'i', instead of 'span', in order
to avoid weird spacing.
2017-11-27 18:24:22 +01:00
|
|
|
<table
|
|
|
|
class="table table-hover table-condensed sortable"
|
2018-04-07 13:42:19 +02:00
|
|
|
{# Initial sort: [(valid_to,desc)] #}
|
kfet -- Tables are sortable
Many tables in kfet app templates become sortable:
account list, negative account list, article list, article inventory
list, article supplier list, article category list, checkout list,
checkout statement list, inventory list, inventory details, order list,
order creation, order details.
This is achieved thanks to the jQuery plugin 'tablesorter':
https://mottie.github.io/tablesorter/docs/
- Affected tables also got sticky headers (it stays visible on scroll).
- Dates format are modified in order to ease the date sorting with the
plugin (it avoids writing a custom parser, or an extractor from
additional hidden element in the table cells).
- Tables whose content is classified by category (of articles) now uses
several tbodies. This has minor effects on the tables style.
- Tags of the header help signs become 'i', instead of 'span', in order
to avoid weird spacing.
2017-11-27 18:24:22 +01:00
|
|
|
data-sortlist="[[3,1]]">
|
2017-06-12 01:51:10 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>Nom</td>
|
|
|
|
<td class="text-right">Balance</td>
|
kfet -- Tables are sortable
Many tables in kfet app templates become sortable:
account list, negative account list, article list, article inventory
list, article supplier list, article category list, checkout list,
checkout statement list, inventory list, inventory details, order list,
order creation, order details.
This is achieved thanks to the jQuery plugin 'tablesorter':
https://mottie.github.io/tablesorter/docs/
- Affected tables also got sticky headers (it stays visible on scroll).
- Dates format are modified in order to ease the date sorting with the
plugin (it avoids writing a custom parser, or an extractor from
additional hidden element in the table cells).
- Tables whose content is classified by category (of articles) now uses
several tbodies. This has minor effects on the tables style.
- Tags of the header help signs become 'i', instead of 'span', in order
to avoid weird spacing.
2017-11-27 18:24:22 +01:00
|
|
|
<td class="text-right" data-parser="shortDate">Déb. valid.</td>
|
|
|
|
<td class="text-right" data-parser="shortDate">Fin valid.</td>
|
2017-06-12 01:51:10 +02:00
|
|
|
<td class="text-right">Protégée</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for checkout in checkouts %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{% url 'kfet.checkout.read' checkout.pk %}">
|
|
|
|
{{ checkout.name }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td class="text-right">{{ checkout.balance}}€</td>
|
kfet -- Tables are sortable
Many tables in kfet app templates become sortable:
account list, negative account list, article list, article inventory
list, article supplier list, article category list, checkout list,
checkout statement list, inventory list, inventory details, order list,
order creation, order details.
This is achieved thanks to the jQuery plugin 'tablesorter':
https://mottie.github.io/tablesorter/docs/
- Affected tables also got sticky headers (it stays visible on scroll).
- Dates format are modified in order to ease the date sorting with the
plugin (it avoids writing a custom parser, or an extractor from
additional hidden element in the table cells).
- Tables whose content is classified by category (of articles) now uses
several tbodies. This has minor effects on the tables style.
- Tags of the header help signs become 'i', instead of 'span', in order
to avoid weird spacing.
2017-11-27 18:24:22 +01:00
|
|
|
<td class="text-right" title="{{ checkout.valid_from }}">
|
|
|
|
{{ checkout.valid_from|date:'d/m/Y H:i' }}
|
|
|
|
</td>
|
|
|
|
<td class="text-right" title="{{ checkout.valid_to }}">
|
|
|
|
{{ checkout.valid_to|date:'d/m/Y H:i' }}
|
|
|
|
</td>
|
2017-06-12 01:51:10 +02:00
|
|
|
<td class="text-right">{{ checkout.is_protected|yesno }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-08-12 10:03:39 +02:00
|
|
|
</div>
|
2016-08-04 05:21:04 +02:00
|
|
|
|
|
|
|
{% endblock %}
|