mirror of
https://github.com/leaders-of-digital-9-task/backend.git
synced 2024-11-28 20:23:44 +03:00
32 lines
977 B
HTML
32 lines
977 B
HTML
{% extends "account/base.html" %}
|
|
|
|
{% load i18n %}
|
|
{% load account %}
|
|
|
|
{% block head_title %}{% translate "Confirm E-mail Address" %}{% endblock %}
|
|
|
|
|
|
{% block inner %}
|
|
<h1>{% translate "Confirm E-mail Address" %}</h1>
|
|
|
|
{% if confirmation %}
|
|
|
|
{% user_display confirmation.email_address.user as user_display %}
|
|
|
|
<p>{% blocktranslate with confirmation.email_address.email as email %}Please confirm that <a href="mailto:{{ email }}">{{ email }}</a> is an e-mail address for user {{ user_display }}.{% endblocktranslate %}</p>
|
|
|
|
<form method="post" action="{% url 'account_confirm_email' confirmation.key %}">
|
|
{% csrf_token %}
|
|
<button class="btn btn-primary" type="submit">{% translate 'Confirm' %}</button>
|
|
</form>
|
|
|
|
{% else %}
|
|
|
|
{% url 'account_email' as email_url %}
|
|
|
|
<p>{% blocktranslate %}This e-mail confirmation link expired or is invalid. Please <a href="{{ email_url }}">issue a new e-mail confirmation request</a>.{% endblocktranslate %}</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|