2016-09-04 19:24:53 +02:00
|
|
|
{% extends "core/base.jinja" %}
|
2016-08-18 21:32:18 +02:00
|
|
|
|
2023-03-30 14:38:40 +02:00
|
|
|
{%- block additional_css -%}
|
2024-07-24 00:16:31 +02:00
|
|
|
<link rel="stylesheet" href="{{ scss('user/user_stats.scss') }}">
|
2023-03-30 14:38:40 +02:00
|
|
|
{%- endblock -%}
|
|
|
|
|
2016-08-18 21:32:18 +02:00
|
|
|
{% block title %}
|
2024-07-24 00:16:31 +02:00
|
|
|
{% trans user_name=profile.get_display_name() %}{{ user_name }}'s stats{% endtrans %}
|
2016-08-18 21:32:18 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2016-09-04 19:24:53 +02:00
|
|
|
{% block content %}
|
2024-07-24 00:16:31 +02:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
{% if profile.permanencies %}
|
|
|
|
<div>
|
|
|
|
<h3>{% trans %}Permanencies{% endtrans %}</h3>
|
|
|
|
<div class="flexed">
|
2023-03-30 14:38:40 +02:00
|
|
|
<div><span>Foyer :</span><span>{{ total_foyer_time }}</span></div>
|
|
|
|
<div><span>Gommette :</span><span>{{ total_gommette_time }}</span></div>
|
|
|
|
<div><span>MDE :</span><span>{{ total_mde_time }}</span></div>
|
|
|
|
<div><b>Total :</b><b>{{ total_perm_time }}</b></div>
|
2024-07-24 00:16:31 +02:00
|
|
|
</div>
|
2023-03-30 14:38:40 +02:00
|
|
|
</div>
|
2024-07-24 00:16:31 +02:00
|
|
|
{% endif %}
|
2023-03-30 14:38:40 +02:00
|
|
|
|
2024-07-24 00:16:31 +02:00
|
|
|
<div>
|
2023-03-30 14:38:40 +02:00
|
|
|
<h3>{% trans %}Buyings{% endtrans %}</h3>
|
|
|
|
<div class="flexed">
|
2024-07-24 00:16:31 +02:00
|
|
|
<div><span>Foyer :</span><span>{{ total_foyer_buyings }} €</span></div>
|
|
|
|
<div><span>Gommette :</span><span>{{ total_gommette_buyings }} €</span></div>
|
|
|
|
<div><span>MDE :</span><span>{{ total_mde_buyings }} €</span></div>
|
|
|
|
<div><b>Total :</b><b>{{ total_foyer_buyings + total_gommette_buyings + total_mde_buyings }} €</b>
|
|
|
|
</div>
|
2023-03-30 14:38:40 +02:00
|
|
|
</div>
|
2024-07-24 00:16:31 +02:00
|
|
|
</div>
|
2016-09-15 11:07:03 +02:00
|
|
|
</div>
|
2023-03-30 14:38:40 +02:00
|
|
|
|
2024-07-24 00:16:31 +02:00
|
|
|
<div>
|
|
|
|
<h3>{% trans %}Product top 10{% endtrans %}</h3>
|
|
|
|
<table>
|
2016-09-22 11:09:15 +02:00
|
|
|
<thead>
|
2024-07-24 00:16:31 +02:00
|
|
|
<tr>
|
|
|
|
<td>{% trans %}Product{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Quantity{% endtrans %}</td>
|
|
|
|
</tr>
|
2016-09-22 11:09:15 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2024-07-24 00:16:31 +02:00
|
|
|
{% for p in top_product %}
|
2016-09-22 11:09:15 +02:00
|
|
|
<tr>
|
2024-07-24 00:16:31 +02:00
|
|
|
<td>{{ p['product__name'] }}</td>
|
|
|
|
<td>{{ p['product_sum'] }}</td>
|
2016-09-22 11:09:15 +02:00
|
|
|
</tr>
|
2024-07-24 00:16:31 +02:00
|
|
|
{% endfor %}
|
2016-09-22 11:09:15 +02:00
|
|
|
</tbody>
|
2024-07-24 00:16:31 +02:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-30 14:38:40 +02:00
|
|
|
{% endblock %}
|