-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buttons: change text & add styling to confirm email page
- Loading branch information
Showing
3 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
{% extends "account/base.html" %} | ||
{% load i18n account %} | ||
|
||
{% block head_title %}{% translate "Confirm Email Address" %}{% endblock %} | ||
{% block head_title %}{% translate "Confirm Email Address" %}{% endblock head_title %} | ||
|
||
{% block content %} | ||
<div class="narrow-wrapper"> | ||
<h1>{% translate "Confirm Email 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 email address for user {{ user_display }}.{% endblocktranslate %}</p> | ||
{% 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 email address for user {{ user_display }}.{% endblocktranslate %} | ||
</p> | ||
|
||
<form method="post"> | ||
{% csrf_token %} | ||
<button class="btn btn--primary" type="submit">{% translate 'Confirm' %}</button> | ||
</form> | ||
<form method="post"> | ||
{% csrf_token %} | ||
<button class="button button--full-width" type="submit">{% translate 'Confirm' %}</button> | ||
</form> | ||
{% else %} | ||
{% url 'account_email' as email_url %} | ||
<p>{% blocktranslate %}This email confirmation link expired or is invalid. Please <a href="{{ email_url }}">issue a new email confirmation request</a>.{% endblocktranslate %}</p> | ||
{% url 'account_email' as email_url %} | ||
<p> | ||
{% blocktranslate %}This email confirmation link expired or is invalid. Please <a href="{{ email_url }}">issue a new email confirmation request</a>.{% endblocktranslate %} | ||
</p> | ||
|
||
{% endif %} | ||
</div> | ||
|
||
{% endblock %} | ||
{% endblock content %} |