forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfirm_new_email.html
More file actions
30 lines (30 loc) · 1.33 KB
/
Copy pathconfirm_new_email.html
File metadata and controls
30 lines (30 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin django_bootstrap5 textfilters %}
{% block title %}Confirm new email address{% endblock %}
{% block content %}
{% origin %}
<h1>Confirm new email address</h1>
{% if not can_confirm %}
<p class="alert alert-danger my-3">
An error has occurred when attempting to add the email address {{ email|linkify }} to your account {{ username }}.
</p>
{% bootstrap_form_errors form %}
<a class="btn btn-primary my-3"
href="{% url "ietf.ietfauth.views.profile" %}">Edit profile</a>
{% elif new_email_obj %}
<p class="alert alert-success my-3">
Your account {{ username }} has been updated to include the email address {{ email|linkify }}.
</p>
<a class="btn btn-primary my-3"
href="{% url "ietf.ietfauth.views.profile" %}">Edit profile</a>
{% else %}
<p class="alert alert-info my-3">
Confirm that you want to add the email address {{ email|linkify }} to your account {{ username }}.
</p>
<form method="post" class="my-3">
{% csrf_token %}
<button type="submit" class="btn btn-warning" name="action" value="confirm">Confirm email address</button>
</form>
{% endif %}
{% endblock %}