mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 07:23:46 +00:00
Fix error in profil of users with an unverified email
This commit is contained in:
parent
cb99843c2b
commit
01a52f88d3
2 changed files with 18 additions and 7 deletions
|
@ -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 ""
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue