8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 19:33:11 +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 Gabriel Detraz
parent 216d14bb25
commit a7b989b7de
2 changed files with 18 additions and 7 deletions

View file

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

View file

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