]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/auth/complete.html
5b293ebe41b75c30ac7d1f265c9ee89bf030a21a
[osqa.git] / forum / skins / default / templates / auth / complete.html
1 {% extends "base_content.html" %}
2 <!-- complete.html -->
3 {% load i18n %}
4 {% block head %}{% endblock %}
5 {% block title %}{% spaceless %}{% trans "Connect your OpenID with this site" %}{% endspaceless %}{% endblock %}
6 {% block content %}
7     <div id="main-bar" class="headNormal">
8                 {% trans "Connect your OpenID with your account on this site" %}
9     </div>      
10         <div id="completetxt" >
11         <div class="message">
12             {# Only display the OpenID greeting if a provider is detected. #}
13             {% if provider %}
14                 <p>
15                     <b>{% trans "You are here for the first time with " %}{{ provider }}</b>
16                 </p>
17             {% endif %}
18             <p>
19                 {% trans "Please choose your screen name and confirm your email address. A valid email address is necessary to receive notifications about activity in the areas of this community you're most interested in, and will help you become an involved participant in this community." %}
20             </p>
21         </div>
22         <p style="display:none">{% trans "This account already exists, please use another." %}</p>
23         </div>
24
25         {% if form1.errors %}
26         <ul class="errorlist">
27         {% if form1.non_field_errors %}
28             {% for error in form1.non_field_errors %}
29                 <li>{{error}}</li>
30             {% endfor %}
31         {% endif %}
32         </ul>
33         {% endif %}
34
35         <div class="login">
36         <form name="fregister" action="" method="POST">
37             {{ form1.next }}
38             <div class="form-row-vertical margin-bottom">
39                 <label for="id_username">{{ form1.username.label }}</label>
40                 {% if form1.username.errors %} 
41                     <p class="error">{{ form1.username.errors|join:", " }}</p>
42                 {% endif %}
43                 {{ form1.username }}
44             </div>
45             <div class="form-row-vertical margin-bottom">
46                 <label for="id_email">{{ form1.email.label }}</label>
47                 {% if form1.email.errors %} 
48                     <p class="error">{{ form1.email.errors|join:", " }}</p>
49                 {% endif %}
50                 {{ form1.email }}
51             </div>
52             {% if form1.password1 %}
53                 <div class="form-row-vertical margin-bottom">
54                     <label for="password1_id">{{ form1.password1.label }}</label>
55                     {% if form1.password1.errors %}
56                         <p class="error">{{ form1.password1.errors|join:", " }}</p>
57                     {% endif %}
58                     {{ form1.password1 }}
59                 </div>
60                 <div class="form-row-vertical margin-bottom">
61                     <label for="password2_id">{{ form1.password2.label }}</label>
62                     {% if form1.password2.errors %} 
63                         <p class="error">{{ form1.password2.errors|join:", " }}</p>
64                     {% endif %}
65                     {{ form1.password2 }}
66                 </div>
67             {% endif %}
68             {% if form1.recaptcha %}
69                 <div class="form-row-vertical margin-bottom">
70                 <label for="recaptcha_id">{{ form1.recaptcha.label }}</label>
71                 {% if form1.recaptcha.errors %} 
72                     <p class="error">{{ form1.recaptcha.errors|join:", " }}</p>
73                 {% endif %}
74                 {{ form1.recaptcha }}
75                 </div>
76             {% endif %}
77             <div class="submit-row"><input type="submit" class="submit" name="bnewaccount" id="bnewaccount" value="{% trans "create account" %}"/></div>
78                 </form>
79         </div>
80     {% comment %}<!-- this form associates openID with an existing password-protected account, not yet functional -->
81     {% if form2 %}
82         <div class="login" style="display:none">
83         <form name="fverify" action="{% url user_register %}" method="POST">
84             {{ form2.next }}
85                         <fieldset style="padding:10px">
86                                 <legend class="big">{% trans "Existing account" %}</legend>
87                                 <div class="form-row"><label for="id_username">{% trans "user name" %}</label><br/>{{ form2.username }}</div>
88                                 <div class="form-row"><label for="id_passwordl">{% trans "password" %}</label><br/>{{ form2.password }}</div>
89                 <p><span class='big strong'>(Optional) receive updates by email</span> - only sent when there are any.</p>
90                                 <!--todo double check translation from chinese 确认 = "Register" -->
91                                 <div class="submit-row">
92                                         <input type="submit" class="submit" name="bverify" value="{% trans "Register" %}"/> 
93                                         <a href="{% url user_sendpw %}">{% trans "Forgot your password?" %}</a>
94                                 </div>
95                         </fieldset>
96                 </form>
97         </div>
98     {% endif %}
99     {% endcomment %}
100 {% endblock %}
101 <!-- end complete.html -->