mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 06:32:26 +00:00
Changement des couleurs et prise en ompte de l'activation du solde
This commit is contained in:
parent
83aa267940
commit
88386fc55c
1 changed files with 49 additions and 31 deletions
|
@ -32,25 +32,31 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
</div>
|
||||
<div class="dashboard_container">
|
||||
<div class="row">
|
||||
{% if solde_activated %}
|
||||
<div class="col-sm-6 col-md-4">
|
||||
{% else %}
|
||||
<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">Adhérent</div>
|
||||
<div class="panel-body dashboard"><i class="text-success">Fin d'adhésion: {{user.end_adhesion}}</i></div>
|
||||
<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-heading dashboard">Non adhérent</div>
|
||||
<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>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if solde_activated %}
|
||||
<div class="col-sm-6 col-md-4">
|
||||
<div class="col-12">
|
||||
<div class="col-12">
|
||||
|
@ -66,7 +72,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if solde_activated %}
|
||||
<div class="col-sm-6 col-md-4">
|
||||
{% else %}
|
||||
<div class="col-sm-6 col-md-6">
|
||||
{% endif %}
|
||||
<div class="col-12">
|
||||
{% if nb_machines %}
|
||||
<div class="panel panel-info">
|
||||
|
@ -75,10 +86,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
Machines
|
||||
<i class="fa fa-desktop"></i>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="panel panel-warning">
|
||||
<div class="panel-heading dashboard">Aucune machine</div>
|
||||
{% endif %}
|
||||
<div class="panel-body dashboard">
|
||||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:new-machine' users.id %}">
|
||||
<i class="fa fa-desktop"></i>
|
||||
|
@ -86,6 +93,17 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="panel panel-warning">
|
||||
<div class="panel-heading dashboard">Aucune machine</div>
|
||||
<div class="panel-body dashboard">
|
||||
<a class="btn btn-warning btn-sm" role="button" href="{% url 'machines:new-machine' users.id %}">
|
||||
<i class="fa fa-desktop"></i>
|
||||
Ajouter une machine
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue