2016-07-17 18:08:56 +00:00
|
|
|
{% extends "cotisations/sidebar.html" %}
|
|
|
|
{% load bootstrap3 %}
|
|
|
|
{% load staticfiles%}
|
|
|
|
|
|
|
|
{% block title %}Controle des factures{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h2>Controle et validité des factures</h2>
|
2016-11-18 10:31:33 +00:00
|
|
|
{% if facture_list.paginator %}
|
|
|
|
{% include "pagination.html" with list=facture_list %}
|
|
|
|
{% endif %}
|
2016-07-17 18:08:56 +00:00
|
|
|
<form class="form" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ controlform.management_form }}
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2016-11-27 23:41:41 +00:00
|
|
|
<th>Profil</th>
|
|
|
|
<th>Nom</th>
|
|
|
|
<th>Prénom</th>
|
2016-07-17 18:08:56 +00:00
|
|
|
<th>Designation</th>
|
|
|
|
<th>Prix total</th>
|
|
|
|
<th>Moyen de paiement</th>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Validité</th>
|
|
|
|
<th>Controle trésorier</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for form in controlform.forms %}
|
|
|
|
{% bootstrap_form_errors form %}
|
|
|
|
<tr>
|
2016-11-27 23:41:41 +00:00
|
|
|
|
|
|
|
<td><a href="{% url "users:profil" form.instance.user.id%}" class="btn btn-primary btn-sm" role="button"><i class="glyphicon glyphicon-user"></i></a>
|
|
|
|
</td>
|
|
|
|
<td>{{ form.instance.user.name }}</td>
|
|
|
|
<td>{{ form.instance.user.surname }}</td>
|
2016-07-17 18:08:56 +00:00
|
|
|
<td>{{ form.instance.name }}</td>
|
|
|
|
<td>{{ form.instance.prix_total }}</td>
|
|
|
|
<td>{{ form.instance.paiement }}</td>
|
|
|
|
<td>{{ form.instance.date }}</td>
|
|
|
|
<td>{{ form.valid }}</td>
|
|
|
|
<td>{{ form.control }}</td>
|
|
|
|
{% for hidden in form.hidden_fields %}
|
|
|
|
{{ hidden }}
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
{% bootstrap_button "Modifier" button_type="submit" icon="star" %}
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{% endblock %}
|