]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/auth/complete.html
initial import
[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     {% comment %}
28         {% if form2.errors %}<!--form2 is dysfunctional so commented out -->
29         <div class="errors">
30         <span class="big">{% trans "Sorry, looks like we have some errors:" %}</span><br/>
31         <ul class="error-list">
32                 {% if form2.username.errors %} 
33                         <li><span class="error">{{ form2.username.errors|join:", " }}</span></li>
34                 {% endif %}
35                 {% if form2.password.errors %} 
36                         <li><span class="error">{{ form2.password.errors|join:", " }}</span></li>
37                 {% endif %}
38        </ul>
39         </div>
40         {% endif %}
41     {% endcomment %}
42
43         <div class="login">
44         <form name="fregister" action="" method="POST">
45             {{ form1.next }}
46             <div class="form-row-vertical">
47                 <label for="id_username">{% trans "Screen name label" %}</label>
48                 {% if form1.username.errors %} 
49                     <p class="error">{{ form1.username.errors|join:", " }}</p>
50                 {% endif %}
51                 {{ form1.username }}
52             </div>
53             <div class="form-row-vertical margin-bottom">
54                 <label for="id_email">{% trans "Email address label" %}</label>
55                 {% if form1.email.errors %} 
56                     <p class="error">{{ form1.email.errors|join:", " }}</p>
57                 {% endif %}
58                 {{ form1.email }}
59             </div>
60             <p>{% trans "receive updates motivational blurb" %}</p>
61             <div class='simple-subscribe-options'>
62             {{email_feeds_form.subscribe}}
63             {% if email_feeds_form.errors %}
64             <p class="error">{% trans "please select one of the options above" %}</p>
65             {% endif %}
66             </div>
67             <p class='space-above'>{% trans "Tag filter tool will be your right panel, once you log in." %}</p>
68             <div class="submit-row"><input type="submit" class="submit" name="bnewaccount" value="{% trans "create account" %}"/></div>
69                 </form>
70         </div>
71     {% comment %}<!-- this form associates openID with an existing password-protected account, not yet functional -->
72     {% if form2 %}
73         <div class="login" style="display:none">
74         <form name="fverify" action="{% url user_register %}" method="POST">
75             {{ form2.next }}
76                         <fieldset style="padding:10px">
77                                 <legend class="big">{% trans "Existing account" %}</legend>
78                                 <div class="form-row"><label for="id_username">{% trans "user name" %}</label><br/>{{ form2.username }}</div>
79                                 <div class="form-row"><label for="id_passwordl">{% trans "password" %}</label><br/>{{ form2.password }}</div>
80                 <p><span class='big strong'>(Optional) receive updates by email</span> - only sent when there are any.</p>
81                 <div class='simple-subscribe-options'>
82                 {{email_feeds_form.subscribe}}
83                 </div>
84                                 <!--todo double check translation from chinese 确认 = "Register" -->
85                                 <div class="submit-row">
86                                         <input type="submit" class="submit" name="bverify" value="{% trans "Register" %}"/> 
87                                         <a href="{% url user_sendpw %}">{% trans "Forgot your password?" %}</a>
88                                 </div>
89                         </fieldset>
90                 </form>
91         </div>
92     {% endif %}
93     {% endcomment %}
94 {% endblock %}
95 <!-- end complete.html -->