summaryrefslogtreecommitdiffstats
path: root/templates/authopenid/signup.html
blob: e51544f714d28ffbad5288903f4c720a57c9894d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{% extends "base.html" %}
{% block title %}{% spaceless %}注册帐号{% endspaceless %}{% endblock %}

{% block content %}
<div id="main-bar" class="">
    <h3 >注册帐号</h3>

</div>
<div class="jointxt">
    <p>我们支持两种注册方式,你可以使用常规的用户名、密码方式注册,或者<a href="{% url user_signin %}">使用OpenID帐号注册</a></p>

    {% if form.errors %}
    
    <p class="errors">
        <span class="big">请注意以下错误:</span><br>
        <ul class="error-list">
        {% if form.username.errors %} 
        <li><span class="error">{{ form.username.errors|join:", " }}</span></li>
        {% endif %}
        {% if form.email.errors %} 
        <li><span class="error">{{ form.email.errors|join:", " }}</span></li>
        {% endif %}
        {% if form.password2.errors %} 
        <li><span class="error">{{ form.password2.errors|join:", " }}
        </span></li>
        {% endif %}
        </ul>
    </p>
    {% endif %}
</div>
    <form action="{% url user_signup %}" method="post" accept-charset="utf-8">
        <fieldset class="fieldset">
        <legend class="big">常规注册</legend>	
            <div class="form-row"><label for="id_username">选择一个用户名:</label><br>{{ form.username }}</div>

            <div class="form-row"><label for="id_email">您的电子邮件地址:</label><br>{{ form.email }}</div>
            <div class="form-row"><label for="id_password1">密码:</label><br />{{ form.password1 }}</div>
            <div class="form-row"><label for="id_password2">确认密码:</label><br>{{ form.password2 }}</div>
            <div class="submit-row"><input type="submit" class="submit" value="注册" > <a href="{% url user_signin %}">返回登录</a></div>
        </fieldset>
            <br >
    </form>
    <br >
    <div style="display:none">
    <h2 class="signup">使用OpenID注册</h2>
    <form name="fopenid" action="{% url user_signin %}" method="post">
        <div class="form-row">{{ form2.openid_url }}</div>
        <div class="submit-row "><input name="bsignin" class="submit" type="submit" value="使用OpenID登录"></div>
    </form>
    </div>
{% endblock %}