aboutsummaryrefslogtreecommitdiffstats
path: root/account/templates/account/list_approved.html
blob: 8c2587d75037ed2290d8b656fdc77c3b866bfef7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{% extends 'base.html' %}
{% load staticfiles %}
{% load url from future %}
{% load i18n %}
{% load bootstrap3 %}

{# template to show the approved user list #}

{% block pagetitle %}审定名单{% endblock %}

{% block content %}
  <div class="container">
    <h2>审定名单</h2>
    <br>
    {# alert if the user not approved #}
    {% if profile and profile.is_approved == 'N' %}
      <div class="alert alert-warning">
        很抱歉,您未被批准参加本次SKA暑期学校,感谢您的关注与支持。
      </div>
    {% endif %}
    {# approved list #}
    {% if object_list %}
      <table class="table table-striped table-bordered table-hover">
        <thead>
          <tr>
            <th class="col-md-1 list-number">序号</th>
            <th class="col-md-2 list-name">姓名</th>
            {# <th class="col-md-3 list-identify">身份</th> #}
            <th class="col-md-6 list-institute">单位(及专业)</th>
          </tr>
        </thead>
        <tbody>
        {# mark out current user if approved #}
        {% for approved_profile in object_list %}
          <tr{% if approved_profile.user == user %} class="success"{% endif %}>
            <td>{{ forloop.counter }}</td>
            <td>{{ approved_profile.realname }}</td>
            {# <td>{% trans approved_profile.get_identify_value %}</td> #}
            <td>{{ approved_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: #}