source: mauRepo/dj_security/trunk/dj_security/templates/authopenid/signin.html @ 8650

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/dj_security/trunk/dj_security/templates/authopenid/signin.html@8650
Revision 8650, 2.4 KB checked in by mnagni, 8 years ago (diff)

Share project "dj_security" into " http://proj.badc.rl.ac.uk/svn/ndg/mauRepo"

  • Property svn:mime-type set to text/plain
Line 
1{% extends "authopenid/base.html" %}
2{% load i18n %}
3
4{% block content %}
5{% if msg %}
6<br />
7        <p class="warning">{{ msg }}</p>
8{% endif %}
9{% if form2.errors %}
10<div class="errors"><p>{% trans "Please correct errors below:" %}<br />
11
12</p></div>
13<br>
14{% endif %}
15
16{% if form1.errors %}
17<div class="errors">
18    <p><span class="error">{{ form1.openid_url.errors|join:", " }}</span></p>
19</div>
20<br>
21{% endif %}
22<h2>Make a choice:</h2>
23<p> <a href="{% url registration_register %}">Register</a> | <a href="{% url user_signin %}">Log-In</a></p>
24<div class="login">
25
26    <form id="auth_form" name="auth_form" action="{% url user_signin %}" method="post">
27    {% csrf_token %}
28    <input type="hidden" name="next" value="{{ next }}" />
29        <fieldset>
30                <legend>{% trans "Sign In Using Your Account ID" %}</legend>
31                <div class="form-row"><label for="id_username">{% trans "Username:" %}</label><br />{{ form2.username }}</div>
32                {% if form2.username.errors %}
33                        <span class="error">{{ form2.username.errors|join:", " }}</span>
34                {% endif %}
35                <div class="form-row"><label for="id_password">{% trans "Password" %}</label><br />{{ form2.password }}</div>
36                {% if form2.password.errors %}
37                        <span class="error">{{ form2.password.errors|join:", " }}</span>
38                {% endif %}
39        <div class="submit-row"><input type="submit" name="blogin" value="{% trans "Sign in" %}"> </div>
40        </fieldset>
41</form>
42
43<form id="openid_form" name="openid_form" action="{% url user_signin %}" method="post">
44    {% csrf_token %}
45    <input type="hidden" name="action" value="verify" />
46    <input type="hidden" name="next" value="{{ next }}" />
47        <fieldset>
48                <legend>{% trans "Sign In Using Your OpenID URL" %}</legend>
49                <div id="openid_choice">
50                <p>Please click your account provider:</p>
51                <div id="openid_btns"></div>
52        </div>
53            <div id="openid_input_area">
54                <label for="id_openid_url">{% trans "OpenId URL :" %}</label>{{ form1.openid_url }}
55                <input name="openid_submit" type="submit" value="{% trans "Sign in with OpenID" %}">
56            </div>
57               
58        </fieldset>
59</form>
60</div> 
61{% endblock %}
62
63{% block extra_scripts %}
64<script type="text/javascript" src="{{ STATIC_URL }}js/openid-jquery.js"></script>
65<script type="text/javascript" src="{{ STATIC_URL }}js/openid-en.js"></script>
66<script type="text/javascript">
67$(document).ready(function() {
68    openid.init('openid_url');
69});
70</script>
71<!-- /Simple OpenID Selector -->
72   
73{% endblock %}
74
Note: See TracBrowser for help on using the repository browser.