]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/auth/complete.html
Merging in changesets from revisions 809, 811, 812, 825, 826, and 827. These all...
[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             <p>{% trans "receive updates motivational blurb" %}</p>
78             <div class='simple-subscribe-options'>
79             {{email_feeds_form.subscribe}}
80             {% if email_feeds_form.errors %}
81             <p class="error">{% trans "please select one of the options above" %}</p>
82             {% endif %}
83             </div>
84             <p class='space-above'>{% trans "Tag filter tool will be your right panel, once you log in." %}</p>
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             {{ form2.next }}
93                         <fieldset style="padding:10px">
94                                 <legend class="big">{% trans "Existing account" %}</legend>
95                                 <div class="form-row"><label for="id_username">{% trans "user name" %}</label><br/>{{ form2.username }}</div>
96                                 <div class="form-row"><label for="id_passwordl">{% trans "password" %}</label><br/>{{ form2.password }}</div>
97                 <p><span class='big strong'>(Optional) receive updates by email</span> - only sent when there are any.</p>
98                 <div class='simple-subscribe-options'>
99                 {{email_feeds_form.subscribe}}
100                 </div>
101                                 <!--todo double check translation from chinese 确认 = "Register" -->
102                                 <div class="submit-row">
103                                         <input type="submit" class="submit" name="bverify" value="{% trans "Register" %}"/> 
104                                         <a href="{% url user_sendpw %}">{% trans "Forgot your password?" %}</a>
105                                 </div>
106                         </fieldset>
107                 </form>
108         </div>
109     {% endif %}
110     {% endcomment %}
111 {% endblock %}
112 <!-- end complete.html -->