aboutsummaryrefslogtreecommitdiffstats
path: root/account/templates
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-21 21:23:24 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-21 21:23:24 +0800
commit838b4e395282da3e4949d97e11fd608e081008c8 (patch)
tree4e2080e36e6d6b5315491681de1457ac221ddfc5 /account/templates
parent202b0633c975c75af87538e42c25e16fa9e9cd17 (diff)
downloaddjango-skaschool-838b4e395282da3e4949d97e11fd608e081008c8.tar.bz2
* added following methods for 'UserProfile' model:
o get_gender_value() o get_approved_value() o get_sponsored_value() o get_identify_value() * updated 'user_registered_callback' to save 'identify' field * updated 'account/profile.html' template to show identify infomation
Diffstat (limited to 'account/templates')
-rw-r--r--account/templates/account/profile.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/account/templates/account/profile.html b/account/templates/account/profile.html
index e8d295c..4f5532d 100644
--- a/account/templates/account/profile.html
+++ b/account/templates/account/profile.html
@@ -1,6 +1,7 @@
{% extends 'base.html' %}
{% load staticfiles %}
{% load url from future %}
+{% load i18n %}
{% load bootstrap3 %}
{# login template #}
@@ -43,6 +44,10 @@
<td class="profile-institute-data">{{ profile.institute }}</td>
</tr>
<tr>
+ <th class="profile-identify">身份</th>
+ <td class="profile-identify-data">{% trans profile.get_identify_value %}</td>
+ </tr>
+ <tr>
<th class="profile-approval">是否审定</th>
<td class="profile-approval-data">
{% if profile.is_approved == 'Y' %}