mirror of
https://github.com/ae-utbm/sith.git
synced 2025-06-26 21:25:21 +00:00
46 lines
1.3 KiB
Django/Jinja
46 lines
1.3 KiB
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans %}Invoices call{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h3>{% trans date=start_date|date("F Y") %}Invoices call for {{ date }}{% endtrans %}</h3>
|
|
<p>{% trans %}Choose another month: {% endtrans %}</p>
|
|
<form method="get" action="">
|
|
<select name="month">
|
|
{% for m in months %}
|
|
<option value="{{ m|date("Y-m") }}">{{ m|date("Y-m") }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
<input type="submit" value="{% trans %}Go{% endtrans %}" />
|
|
</form>
|
|
|
|
<form method="post" action="">
|
|
{% csrf_token %}
|
|
<br>
|
|
<p>{% trans %}CB Payments{% endtrans %} : {{ sum_cb }} €</p>
|
|
<br>
|
|
|
|
<table>
|
|
<thead>
|
|
<td>{% trans %}Club{% endtrans %}</td>
|
|
<td>{% trans %}Sum{% endtrans %}</td>
|
|
<td>{% trans %}Validated{% endtrans %}</td>
|
|
</thead>
|
|
<tbody>
|
|
{% for data in club_data %}
|
|
<tr>
|
|
<td>{{ data.club.name }}</td>
|
|
<td>{{"%.2f"|format(data.sum)}} €</td>
|
|
<td>
|
|
{{ form[form.get_club_name(data.club.id)] }}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<input type="hidden" name="month" value="{{ start_date|date('Y-m') }}">
|
|
<button type="submit">{% trans %}Save validation{% endtrans %}</button>
|
|
</form>
|
|
{% endblock %} |