source:
asadb/template/groups/group_list.html
| Last change on this file was 58fe19c, checked in by Alex Dehnert <adehnert@…>, 13 years ago | |
|---|---|
|
|
| File size: 1.2 KB | |
| Rev | Line | |
|---|---|---|
| [140fc9e] | 1 | {% extends "base.html" %} |
| 2 | ||
| 3 | {% block title %}MIT Student Groups{% endblock %} | |
| 4 | {% block content %} | |
| 5 | ||
| [8f46374] | 6 | <div class='group-list-page'> |
| [140fc9e] | 7 | <h1>MIT Student Groups</h1> |
| 8 | ||
| [1de230f] | 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 | ||
| [58fe19c] | 20 | <p>Found {{group_list|length}} groups:</p> |
| 21 | ||
| [e499677] | 22 | <table class='pretty-table group-list'> |
| [140fc9e] | 23 | <thead> |
| 24 | <tr> | |
| 25 | <th>Name</th> | |
| [8c7a670] | 26 | <th>Abbreviation</th> |
| [e499677] | 27 | <th>Status</th> |
| [94c79bd] | 28 | <th>Website</th> |
| 29 | <th>ASA DB</th> | |
| 30 | <th>Description</th> | |
| [140fc9e] | 31 | <th>Meeting Time</th> |
| 32 | </tr> | |
| 33 | </thead> | |
| 34 | <tbody> | |
| 35 | {% for group in group_list %} | |
| [e499677] | 36 | <tr class='group-status-{{group.group_status.slug}} group-active-{{group.group_status.is_active}}'> |
| [94c79bd] | 37 | <th>{{group.name}}</th> |
| [8c7a670] | 38 | <th>{{group.abbreviation}}</th> |
| [e499677] | 39 | <td class='group-status'>{{group.group_status}}</td> |
| [94c79bd] | 40 | <td>{% if group.website_url %}<a href='{{group.website_url}}'>Website</a>{%endif%}</td> |
| [fbb362a] | 41 | <td><a href='{% url groups:group-detail group.pk %}'>DB Entry</a></td> |
| [94c79bd] | 42 | <td>{{group.description}}</td> |
| [140fc9e] | 43 | <td>{{group.meeting_times}}</td> |
| 44 | </tr> | |
| 45 | {% endfor %} | |
| 46 | </tbody> | |
| 47 | </table> | |
| 48 | ||
| [8f46374] | 49 | </div> |
| [140fc9e] | 50 | {% endblock %} |
Note: See TracBrowser
for help on using the repository browser.