source: asadb/template/groups/group_list.html

space-accessstablestage
Last change on this file was 58fe19c, checked in by Alex Dehnert <adehnert@…>, 13 years ago

Show number of matches on search pages (ASA-#205)

  • Property mode set to 100644
File size: 1.2 KB
Line 
1{% extends "base.html" %}
2
3{% block title %}MIT Student Groups{% endblock %}
4{% block content %}
5
6<div class='group-list-page'>
7<h1>MIT Student Groups</h1>
8
9<h2>Search</h2>
10
11<form action="" method="get">
12    <table class='pretty-table'>
13    {{ filter.form.as_table }}
14    </table>
15    <input type="submit" value="Search" />
16</form>
17
18<h2>The Groups</h2>
19
20<p>Found {{group_list|length}} groups:</p>
21
22<table class='pretty-table group-list'>
23<thead>
24    <tr>
25        <th>Name</th>
26        <th>Abbreviation</th>
27        <th>Status</th>
28        <th>Website</th>
29        <th>ASA DB</th>
30        <th>Description</th>
31        <th>Meeting Time</th>
32    </tr>
33</thead>
34<tbody>
35{% for group in group_list %}
36    <tr class='group-status-{{group.group_status.slug}} group-active-{{group.group_status.is_active}}'>
37        <th>{{group.name}}</th>
38        <th>{{group.abbreviation}}</th>
39        <td class='group-status'>{{group.group_status}}</td>
40        <td>{% if group.website_url %}<a href='{{group.website_url}}'>Website</a>{%endif%}</td>
41        <td><a href='{% url groups:group-detail group.pk %}'>DB Entry</a></td>
42        <td>{{group.description}}</td>
43        <td>{{group.meeting_times}}</td>
44    </tr>
45{% endfor %}
46</tbody>
47</table>
48
49</div>
50{% endblock %}
Note: See TracBrowser for help on using the repository browser.