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

22 statements  

« prev     ^ index     » next       coverage.py v7.6.9, created at 2024-12-26 00:11 +0000

1{% extends 'base.html' %}  

2{% load i18n %} 

3  

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

5  

6{% block content %} 

7  

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

9  

10<p>{% trans 'Once you have confirmed this OpenID URL, you will be able to log into your account using that OpenID URL.' %}<br/> 

11{% trans 'You will be redirected to the authorisation page for the provider. If the process fails, you can remove the ID from this list and try adding it again.' %}</p> 

12{% if form.openid.errors %} 

13<div class="alert alert-danger" role="alert">{{ form.openid.errors }}</div> 

14{% endif %} 

15<div style="max-width:640px"> 

16<form action="{% url 'add_openid' %}" name="addopenid" method="post"> 

17{% csrf_token %} 

18  

19<div class="form-group"> 

20<label for="id_openid">{% trans 'OpenID' %}:</label> 

21<input type="url" name="openid" value="https://" maxlength="255" minlength="11" required id="id_openid" autofocus class="form-control"> 

22</div> 

23<button type="submit" class="button">{% trans 'Add' %}</button> 

24  

25</form> 

26</div> 

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

28{% endblock content %}