From f74743aca5ffa55c717b336a314b58d59f4abc03 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Sun, 20 Apr 2014 21:23:17 +0800 Subject: small fixes to "br" tag --- account/templates/account/login.html | 4 +- account/templates/account/password_change.html | 2 +- .../templates/account/password_change_done.html | 2 +- account/templates/account/profile.html | 52 +++++++++++++++++++++- 4 files changed, 54 insertions(+), 6 deletions(-) (limited to 'account/templates') diff --git a/account/templates/account/login.html b/account/templates/account/login.html index b41844e..4fee972 100644 --- a/account/templates/account/login.html +++ b/account/templates/account/login.html @@ -12,11 +12,11 @@ {% block content %}

登录

-
+
{% csrf_token %} {% bootstrap_form form layout='horizontal' %} - {% buttons submit='提交' reset='取消' layout='horizontal' %}{% endbuttons %} + {% buttons submit='提交' reset='重置' layout='horizontal' %}{% endbuttons %}
{% endblock %} diff --git a/account/templates/account/password_change.html b/account/templates/account/password_change.html index 372bb0c..f4e2e90 100644 --- a/account/templates/account/password_change.html +++ b/account/templates/account/password_change.html @@ -12,7 +12,7 @@ {% block content %}

修改密码

-
+
{% csrf_token %} {% bootstrap_form form layout='horizontal' %} diff --git a/account/templates/account/password_change_done.html b/account/templates/account/password_change_done.html index e003033..e8770ca 100644 --- a/account/templates/account/password_change_done.html +++ b/account/templates/account/password_change_done.html @@ -13,7 +13,7 @@

密码修改成功

您已成功修改密码。

-
+

返回个人主页

{% endblock %} diff --git a/account/templates/account/profile.html b/account/templates/account/profile.html index aac992f..cb08717 100644 --- a/account/templates/account/profile.html +++ b/account/templates/account/profile.html @@ -12,9 +12,57 @@ {% block content %}

个人主页

-

TODO ...

+
-
+ + + + + + + + + + + + + + + + + + + + + + +
姓名{{ profile.realname }}
邮箱{{ user.email }}
单位{{ profile.institute }}
是否审定 + {% if profile.is_approved == 'Y' %} + + {% elif profile.is_approved == 'N' %} + + {% elif profile.is_approved == 'C' %} + 审核中 + {% else %} + 错误 + {% endif %} +
是否资助 + {% if profile.is_sponsored == 'Y' %} + + {% elif profile.is_sponsored == 'N' %} + + {% elif profile.is_sponsored == 'C' %} + 审核中 + {% else %} + 错误 + {% endif %} +
+ +
+

+ 编辑个人信息 + 修改密码 +

{% endblock %} -- cgit v1.2.2