6 lines
1.8 KiB
HTML
6 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Manage Email | Testpoint{% endblock %}
|
|
{% block content %}<section class="auth-page"><div class="auth-card"><div class="auth-card__header"><span class="auth-card__icon"><i class="bi bi-envelope-at"></i></span><h1>Manage email</h1><p>Add and verify the email address used to sign in.</p></div>
|
|
{% if emailaddresses %}<form method="post" action="{% url 'account_email' %}" class="email-manage-form">{% csrf_token %}<div class="email-address-list">{% for emailaddress in emailaddresses %}<label class="email-address-item"><input type="radio" name="email" value="{{ emailaddress.email }}"{% if emailaddress.primary or emailaddresses|length == 1 %} checked{% endif %}><span><strong>{{ emailaddress.email }}</strong><small>{% if emailaddress.verified %}Verified{% else %}Not verified{% endif %}{% if emailaddress.primary %} · Primary{% endif %}</small></span></label>{% endfor %}</div><div class="email-actions"><button type="submit" name="action_primary">Make primary</button><button type="submit" name="action_send">Resend verification</button><button class="email-remove" type="submit" name="action_remove">Remove</button></div></form>{% endif %}
|
|
<div class="auth-divider"><span>Add another address</span></div><form method="post" action="{% url 'account_email' %}">{% csrf_token %}<div class="auth-field"><label for="id_email">New email address</label><input id="id_email" type="email" name="email" autocomplete="email" required>{% for error in form.email.errors %}<p class="auth-error">{{ error }}</p>{% endfor %}</div><button class="auth-submit" type="submit" name="action_add">Add email</button></form><p class="auth-card__switch"><a href="{% url 'student_settings' %}">Back to profile settings</a></p></div></section>{% include "components/footer.html" %}{% endblock %}
|