aboutsummaryrefslogtreecommitdiffstats
path: root/account/templates
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-21 16:09:36 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-21 16:09:36 +0800
commit4c59c651baa7e9d29f90419c905745fd3ab025d8 (patch)
tree7d1e247b5d221bcaf3a51ccf4ee6aeeb350f14dd /account/templates
parentf2701f640bd483504021059a554cca582097eb4e (diff)
downloaddjango-skaschool-4c59c651baa7e9d29f90419c905745fd3ab025d8.tar.bz2
* implemented 'list_approved' view, added related template
* updated related link in 'navbar.html'
Diffstat (limited to 'account/templates')
-rw-r--r--account/templates/account/list_approved.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/account/templates/account/list_approved.html b/account/templates/account/list_approved.html
new file mode 100644
index 0000000..4bae4a2
--- /dev/null
+++ b/account/templates/account/list_approved.html
@@ -0,0 +1,45 @@
+{% extends 'base.html' %}
+{% load staticfiles %}
+{% load url from future %}
+{% load bootstrap3 %}
+
+{# login template #}
+
+{% block title %}
+审定名单 | 2014 SKA Summer School
+{% endblock %}
+
+{% block content %}
+ <div class="container">
+ <h2>审定名单</h2>
+ <br>
+ {% if object_list %}
+ <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>
+ </tr>
+ </thead>
+ <tbody>
+ {# mark out current user if approved #}
+ {% for profile in object_list %}
+ <tr{% if profile.user == user %} class="success"{% endif %}>
+ <td>{{ forloop.counter }}</td>
+ <td>{{ profile.realname }}</td>
+ <td>{{ profile.institute }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ <p>(注:按注册先后排序)</p>
+ {% else %}
+ <div class="alert alert-warning">
+ 审核正在进行,请稍后查询……
+ </div>
+ {% endif %}
+ </div>
+{% endblock %}
+
+{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #}