Commit 6b989614 authored by grisel-davy's avatar grisel-davy Committed by Gabriel Detraz

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

parent c5af76f9
......@@ -40,20 +40,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>
<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>
......@@ -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="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>
......@@ -83,7 +94,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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment