diff options
author | Mike Chen <chagel@gmail.com> | 2009-07-05 10:23:30 +0800 |
---|---|---|
committer | Mike Chen <chagel@gmail.com> | 2009-07-05 10:23:30 +0800 |
commit | 4347c2947834fe7f2edf2b457b2d513454fc6a03 (patch) | |
tree | 93e9d22d6fb8a6c882e3915a8511a3ac542a1e67 /templates/authopenid/signup.html | |
download | askbot-4347c2947834fe7f2edf2b457b2d513454fc6a03.tar.gz askbot-4347c2947834fe7f2edf2b457b2d513454fc6a03.tar.bz2 askbot-4347c2947834fe7f2edf2b457b2d513454fc6a03.zip |
initiliaze git rep
Diffstat (limited to 'templates/authopenid/signup.html')
-rw-r--r-- | templates/authopenid/signup.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/templates/authopenid/signup.html b/templates/authopenid/signup.html new file mode 100644 index 00000000..e51544f7 --- /dev/null +++ b/templates/authopenid/signup.html @@ -0,0 +1,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 %} |