]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/auth/complete.html
c5a3c9ee2266d84d2cc260e751cdf000b80bc209
[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             <b>{% trans "You are here for the first time with " %}{{ provider }}</b>
13             {% trans "Please create your screen name and save your email address. Saved email address will let you subscribe for the updates on the most interesting questions and will be used to create and retrieve your unique avatar image. " %}
14         </div>
15         <p style="display:none">{% trans "This account already exists, please use another." %}</p>
16         </div>
17
18         {% if form1.errors %}
19         <ul class="errorlist">
20         {% if form1.non_field_errors %}
21             {% for error in form1.non_field_errors %}
22                 <li>{{error}}</li>
23             {% endfor %}
24         {% endif %}
25         </ul>
26         {% endif %}
27
28         <div class="login">
29         <form name="fregister" action="" method="POST">
30             {{ form1.next }}
31             <div class="form-row-vertical margin-bottom">
32                 <label for="id_username">{{ form1.username.label }}</label>
33                 {% if form1.username.errors %} 
34                     <p class="error">{{ form1.username.errors|join:", " }}</p>
35                 {% endif %}
36                 {{ form1.username }}
37             </div>
38             <div class="form-row-vertical margin-bottom">
39                 <label for="id_email">{{ form1.email.label }}</label>
40                 {% if form1.email.errors %} 
41                     <p class="error">{{ form1.email.errors|join:", " }}</p>
42                 {% endif %}
43                 {{ form1.email }}
44             </div>
45             {% if form1.password1 %}
46                 <div class="form-row-vertical margin-bottom">
47                     <label for="password1_id">{{ form1.password1.label }}</label>
48                     {% if form1.password1.errors %}
49                         <p class="error">{{ form1.password1.errors|join:", " }}</p>
50                     {% endif %}
51                     {{ form1.password1 }}
52                 </div>
53                 <div class="form-row-vertical margin-bottom">
54                     <label for="password2_id">{{ form1.password2.label }}</label>
55                     {% if form1.password2.errors %} 
56                         <p class="error">{{ form1.password2.errors|join:", " }}</p>
57                     {% endif %}
58                     {{ form1.password2 }}
59                 </div>
60             {% endif %}
61             {% if form1.recaptcha %}
62                 <div class="form-row-vertical margin-bottom">
63                 <label for="recaptcha_id">{{ form1.recaptcha.label }}</label>
64                 {% if form1.recaptcha.errors %} 
65                     <p class="error">{{ form1.recaptcha.errors|join:", " }}</p>
66                 {% endif %}
67                 {{ form1.recaptcha }}
68                 </div>
69             {% endif %}
70             <p>{% trans "receive updates motivational blurb" %}</p>
71             <div class='simple-subscribe-options'>
72             {{email_feeds_form.subscribe}}
73             {% if email_feeds_form.errors %}
74             <p class="error">{% trans "please select one of the options above" %}</p>
75             {% endif %}
76             </div>
77             <p class='space-above'>{% trans "Tag filter tool will be your right panel, once you log in." %}</p>
78             <div class="submit-row"><input type="submit" class="submit" name="bnewaccount" id="bnewaccount" value="{% trans "create account" %}"/></div>
79                 </form>
80         </div>
81     {% comment %}<!-- this form associates openID with an existing password-protected account, not yet functional -->
82     {% if form2 %}
83         <div class="login" style="display:none">
84         <form name="fverify" action="{% url user_register %}" method="POST">
85             {{ form2.next }}
86                         <fieldset style="padding:10px">
87                                 <legend class="big">{% trans "Existing account" %}</legend>
88                                 <div class="form-row"><label for="id_username">{% trans "user name" %}</label><br/>{{ form2.username }}</div>
89                                 <div class="form-row"><label for="id_passwordl">{% trans "password" %}</label><br/>{{ form2.password }}</div>
90                 <p><span class='big strong'>(Optional) receive updates by email</span> - only sent when there are any.</p>
91                 <div class='simple-subscribe-options'>
92                 {{email_feeds_form.subscribe}}
93                 </div>
94                                 <!--todo double check translation from chinese 确认 = "Register" -->
95                                 <div class="submit-row">
96                                         <input type="submit" class="submit" name="bverify" value="{% trans "Register" %}"/> 
97                                         <a href="{% url user_sendpw %}">{% trans "Forgot your password?" %}</a>
98                                 </div>
99                         </fieldset>
100                 </form>
101         </div>
102     {% endif %}
103     {% endcomment %}
104 {% endblock %}
105 <!-- end complete.html -->