First pass at converting unstyled templates to match site style
This commit is contained in:
parent
68932b75b6
commit
6e4c6040bd
28 changed files with 426 additions and 411 deletions
36
theme/templates/account/email_confirm.html
Normal file
36
theme/templates/account/email_confirm.html
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{% extends 'base.html' %}
|
||||
{% load i18n %}
|
||||
{% load account allauth %}
|
||||
|
||||
{% block head_title %}{% trans "Confirm Email Address" %}{% endblock head_title %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container mx-auto max-w-md mt-6">
|
||||
<h1 class="text-3xl font-bold text-center mb-6">{% trans "Confirm Email Address" %}</h1>
|
||||
{% if confirmation %}
|
||||
{% user_display confirmation.email_address.user as user_display %}
|
||||
{% if can_confirm %}
|
||||
<p class="text-gray-700 mb-4">
|
||||
{% blocktrans with confirmation.email_address.email as email %}
|
||||
Please confirm that <a class="text-primary underline" href="mailto:{{ email }}">{{ email }}</a> is an email address for user {{ user_display }}.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
{% url 'account_confirm_email' confirmation.key as action_url %}
|
||||
<form method="post" action="{{ action_url }}" class="space-y-4">
|
||||
{% csrf_token %}
|
||||
{{ redirect_field }}
|
||||
<button type="submit" class="btn btn-primary w-full">{% trans "Confirm" %}</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<p class="text-gray-700">
|
||||
{% blocktrans %}Unable to confirm {{ confirmation.email_address.email }} because it is already confirmed by a different account.{% endblocktrans %}
|
||||
</p>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% url 'account_email' as email_url %}
|
||||
<p class="text-gray-700">
|
||||
{% blocktrans %}This email confirmation link expired or is invalid. Please <a class="text-primary underline" href="{{ email_url }}">issue a new email confirmation request</a>.{% endblocktrans %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue