mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
Added forgotten column and a link in tools
This commit is contained in:
parent
e97135bf47
commit
1c05671784
@ -16,6 +16,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user.is_root %}
|
{% if user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user.is_root %}
|
||||||
<li><a href="{{ url('subscription:subscription') }}">{% trans %}Subscriptions{% endtrans %}</a></li>
|
<li><a href="{{ url('subscription:subscription') }}">{% trans %}Subscriptions{% endtrans %}</a></li>
|
||||||
|
<li><a href="{{ url('subscription:stats') }}">{% trans %}Subscription stats{% endtrans %}</a></li>
|
||||||
<li><a href="{{ url('club:club_new') }}">{% trans %}New club{% endtrans %}</a></li>
|
<li><a href="{{ url('club:club_new') }}">{% trans %}New club{% endtrans %}</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -20,17 +20,19 @@
|
|||||||
{% for location in locations %}
|
{% for location in locations %}
|
||||||
<th>{{ location[1] }}</th>
|
<th>{{ location[1] }}</th>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
<th>{% trans %}Total{% endtrans %}</th>
|
||||||
{% for type in subscriptions_types %}
|
{% for type in subscriptions_types %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ subscriptions_types[type]['name'] }}</td>
|
<td>{{ subscriptions_types[type]['name'] }}</td>
|
||||||
{% for location in locations %}
|
{% for location in locations %}
|
||||||
<td>
|
<td>
|
||||||
{% trans %}Total{% endtrans %} : {{ subscriptions_total.filter(location=location[0]).count()}}<br>
|
{% trans %}Total{% endtrans %} : {{ subscriptions_total.filter(subscription_type=type, location=location[0]).count()}}<br>
|
||||||
{% for p_type in payment_types %}
|
{% for p_type in payment_types %}
|
||||||
{{ p_type[1] }} : {{ subscriptions_total.filter(location=location[0], payment_method=p_type[0]).count()}}<br>
|
{{ p_type[1] }} : {{ subscriptions_total.filter(subscription_type=type, location=location[0], payment_method=p_type[0]).count()}}<br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
<td>{{subscriptions_total.filter(subscription_type=type).count()}}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
Reference in New Issue
Block a user