2019-12-09 01:02:34 +01:00
|
|
|
{% extends 'layout.twig' %}
|
|
|
|
|
|
|
|
{% block title "Ğ1-Marché - Tableau de bord User" %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<div class="container" style="color:floralwhite;background-color: #333333;padding: 1rem;">
|
|
|
|
<div class="container tab-de-bord">
|
2019-12-23 02:09:54 +01:00
|
|
|
<h3 style="display:inline-block;">Tableau de bord User - {{ user_affiche }}</h3>
|
2019-12-09 01:02:34 +01:00
|
|
|
</div>
|
|
|
|
<ul class="list-group list-group-flush">
|
|
|
|
<div class="container" style="color:black;background-color: lightgray;opacity: 0.9;margin: 1rem;padding:1rem;">
|
2019-12-09 15:35:12 +01:00
|
|
|
<form action="{{ path('account.active') }}" method="post">
|
2019-12-23 02:09:54 +01:00
|
|
|
{% if actif_affiche %}
|
|
|
|
<button class="btn btn-primary">Désactiver l'utilisateur</button>
|
|
|
|
{% else %}
|
|
|
|
<button class="btn btn-primary">Activer l'utilisateur</button>
|
|
|
|
{% endif %}
|
|
|
|
<div style="width:0;height:0;"> {{ field('actif', actif_affiche, "", {type: 'hidden'}) }}
|
|
|
|
{{ field('username', user_affiche, "", {type: 'hidden'}) }}
|
|
|
|
{{ field('id', id_affiche, "", {type: 'hidden'}) }}
|
|
|
|
</div>
|
2019-12-09 01:02:34 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</ul>
|
|
|
|
<p></p>
|
|
|
|
<h4>Profil</h4>
|
|
|
|
<ul class="list-group list-group-flush">
|
2019-12-10 04:36:49 +01:00
|
|
|
<div class="container" style="color:black;background-color: lightgray;opacity: 0.9;margin: 1rem;padding:1rem;">
|
|
|
|
<form action="" method="post">
|
|
|
|
<!-- csrf_input() -->
|
2019-12-23 02:09:54 +01:00
|
|
|
{{ field('firstname', user.firstname, 'Prénom') }}
|
|
|
|
{{ field('lastname', user.lastname, 'Nom') }}
|
|
|
|
Adresse mail {{ user.email }}<p></p>
|
|
|
|
Clé publique {{ user.pubkey }}
|
2019-12-10 04:36:49 +01:00
|
|
|
<p></p>
|
|
|
|
<button class="btn btn-primary">Modifier les informations</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2019-12-09 01:02:34 +01:00
|
|
|
</ul>
|
|
|
|
<ul class="list-group list-group-flush">
|
|
|
|
<div class="container" style="color:black;background-color: lightgray;opacity: 0.9;margin: 1rem;padding:1rem;">
|
2019-12-10 04:36:49 +01:00
|
|
|
<form action="{{ path('auth.reset') }}" method="post">
|
2019-12-09 01:02:34 +01:00
|
|
|
<button class="btn btn-primary">Renvoyer un mot de passe</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</ul>
|
|
|
|
<p></p>
|
|
|
|
<h4>Liste des antennes suivies</h4>
|
|
|
|
|
|
|
|
<ul class="list-group list-group-flush">
|
|
|
|
<li class="liste_antennes list-group-item" style="color:black;padding: .2rem 1.25rem;">
|
2019-12-23 02:09:54 +01:00
|
|
|
{% set antenne_suivie = user.suiviantenne|split('|') %}
|
2019-12-09 01:02:34 +01:00
|
|
|
{% for antenne in antenne_suivie %}
|
|
|
|
{% for item in listeAntennes %}
|
|
|
|
{% if (item.id == antenne) %}
|
|
|
|
<li class="liste_antennes list-group-item" style="padding: .2rem 1.25rem;">
|
|
|
|
<a style="color:black;" href="" title="{{ item.antenneName }}">
|
|
|
|
{{ item.antenneName }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<p></p>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|