2016-08-04 05:21:04 +02:00
|
|
|
{% extends "kfet/base.html" %}
|
|
|
|
|
2016-08-22 01:57:28 +02:00
|
|
|
{% block title %}Liste des caisses{% endblock %}
|
2016-08-12 10:03:39 +02:00
|
|
|
{% block content-header-title %}Caisses{% endblock %}
|
2016-08-04 05:21:04 +02:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2016-08-12 10:03:39 +02:00
|
|
|
<div class="row">
|
2016-08-22 01:57:28 +02:00
|
|
|
<div class="col-sm-4 col-md-3 col-content-left">
|
|
|
|
<div class="content-left">
|
|
|
|
<div class="content-left-top text-center">
|
2016-08-30 20:32:00 +02:00
|
|
|
<div class="line line-big">{{ checkouts|length }}</div>
|
|
|
|
<div class="line line-bigsub">caisse{{ checkouts|length|pluralize }}</div>
|
2016-08-22 01:57:28 +02:00
|
|
|
</div>
|
|
|
|
<div class="buttons">
|
2016-08-22 02:52:59 +02:00
|
|
|
<a class="btn btn-primary btn-lg" href="{% url 'kfet.checkout.create' %}">Créer une caisse</a>
|
2016-08-22 01:57:28 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-8 col-md-9 col-content-right">
|
|
|
|
{% include 'kfet/base_messages.html' %}
|
|
|
|
<div class="content-right">
|
|
|
|
<div class="content-right-block">
|
|
|
|
<h2>Liste des caisses</h2>
|
2016-08-30 20:32:00 +02:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>Nom</td>
|
|
|
|
<td class="text-right">Balance</td>
|
|
|
|
<td class="text-right">Déb. valid.</td>
|
|
|
|
<td class="text-right">Fin valid.</td>
|
|
|
|
<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 %}">
|
|
|
|
<span class="glyphicon glyphicon-cog"></span>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>{{ checkout.name }}</td>
|
|
|
|
<td class="text-right">{{ checkout.balance}}€</td>
|
|
|
|
<td class="text-right">{{ checkout.valid_from }}</td>
|
|
|
|
<td class="text-right">{{ checkout.valid_to }}</td>
|
|
|
|
<td class="text-right">{{ checkout.is_protected }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-08-22 01:57:28 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-12 10:03:39 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-04 05:21:04 +02:00
|
|
|
|
|
|
|
{% endblock %}
|