]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/auth/complete.html
Javascript error in profile pages.
[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             <p>{% trans "receive updates motivational blurb" %}</p>
62             <div class='simple-subscribe-options'>
63             {{email_feeds_form.subscribe}}
64             {% if email_feeds_form.errors %}
65             <p class="error">{% trans "please select one of the options above" %}</p>
66             {% endif %}
67             </div>
68             <p class='space-above'>{% trans "Tag filter tool will be your right panel, once you log in." %}</p>
69             <div class="submit-row"><input type="submit" class="submit" name="bnewaccount" value="{% trans "create account" %}"/></div>
70                 </form>
71         </div>
72     {% comment %}<!-- this form associates openID with an existing password-protected account, not yet functional -->
73     {% if form2 %}
74         <div class="login" style="display:none">
75         <form name="fverify" action="{% url user_register %}" method="POST">
76             {{ form2.next }}
77                         <fieldset style="padding:10px">
78                                 <legend class="big">{% trans "Existing account" %}</legend>
79                                 <div class="form-row"><label for="id_username">{% trans "user name" %}</label><br/>{{ form2.username }}</div>
80                                 <div class="form-row"><label for="id_passwordl">{% trans "password" %}</label><br/>{{ form2.password }}</div>
81                 <p><span class='big strong'>(Optional) receive updates by email</span> - only sent when there are any.</p>
82                 <div class='simple-subscribe-options'>
83                 {{email_feeds_form.subscribe}}
84                 </div>
85                                 <!--todo double check translation from chinese 确认 = "Register" -->
86                                 <div class="submit-row">
87                                         <input type="submit" class="submit" name="bverify" value="{% trans "Register" %}"/> 
88                                         <a href="{% url user_sendpw %}">{% trans "Forgot your password?" %}</a>
89                                 </div>
90                         </fieldset>
91                 </form>
92         </div>
93     {% endif %}
94     {% endcomment %}
95 {% endblock %}
96 <!-- end complete.html -->