Coverage for ivatar/ivataraccount/templates/add_email.html: 100%
8 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-26 00:11 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-26 00:11 +0000
1{% extends 'base.html' %}
2{% load i18n %}
4{% block title %}{% trans 'Add a new email address' %}{% endblock title %}
6{% block content %}
8<h1>{% trans 'Add a new email address' %}</h1>
10<p>{% blocktrans %}Otherwise, type your email address in the box below and we will send you an email with a link to click on in order to verify that you own that email address.{% endblocktrans %}</p>
12{% if form.errors %}
13 {% for error in form.non_field_errors %}
14 <div class="alert alert-danger" role="alert">{{ error|escape }}</div>
15 {% endfor %}
16{% endif %}
17{% if form.email.errors %}
18<div class="alert alert-danger" role="alert">{{ form.email.errors }}</div>
19{% endif %}
20<div style="max-width:640px">
21<form action="{% url 'add_email' %}" name="addemail" method="post" id="form-addemail">
22{% csrf_token %}
24<div class="form-group">
25<label for="id_email">{% trans 'Email' %}:</label>
26<input type="text" name="email" autofocus required class="form-control" id="id_email">
27</div>
28<button type="submit" class="button">{% trans 'Add' %}</button>
30</form>
31</div>
32<div style="height:40px"></div>
33{% endblock content %}