From 547e6d0915c53efb12079300ce8283d16d1cc93a Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Thu, 23 Aug 2018 02:54:28 +0200 Subject: [PATCH] Prolongation de connexion avant expiration --- users/templates/users/profil.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/users/templates/users/profil.html b/users/templates/users/profil.html index 0d391551..09d499d0 100644 --- a/users/templates/users/profil.html +++ b/users/templates/users/profil.html @@ -49,7 +49,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% blocktrans with end_ban=users.end_ban|date:"SHORT_DATE_FORMAT" %}End of the ban: {{ end_ban }}{% endblocktrans %} - {% elif not users.is_adherent %} + {% elif not users.has_access %}
{% trans "No connection" %}
@@ -64,9 +64,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% else %}
-
{% trans "Connection" %}
+
{% trans "Connection" %}{% blocktrans with end_connection=user.end_access|date:"SHORT_DATE_FORMAT" %} ( Until {{ end_connection }} ){% endblocktrans %}
- {% blocktrans with end_connection=user.end_adhesion|date:"SHORT_DATE_FORMAT" %}End of connection: {{ end_connection }}{% endblocktrans %} + {% can_create Facture %} + + {% trans "Extend my connection period" %} + + {% acl_end %}
{% endif %} @@ -89,7 +93,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% if nb_machines %}
- {% trans " Machines" %}{{ nb_machines }} + {% trans " Machines" %} {{ nb_machines }}