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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/dj_security/trunk/dj_security/templates/authopenid/associate.html@8650
Revision 8650, 1.2 KB checked in by mnagni, 7 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        <div class="errors"><p>{{ msg }}</p></div>
7{% endif %}
8
9{% if form.errors %}
10    <div class="errors"><p>Openid url : {{ form.openid_url.errors|join:', ' }}</p></div>
11{% endif %}
12
13<div class="login">
14
15<form name="openid_form" id="openid_form" action="{% url user_associate %}" method="post">
16    {% csrf_token %}
17    <input type="hidden" name="action" value="verify" />
18    <input type="hidden" name="next" value="{{ next }}" />
19        <fieldset>
20                <legend>{% trans "Add a new OpenID URL" %}</legend>
21                <div id="openid_choice">
22                <p>Please click your account provider:</p>
23                <div id="openid_btns"></div>
24        </div>
25        <div id="openid_input_area">
26            <label for="id_openid_url">{% trans "OpenId URL :" %}</label><br />{{ form.openid_url }}
27            <input name="openid_submit" type="submit" value="{% trans "Add OpenID" %}">
28                </div>
29        </fieldset>
30</form>
31</div> 
32{% endblock %}
33
34{% block extra_scripts %}
35<script type="text/javascript" src="{{ STATIC_URL }}/js/openid-jquery.js"></script>
36<script type="text/javascript">
37$(document).ready(function() {
38    openid.init('id_openid_url');
39});
40</script>
41{% endblock %}
Note: See TracBrowser for help on using the repository browser.