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 'variables';
@import 'global'; @import 'global';
@import 'nav'; @import 'nav';
@import 'account';
@import 'forms'; @import 'forms';
@import 'clickables'; @import 'clickables';

View File

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

View File

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

View File

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

View File

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