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

8 statements  

« prev     ^ index     » next       coverage.py v7.10.7, created at 2025-10-13 23:07 +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 class="form-container"> 

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" class="form-label">{% trans 'Email' %}</label> 

26<input type="email" name="email" autofocus required class="form-control" id="id_email" placeholder="{% trans 'Enter your email address' %}"> 

27</div> 

28<div class="button-group"> 

29 <button type="submit" class="btn btn-primary">{% trans 'Add' %}</button> 

30</div> 

31  

32</form> 

33</div> 

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

35{% endblock content %}