Coverage for templates/openid/login.html: 0%
18 statements
« prev ^ index » next coverage.py v7.6.10, created at 2024-12-27 00:11 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2024-12-27 00:11 +0000
1{% extends 'base.html' %}
2{% load i18n %}
3{% load static %}
5{% block title %}{% trans 'federated avatar hosting service' %}{% endblock %}
7{% block content %}
9<div class="container">
11<h1>{% trans 'OpenID Login' %}</h1>
12{% if openid_form.errors %}
13<p class="error">{% trans "Please correct errors below:" %}<br>
14{% if openid_form.openid_identifier.errors %}
15{{ openid_form.openid_identifier.errors|join:', ' }}
16{% endif %}
17{% if openid_form.next.errors %}
18{{ openid_form.next.errors|join:', ' }}
19{% endif %}
20</p>
21{% endif %}
22<form name='login' action="{% url 'openid-login' %}" method="post">{% csrf_token %}
24{% url 'login' as login_url %}
25<p>{% trans "You'd rather use a regular account?" %} {% blocktrans %}That's fine, just use <a href="{{ login_url }}">this login form</a> instead.{% endblocktrans %}</p>
27<p><label for="id_openid_identifier">{% trans 'OpenID' %}:</label>
28<input class="required openid" id="id_openid_identifier" size="70" maxlength="255" name="openid_identifier" value="{{ openid_identifier }}" type="text"></p>
30<p>
31<button type="submit" class="button">{% trans 'Login' %}</button>
32<input type="hidden" name="next" value="{% url 'profile' %}" />
33
34<button type="reset" class="button" onclick="window.history.back();">{% trans 'Cancel' %}</button>
36</form>
38</div>
39<div style="height:40px"></div>
41{% endblock %}