From 3f8814edd80de9c5cb8c16d2d13483b68e374b49 Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Sat, 27 Jan 2018 17:35:33 +0100 Subject: [PATCH] =?UTF-8?q?Menu=20en=20accord=C3=A9on.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/templates/users/profil.html | 466 +++++++++++++++++------------- 1 file changed, 267 insertions(+), 199 deletions(-) diff --git a/users/templates/users/profil.html b/users/templates/users/profil.html index f41ce8cd..21e455db 100644 --- a/users/templates/users/profil.html +++ b/users/templates/users/profil.html @@ -28,206 +28,274 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}Profil{% endblock %} {% block content %} -

{{ users.class_name }} : {{ users.surname }} {{users.name}}

-
- - - Editer - - - - Changer le mot de passe - - {% can_change User state %} - - - Changer le statut - - {% acl_end %} - {% can_change User groups %} - - - Gérer les groupes - - {% acl_end %} - - - Historique - -
-

-
-

- - - {% if users.is_class_club %} - - {% if users.club.mailing %} - - {% else %} - - {% endif %} - {% else %} - - - {% endif %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {% if users.end_adhesion != None %} - - {% else %} - - {% endif %} - - {% if users.end_whitelist != None %} - - {% else %} - - {% endif %} - - - {% if users.end_ban != None %} - - {% else %} - - {% endif %} - - {% if users.state == 0 %} - - {% elif users.state == 1 %} - - {% else %} - - {% endif %} - - - - {% if users.has_access == True %} - - {% else %} - - {% endif %} - - {% if users.groups.all %} - - {% else %} - - {% endif %} - - {% if allow_online_payment %} - - - - {% endif %} - {% if users.shell %} - - - {% endif %} - -
Mailing{{ users.pseudo }}(-admin)Mailing désactivéePrénom{{ users.name }}Nom{{ users.surname }}
Pseudo{{ users.pseudo }}E-mail{{ users.email }}
Chambre{{ users.room }}Téléphone{{ users.telephone }}
École{{ users.school }}Commentaire{{ users.comment }}
Date d'inscription{{ users.registered }}Dernière connexion{{ users.last_login }}
Fin d'adhésion{{ users.end_adhesion }}Non adhérentAccès gracieux{{ users.end_whitelist }}Aucun
Bannissement{{ users.end_ban }}Non banniStatutActifDésactivéArchivé
Accès internetActif (jusqu'au {{ users.end_access }})DésactivéGroupes{{ users.groups.all|join:", "}}Aucun
Solde{{ users.solde }} € - - - Recharger +

{{ users.surname }} {{users.name}}

+

+Vous êtes +{% if users.end_adhesion != None %} +un {{ users.class_name | lower}} +{% else %} +non adhérent +{% endif %} +et votre connexion est +{% if users.has_access %} +active. +{% else %} +désactivée. +{% endif %} +

+
Shell{{ users.shell }}
+ + +
+
+ + + Editer + + + + Changer le mot de passe + + {% can_change User state %} + + + Changer le statut + + {% acl_end %} + {% can_change User groups %} + + + Gérer les groupes + + {% acl_end %} + + + Historique + +

+
+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% if users.end_adhesion != None %} + + {% else %} + + {% endif %} + + {% if users.end_whitelist != None %} + + {% else %} + + {% endif %} + + + {% if users.end_ban != None %} + + {% else %} + + {% endif %} + + {% if users.state == 0 %} + + {% elif users.state == 1 %} + + {% else %} + + {% endif %} + + + + {% if users.has_access == True %} + + {% else %} + + {% endif %} + + {% if users.groups.all %} + + {% else %} + + {% endif %} + + {% if allow_online_payment %} + + + + {% endif %} + {% if users.shell %} + + + {% endif %} + +
Prénom{{ users.name }}Nom{{ users.surname }}
Pseudo{{ users.pseudo }}E-mail{{ users.email }}
Chambre{{ users.room }}Téléphone{{ users.telephone }}
École{{ users.school }}Commentaire{{ users.comment }}
Date d'inscription{{ users.registered }}Dernière connexion{{ users.last_login }}
Fin d'adhésion{{ users.end_adhesion }}Non adhérentAccès gracieux{{ users.end_whitelist }}Aucun
Bannissement{{ users.end_ban }}Non banniStatutActifDésactivéArchivé
Accès internetActif (jusqu'au {{ users.end_access }})DésactivéGroupes{{ users.groups.all|join:", "}}Aucun
Solde{{ users.solde }} € + + + Recharger + + Shell{{ users.shell }}
+
+
+ {% if users.is_class_club %} - - - Gérer admin et membres - -

Administrateurs du club

- - - - - - - - - {% for admin in users.club.administrators.all %} - - - - - - {% endfor %} -
NomPrenomPseudo
{{ admin.surname }}{{ admin.name }}{{ admin.pseudo }}
-

Membres

- - - - - - - - - {% for admin in users.club.members.all %} - - - - - - {% endfor %} -
NomPrenomPseudo
{{ admin.surname }}{{ admin.name }}{{ admin.pseudo }}
+
+
+

+ Gérer le club +

+
+
+
+ + + Gérer admin et membres + +

Administrateurs du club

+ + + + + + + + + {% for admin in users.club.administrators.all %} + + + + + + {% endfor %} +
NomPrenomPseudo
{{ admin.surname }}{{ admin.name }}{{ admin.pseudo }}
+

Membres

+ + + + + + + + + {% for admin in users.club.members.all %} + + + + + + {% endfor %} +
NomPrenomPseudo
{{ admin.surname }}{{ admin.name }}{{ admin.pseudo }}
+
+
+
{% endif %} -

Machines

- {% can_create Machine users.id %} -

Ajouter une machine

- {% acl_end %} - {% if machines_list %} - {% include "machines/aff_machines.html" with machines_list=machines_list %} - {% else %} -

Aucune machine

- {% endif %} -

Cotisations

-

{% can_create Facture %} Ajouter une cotisation {% if user_solde %} Modifier le solde{% endif%}{% acl_else %}{% if user_solde %} Ajouter une cotisation par solde{% endif %}{% acl_end %}

- {% if facture_list %} - {% include "cotisations/aff_cotisations.html" with facture_list=facture_list %} - {% else %} -

Aucune facture

- {% endif %} -

Bannissements

- {% can_create Ban %}

Ajouter un bannissement

{% acl_end %} - {% if ban_list %} - {% include "users/aff_bans.html" with ban_list=ban_list %} - {% else %} -

Aucun bannissement

- {% endif %} -

Accès à titre gracieux :

- {% can_create Whitelist %}

Accorder un accès à titre gracieux

{% acl_end %} - {% if white_list %} - {% include "users/aff_whitelists.html" with white_list=white_list %} - {% else %} -

Aucun accès gracieux

- {% endif %} -
-
-
+
+
+

+ Machines +

+ +
+
+
+

Ajouter une machine

+ {% if machines_list %} + {% include "machines/aff_machines.html" with machines_list=machines_list %} + {% else %} +

Aucune machine

+ {% endif %} +
+
+
+
+
+

+ Cotisations +

+
+
+
+

{% can_create Facture %} Ajouter une cotisation {% if user_solde %} Modifier le solde{% endif%}{% acl_else %}{% if user_solde %} Ajouter une cotisation par solde{% endif %}{% acl_end %}

+ {% if facture_list %} + {% include "cotisations/aff_cotisations.html" with facture_list=facture_list %} + {% else %} +

Aucune facture

+ {% endif %} +
+
+
+
+
+

+ Bannissements +

+
+
+
+ {% can_create Ban %}

Ajouter un bannissement

{% acl_end %} + {% if ban_list %} + {% include "users/aff_bans.html" with ban_list=ban_list %} + {% else %} +

Aucun bannissement

+ {% endif %} +
+
+
+
+ +
+
+ {% can_create Whitelist %}

Accorder un accès à titre gracieux

{% acl_end %} + {% if white_list %} + {% include "users/aff_whitelists.html" with white_list=white_list %} + {% else %} +

Aucun accès gracieux

+ {% endif %} +
+
+
+ +
+
+
{% endblock %}