8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-26 00:43:46 +00:00

Fix error in profil of users with an unverified email

This commit is contained in:
Jean-Romain Garnier 2020-04-17 22:20:45 +02:00 committed by Jean-Romain Garnier
parent cb99843c2b
commit 01a52f88d3
2 changed files with 18 additions and 7 deletions

View file

@ -1028,6 +1028,10 @@ msgstr "Pas de connexion"
msgid "Pay for a connection"
msgstr "Payer une connexion"
#: users/templates/users/profil.html:81
msgid "Resend the email"
msgstr "Renvoyer le mail"
#: users/templates/users/profil.html:60
msgid "Ask someone with the appropriate rights to pay for a connection."
msgstr ""

View file

@ -70,14 +70,21 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% elif not users.has_access %}
<div class="panel panel-danger">
<div class="panel-heading dashboard">{% trans "No connection" %}</div>
<div class="panel-body dashboard">
{% can_create Facture %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:new-facture' users.id %}">
<i class="fa fa-sign-in"></i> {% trans "Pay for a connection" %}
</a>
{% acl_else %}
{% trans "Ask someone with the appropriate rights to pay for a connection." %}
{% acl_end %}
{% if users.email_state == users.EMAIL_STATE_UNVERIFIED %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'users:resend-confirmation-email' users.id %}">
<i class="fa fa-sign-in"></i> {% trans "Resend the email" %}
</a>
{% else %}
{% can_create Facture %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'cotisations:new-facture' users.id %}">
<i class="fa fa-sign-in"></i> {% trans "Pay for a connection" %}
</a>
{% acl_else %}
{% trans "Ask someone with the appropriate rights to pay for a connection." %}
{% acl_end %}
{% endif %}
</div>
</div>
{% else %}