Coverage for ivatar/ivataraccount/templates/add_email.html: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.5.1, created at 2024-05-18 23:09 +0000

1{% extends 'base.html' %} 

2{% load i18n %} 

3  

4{% block title %}{% trans 'Add a new email address' %}{% endblock title %} 

5  

6{% block content %} 

7  

8<h1>{% trans 'Add a new email address' %}</h1> 

9  

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> 

11  

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 %} 

23  

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> 

29  

30</form> 

31</div> 

32<div style="height:40px"></div> 

33{% endblock content %}