diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-05-20 20:22:48 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-05-20 20:22:48 +0800 |
commit | 99edd912082815a519fb3823c06961e9fd970ec7 (patch) | |
tree | 8dcb8965d6b64e0c492620f7ad1ec32df7891b90 /account/templates | |
parent | 40154f8351084f5f674cf3e7ea1e8b3bb65136a0 (diff) | |
download | django-skaschool-99edd912082815a519fb3823c06961e9fd970ec7.tar.bz2 |
* added 'is_checkin' field to account.models.UserProfile
* added 'get_checkin_value', 'dump_fieldnames' and 'dump' methods to UserProfile model
* generated south migrations for app 'account'
* display two more columns (email, is_checkin) in UserProfileAdmin
* added 'get_urls' and 'userprofile_csv_view' to UserProfileAdmin
* updaed 'profile.html' with 'is_checkin' field
Diffstat (limited to 'account/templates')
-rw-r--r-- | account/templates/account/profile.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/account/templates/account/profile.html b/account/templates/account/profile.html index ad367f1..88e938f 100644 --- a/account/templates/account/profile.html +++ b/account/templates/account/profile.html @@ -103,6 +103,20 @@ {% endif %} </td> </tr> + <tr> + <th class="profile-checkin">是否报到</th> + <td class="profile-checkin-data"> + {% if profile.is_checkin == 'Y' %} + <span class="glyphicon glyphicon-ok"></span> <span class="label label-success">是</span> + {% elif profile.is_checkin == 'N' %} + <span class="glyphicon glyphicon-remove"></span> <span class="label label-warning">否</span> + {% elif profile.is_checkin == 'X' %} + <span class="glyphicon glyphicon-question-sign"></span> <span class="label label-default">不可用</span> + {% else %} + <span class="glyphicon glyphicon-warning-sign"></span> <span class="label label-danger">系统错误</span> + {% endif %} + </td> + </tr> {# user uploaded files #} {% if userfiles %} <tr> |