diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-04-22 01:09:37 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-04-22 01:09:37 +0800 |
commit | 7b9c7d04ba8080910dbf2b733685b3ed27fef6cc (patch) | |
tree | fff2a2b7890b9c031fa22e35893477bf3dd5b169 | |
parent | 6252823e3bb7475fd7d07eac7485d759d894f75f (diff) | |
download | django-skaschool-7b9c7d04ba8080910dbf2b733685b3ed27fef6cc.tar.bz2 |
* added column 'identify' to 'list_approved' view
* updated navbar.html to always show 'list_approved' but login_required
-rw-r--r-- | account/templates/account/list_approved.html | 9 | ||||
-rw-r--r-- | templates/navbar.html | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/account/templates/account/list_approved.html b/account/templates/account/list_approved.html index 4bae4a2..3fbe2a2 100644 --- a/account/templates/account/list_approved.html +++ b/account/templates/account/list_approved.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% load staticfiles %} {% load url from future %} +{% load i18n %} {% load bootstrap3 %} {# login template #} @@ -17,9 +18,10 @@ <table class="table table-striped table-bordered table-hover"> <thead> <tr> - <th class="col-md-1">序号</th> - <th class="col-md-3">姓名</th> - <th class="col-md-8">单位</th> + <th class="col-md-1 list-number">序号</th> + <th class="col-md-2 list-name">姓名</th> + <th class="col-md-2 list-identify">身份</th> + <th class="col-md-7 list-institute">单位</th> </tr> </thead> <tbody> @@ -28,6 +30,7 @@ <tr{% if profile.user == user %} class="success"{% endif %}> <td>{{ forloop.counter }}</td> <td>{{ profile.realname }}</td> + <td>{% trans profile.get_identify_value %}</td> <td>{{ profile.institute }}</td> </tr> {% endfor %} diff --git a/templates/navbar.html b/templates/navbar.html index 906bcf2..c4f84c2 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -24,10 +24,8 @@ <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">更多 <b class="caret"></b></a> <ul class="dropdown-menu"> - {% if user.is_authenticated %} <li><a href="{% url 'list_approved' %}">审定名单</a></li> - {% endif %} - <li><a href="#">下载</a></li> + <li><a href="#">资料下载</a></li> <li><a href="#">赞助方</a></li> <li><a href="#">联系方式</a></li> <li class="divider"></li> |