caisse-bliss/templates/account/index.html.twig

56 lines
1.2 KiB
Twig

{% extends 'account/base.html.twig' %}
{% block title %}Votre compte{% endblock %}
{% block account_body %}
<div id="account_home">
<h1>
Tableau de bord
</h1>
<a href="{{ path('app_account') }}">modifier mes informations (todo)</a>
<p>
Coucou {{ app.user.email }}!
</p>
<p>
Votre description:
{{ app.user.description }}
</p>
<div class="current">
Festival en cours: {{ currentFestival }}
</div>
<div class="data">
<table>
<tr>
<td>
Produits
</td>
<td>
{{ productsOfOwner|length }}
</td>
</tr>
<tr>
<td>
Ventes
</td>
<td>
{{ productsSoldOfOwner|length }}
</td>
</tr>
</table>
</div>
<footer>
<p>
<a href="{{ path('app_logout') }}">Logout</a>
</p>
</footer>
</div>
</div>
{% endblock account_body %}