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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/dj_security/trunk/dj_security/templates/authopenid/complete.html@8650
Revision 8650, 2.5 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
5
6{% block head %}{% endblock %}
7
8
9{% block content %}
10
11        <div id="completetxt">
12        <h1>{% trans "Your OpenID is verified! " %}</h1>
13        {% blocktrans %}
14        <p>Your OpenID can now be associated with a new or existing membership. You can change the association later in your preferences.</p>
15        {% endblocktrans %}
16        <br /><br />
17        <h2>{% trans "Associate your OpenID" %}</h2>
18        {% blocktrans %}
19        <p>If you're joining <strong>Sitename</strong>, associate your OpenID with a new account. If you're already a member, associate with your existing account.</p>
20        {% endblocktrans %}
21        </div>
22
23               
24       
25        {% if form1.errors %}
26        <p class="errors">{% trans "Please correct errors below:" %}<br />
27                {% if form1.username.errors %}
28                        <span class="error">{{ form1.username.errors|join:", " }}</span>
29                {% endif %}
30                {% if form1.email.errors %}
31                        <span class="error">{{ form1.email.errors|join:", " }}</span>
32                {% endif %}
33        </p>
34        {% endif %}
35        {% if form2.errors %}
36        <p class="errors">{% trans "Please correct errors below:" %}<br />
37                {% if form2.username.errors %}
38                        <span class="error">{{ form2.username.errors|join:", " }}</span>
39                {% endif %}
40                {% if form2.password.errors %}
41                        <span class="error">{{ form2.password.errors|join:", " }}</span>
42                {% endif %}
43        </p>
44        {% endif %}
45
46        <div class="login">
47        <form name="fregister" action="{% url user_register %}" method="POST">
48            {% csrf_token %}
49            <input type="hidden" name="next" value="{{ next }}" />
50                        <fieldset>
51                                <legend>{% trans "A new account" %}</legend>
52                                <div class="form-row"><label for="id_username">{% trans "Username" %}</label><br />{{ form1.username }}</div>
53                                <div class="form-row"><label for="id_email">{% trans "Email" %}</label><br />{{ form1.email }}</div>
54                                <div class="submit-row"><input type="submit" name="bnewaccount" value="{% trans "Create account" %}"></div>
55                                <hr class="clear" />
56                </fieldset>
57                </form>
58        </div>
59
60       
61
62        <div class="login">
63        <form name="fverify" action="{% url user_register %}" method="POST">
64            {% csrf_token %}
65            <input type="hidden" name="next" value="{{ next }}" />
66                        <fieldset>
67                                <legend>{% trans "An existing account" %}</legend>
68                                <div class="form-row"><label for="id_username">{% trans "Username" %}</label><br />{{ form2.username }}</div>
69                                <div class="form-row"><label for="id_passwordl">{% trans "Password" %}</label><br />{{ form2.password }}</div>
70                                <div class="submit-row"><input type="submit" name="bverify" value="{% trans "Verify" %}"></div>
71                        </fieldset>
72                </form>
73        </div>
74{% endblock %}
75
76       
77
Note: See TracBrowser for help on using the repository browser.