1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-21 09:18:21 +02:00

Display a warning when the email address is not validated

This commit is contained in:
Yohann D'ANELLO
2020-09-24 18:54:03 +02:00
parent 413525c6d2
commit 471befb1f8
4 changed files with 54 additions and 21 deletions

View File

@ -130,6 +130,18 @@
</nav>
<div class="{% block containertype %}container{% endblock %} my-3">
{% block contenttitle %}{% endblock %}
{% if user.is_authenticated and not user.registration.email_confirmed %}
<div class="alert alert-warning alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
{% url "registration:email_validation_resend" pk=user.pk as send_email_url %}
{% blocktrans trimmed %}
Your email address is not validated. Please click on the link you received by email.
You can resend a mail by clicking on <a href="{{ send_email_url }}">this link</a>.
{% endblocktrans %}
</div>
{% endif %}
<div id="messages"></div>
<div id="content">
{% block content %}