account infos

This commit is contained in:
Tykayn 2024-07-16 11:04:21 +02:00 committed by tykayn
parent 0e9cc0b912
commit 9a6405e418
6 changed files with 34 additions and 12 deletions

View File

@ -0,0 +1,6 @@
#account_main{
menu{
width: 10rem;
padding: 1rem;
}
}

View File

@ -1,6 +1,7 @@
@import 'variables';
@import 'global';
@import 'nav';
@import 'account';
@import 'forms';
@import 'clickables';

View File

@ -5,8 +5,12 @@
{% block body %}
<div id="account_main">
<div id="account_nav">
{% include 'account/nav.html.twig' %}
</div>
<div id="account_main_content">
{% block account_body %}{% endblock %}
</div>
</div>
{% endblock body %}

View File

@ -9,8 +9,13 @@
<h1>
Mon compte
</h1>
<a href="{{ app_account }}">modifier mes informations</a>
<p>
Coucou!
Coucou {{ app.user.email }}!
</p>
<p>
Votre description:
{{ app.user.description }}
</p>
<footer>

View File

@ -1,6 +1,11 @@
<menu>
{# Navigation de l'espace utilisateur #}
<ul>
<li>
<a href="{{ path('app_account') }}">
Tableau de bord
</a>
</li>
<li>
<a href="{{ path('app_account_history') }}">
Historique

View File

@ -1,17 +1,18 @@
<div id="nav_menu">
<nav><div class="mb-3">
<a href="{{path('app_index')}}">Accueil</a>
<nav>
<div class="mb-3">
<a href="{{ path('app_index') }}">Accueil</a>
{% if app.user %}
You are logged in as
<a class="account-link" href="{{path('app_account')}}">{{ app.user.userIdentifier }}</a>
<a class="account-link" href="{{ path('app_account') }}">{{ app.user.userIdentifier }}</a>
, <a href="{{ path('app_logout') }}">Logout</a>
{% else %}
<a href="{{path('app_login')}}">{{ 'user.login'|trans }}</a>
<a href="{{path('app_register')}}">Register</a>
<a href="{{ path('app_login') }}">{{ 'user.login'|trans }}</a>
<a href="{{ path('app_register') }}">Register</a>
{% endif %}
</div>
{# <a href="{{path('admin')}}">Admin</a>#}
{# <a href="{{path('admin')}}">Admin</a> #}
</nav>
</div>