]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/auth/complete.html
Merge commit '9bea91a' into merge_small_prs
[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             {% csrf_token %}
38             {{ form1.next }}
39             <div class="form-row-vertical margin-bottom">
40                 <label for="id_username">{{ form1.username.label }}</label>
41                 {% if form1.username.errors %} 
42                     <p class="error">{{ form1.username.errors|join:", " }}</p>
43                 {% endif %}
44                 {{ form1.username }}
45             </div>
46             <div class="form-row-vertical margin-bottom">
47                 <label for="id_email">{{ form1.email.label }}</label>
48                 {% if form1.email.errors %} 
49                     <p class="error">{{ form1.email.errors|join:", " }}</p>
50                 {% endif %}
51                 {{ form1.email }}
52             </div>
53             <div class="form-row-vertical margin-bottom">
54                 <label for="id_real_name">{{ form1.real_name.label }}</label>
55                 {% if form1.real_name.errors %}
56                     <p class="error">{{ form1.real_name.errors|join:", " }}</p>
57                 {% endif %}
58                 {{ form1.real_name }}
59             </div>
60             {% if form1.password1 %}
61                 <div class="form-row-vertical margin-bottom">
62                     <label for="password1_id">{{ form1.password1.label }}</label>
63                     {% if form1.password1.errors %}
64                         <p class="error">{{ form1.password1.errors|join:", " }}</p>
65                     {% endif %}
66                     {{ form1.password1 }}
67                 </div>
68                 <div class="form-row-vertical margin-bottom">
69                     <label for="password2_id">{{ form1.password2.label }}</label>
70                     {% if form1.password2.errors %} 
71                         <p class="error">{{ form1.password2.errors|join:", " }}</p>
72                     {% endif %}
73                     {{ form1.password2 }}
74                 </div>
75             {% endif %}
76             {% if form1.recaptcha %}
77                 <div class="form-row-vertical margin-bottom">
78                 <label for="recaptcha_id">{{ form1.recaptcha.label }}</label>
79                 {% if form1.recaptcha.errors %} 
80                     <p class="error">{{ form1.recaptcha.errors|join:", " }}</p>
81                 {% endif %}
82                 {{ form1.recaptcha }}
83                 </div>
84             {% endif %}
85             <div class="submit-row"><input type="submit" class="submit" name="bnewaccount" id="bnewaccount" value="{% trans "create account" %}"/></div>
86                 </form>
87         </div>
88     {% comment %}<!-- this form associates openID with an existing password-protected account, not yet functional -->
89     {% if form2 %}
90         <div class="login" style="display:none">
91         <form name="fverify" action="{% url "user_register" %}" method="POST">
92             {% csrf_token %}
93             {{ form2.next }}
94                         <fieldset style="padding:10px">
95                                 <legend class="big">{% trans "Existing account" %}</legend>
96                                 <div class="form-row"><label for="id_username">{% trans "user name" %}</label><br/>{{ form2.username }}</div>
97                                 <div class="form-row"><label for="id_passwordl">{% trans "password" %}</label><br/>{{ form2.password }}</div>
98                 <p><span class='big strong'>(Optional) receive updates by email</span> - only sent when there are any.</p>
99                                 <!--todo double check translation from chinese 确认 = "Register" -->
100                                 <div class="submit-row">
101                                         <input type="submit" class="submit" name="bverify" value="{% trans "Register" %}"/> 
102                                         <a href="{% url "user_sendpw" %}">{% trans "Forgot your password?" %}</a>
103                                 </div>
104                         </fieldset>
105                 </form>
106         </div>
107     {% endif %}
108     {% endcomment %}
109 {% endblock %}
110 <!-- end complete.html -->