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
parent 75324a13d3
commit 48b85f8658
2 changed files with 28 additions and 15 deletions

View file

@ -106,6 +106,8 @@ margin-bottom: 20px;
.panel-body.dashboard{
text-align: center;
height: 60px;
vertical-align:middle;
}
#grad_red {
background: red; /* For browsers that do not support gradients */

View file

@ -38,20 +38,28 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div class="col-sm-6 col-md-6">
{% endif %}
<div class="col-12">
{% if users.is_adherent %}
<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 %}
{% if users.is_ban%}
<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">
<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>
<i class="text-danger">Fin du ban : {{user.end_ban|date:"d M Y"}}</i>
</div>
</div>
{% 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>
{% 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>
{% endif %}
</div>
@ -61,7 +69,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div class="col-12">
<div class="col-12">
<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">
<a class="btn btn-primary btn-sm" role="button" href="{% url 'cotisations:credit-solde' users.id %}">
<i class="fa fa-euro-sign"></i>
@ -81,7 +92,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<div class="col-12">
{% if nb_machines %}
<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>
Machines
<i class="fa fa-desktop"></i>