account infos
This commit is contained in:
parent
0e9cc0b912
commit
9a6405e418
6
assets/styles/_account.scss
Normal file
6
assets/styles/_account.scss
Normal file
@ -0,0 +1,6 @@
|
||||
#account_main{
|
||||
menu{
|
||||
width: 10rem;
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
@import 'variables';
|
||||
@import 'global';
|
||||
@import 'nav';
|
||||
@import 'account';
|
||||
@import 'forms';
|
||||
@import 'clickables';
|
||||
|
||||
|
@ -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 %}
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user