cookiecutter-django/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/templates/account/email_confirm.html

38 lines
1.2 KiB
HTML
Raw Normal View History

{% raw %}{% extends "account/base.html" %}
2013-08-16 16:07:28 +04:00
{% load url from future %}
{% load i18n %}
{% load account %}
{% block head_title %}{% trans "Confirm E-mail Address" %}{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-xs-12">
2013-08-16 16:07:28 +04:00
<h2>{% trans "Confirm E-mail Address" %}</h2>
{% if confirmation %}
{% user_display confirmation.email_address.user as user_display %}
<p>{% blocktrans 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 }}.{% endblocktrans %}</p>
<form method="post" action="{% url 'account_confirm_email' confirmation.key %}">
{% csrf_token %}
<button class="submit" type="submit">{% trans 'Confirm' %}</button>
2013-08-16 16:07:28 +04:00
</form>
{% else %}
{% url 'account_email' as email_url %}
<p>{% blocktrans %}This e-mail confirmation link expired or is invalid. Please <a href="{{ email_url}}">issue a new e-mail confirmation request</a>.{% endblocktrans %}</p>
{% endif %}
</div>
</div>
</div>
{% endblock %}
{% endraw %}