mirror of https://gitlab.federez.net/re2o/re2o
16 changed files with 171 additions and 112 deletions
@ -0,0 +1,25 @@ |
|||
<table class="table table-striped"> |
|||
<thead> |
|||
<tr> |
|||
<th>Utilisateur</th> |
|||
<th>Designation</th> |
|||
<th>Nombre</th> |
|||
<th>Prix unitaire</th> |
|||
<th>Moyen de paiement</th> |
|||
<th>Date</th> |
|||
<th></th> |
|||
</tr> |
|||
</thead> |
|||
{% for facture in facture_list %} |
|||
<tr> |
|||
<td>{{ facture.user }}</td> |
|||
<td>{{ facture.name }}</td> |
|||
<td>{{ facture.number }}</td> |
|||
<td>{{ facture.prix }}</td> |
|||
<td>{{ facture.paiement }}</td> |
|||
<td>{{ facture.date }}</td> |
|||
<td><a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:edit-facture' facture.id %}"><i class="glyphicon glyphicon-tree-conifer"></i> Editer</a></td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,21 @@ |
|||
<table class="table table-striped"> |
|||
<thead> |
|||
<tr> |
|||
<th>Utilisateur</th> |
|||
<th>Raison</th> |
|||
<th>Date de début</th> |
|||
<th>Date de fin</th> |
|||
<th></th> |
|||
</tr> |
|||
</thead> |
|||
{% for ban in ban_list %} |
|||
<tr> |
|||
<td>{{ ban.user }}</td> |
|||
<td>{{ ban.raison }}</td> |
|||
<td>{{ ban.date_start }}</td> |
|||
<td>{{ ban.date_end }}</td> |
|||
<td><a class="btn btn-primary btn-sm" role="button" href="{% url 'users:edit-ban' ban.id %}"><i class="glyphicon glyphicon-grain"></i> Editer</a></td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
|
|||
@ -0,0 +1,26 @@ |
|||
<table class="table table-striped"> |
|||
<thead> |
|||
<tr> |
|||
<th>Prénom</th> |
|||
<th>Nom</th> |
|||
<th>Pseudo</th> |
|||
<th>Inscrit le</th> |
|||
<th>Profil</th> |
|||
</tr> |
|||
</thead> |
|||
{% for user in users_list %} |
|||
<tr> |
|||
<td>{{ user.name }}</td> |
|||
<td>{{ user.surname }}</td> |
|||
<td>{{ user.pseudo }}</td> |
|||
<td>{{ user.registered }}</td> |
|||
<td><form method="POST" action="{% url "users:profil"%}"> |
|||
{% csrf_token %} |
|||
<input type="hidden" name="user" id="user" value="{{ user.pseudo }}"></input> |
|||
<button class="btn btn-primary btn-sm" type="submit"><i class="glyphicon glyphicon-tree-deciduous"></i></button> |
|||
</form> |
|||
</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
|
|||
@ -0,0 +1,63 @@ |
|||
{% extends "users/sidebar.html" %} |
|||
{% load bootstrap3 %} |
|||
|
|||
{% block title %}Profil{% endblock %} |
|||
|
|||
{% block content %} |
|||
<h2>Adhérent</h2> |
|||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'users:edit-info' user.id %}"><i class="glyphicon glyphicon-fire"></i> Editer</a> |
|||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'users:password' user.id %}"><i class="glyphicon glyphicon-leaf"></i> Changer le mot de passe</a> |
|||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'users:state' user.id %}"><i class="glyphicon glyphicon-flash"></i> Changer le statut</a> |
|||
<br /> |
|||
<br /> |
|||
<table class="table table-striped"> |
|||
<tr> |
|||
<th>Prénom</th> |
|||
<td>{{ user.name }}</td> |
|||
<th>Nom</th> |
|||
<td>{{ user.surname }}</td> |
|||
</tr> |
|||
<tr> |
|||
<th>Pseudo</th> |
|||
<td>{{ user.pseudo }}</td> |
|||
<th>E-mail</th> |
|||
<td>{{ user.email }}</td> |
|||
</tr> |
|||
<tr> |
|||
<th>Ecole</th> |
|||
<td>{{ user.school }}</td> |
|||
<th>Promo</th> |
|||
<td>{{ user.promo }}</td> |
|||
</tr> |
|||
<tr> |
|||
<th>Chambre</th> |
|||
<td>{{ user.room }}</td> |
|||
<th>Date d'inscription</th> |
|||
<td>{{ user.registered}}</td> |
|||
</tr> |
|||
</table> |
|||
<h2>Machines :</h2> |
|||
{% if machine_list %} |
|||
<!-- {% include "machine/aff_machines.html" with machine_list=machine_list } --> |
|||
{% else %} |
|||
<p>Aucune machine</p> |
|||
{% endif %} |
|||
<h2>Cotisations :</h2> |
|||
<h4><a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:new-facture' user.id %}"><i class="glyphicon glyphicon-piggy-bank"></i> Ajouter une cotisation</a></h4> |
|||
{% if facture_list %} |
|||
{% include "cotisations/aff_cotisations.html" with facture_list=facture_list %} |
|||
{% else %} |
|||
<p>Aucune facture</p> |
|||
{% endif %} |
|||
<h2>Bannissements :</h2> |
|||
<h4><a class="btn btn-primary btn-sm" role="button" href="{% url 'users:add-ban' user.id %}"><i class="glyphicon glyphicon-tint"></i> Ajouter un bannissement</a></h4> |
|||
{% if ban_list %} |
|||
{% include "users/aff_bans.html" with ban_list=ban_list %} |
|||
{% else %} |
|||
<p>Aucun bannissement</p> |
|||
{% endif %} |
|||
<br /> |
|||
<br /> |
|||
<br /> |
|||
{% endblock %} |
|||
|
|||
Loading…
Reference in new issue