8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-05 01:16:27 +00:00

Prise en compte du bannissement et déployement des des infos si clique dans les titres

This commit is contained in:
grisel-davy 2018-06-16 09:57:21 +02:00 committed by Gabriel Detraz
parent c5af76f963
commit 6b9896143f

View file

@ -40,20 +40,28 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div class="col-sm-6 col-md-6"> <div class="col-sm-6 col-md-6">
{% endif %} {% endif %}
<div class="col-12"> <div class="col-12">
{% if users.is_adherent %} {% if users.is_ban%}
<div class="panel panel-success">
<div class="panel-heading dashboard">Connécté</div>
<div class="panel-body dashboard"><i class="text-success">Fin de connexion: {{user.end_adhesion|date:"d M Y"}}</i></div>
</div>
{% else %}
<div class="panel panel-danger"> <div class="panel panel-danger">
<div class="panel-heading dashboard">Non connécté</div> <div class="panel-heading dashboard">Votre compte est banni</div>
<div class="panel-body dashboard"> <div class="panel-body dashboard">
<a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:credit-solde' users.id %}"> <i class="text-danger">Fin du ban : {{user.end_ban|date:"d M Y"}}</i>
<i class="fas fa-sign-in-alt"></i> </div>
Adhérer </div>
</a> {% elif not users.is_adherent%}
<div class="panel panel-danger">
<div class="panel-heading dashboard">Non Connécté</div>
<div class="panel-body dashboard">
<a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:credit-solde' users.id %}">
<i class="fas fa-sign-in-alt"></i>
Adhérer
</a>
</div> </div>
{% else %}
<div class="panel panel-success">
<div class="panel-heading dashboard">Connécté</div>
<div class="panel-body dashboard">
<i class="text-success">Fin de connexion: {{user.end_adhesion|date:"d M Y"}}</i>
</div>
</div> </div>
{% endif %} {% endif %}
</div> </div>
@ -63,7 +71,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div class="col-12"> <div class="col-12">
<div class="col-12"> <div class="col-12">
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading dashboard">{{user.solde}} <i class="fas fa-euro-sign"></i></div> <div class="panel-heading dashboard" data-parent="#accordion" data-toggle="collapse" data-target="#collapse4">
{{user.solde}} <i class="fas fa-euro-sign"></i>
</div>
<div class="panel-body dashboard"> <div class="panel-body dashboard">
<a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:credit-solde' users.id %}"> <a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:credit-solde' users.id %}">
<i class="fa fa-euro-sign"></i> <i class="fa fa-euro-sign"></i>
@ -83,7 +94,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div class="col-12"> <div class="col-12">
{% if nb_machines %} {% if nb_machines %}
<div class="panel panel-info"> <div class="panel panel-info">
<div class="panel-heading dashboard"> <div class="panel-heading dashboard" data-parent="#accordion" data-toggle="collapse" data-target="#collapse3">
<span class="badge">{{nb_machines}}</span> <span class="badge">{{nb_machines}}</span>
Machines Machines
<i class="fa fa-desktop"></i> <i class="fa fa-desktop"></i>