space-accessstablestage
|
Last change
on this file was
a01934a,
checked in by Alex Dehnert <adehnert@…>, 13 years ago
|
|
"Upload table assignments" link (ASA-#225)
|
-
Property mode set to
100644
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | {% extends "base.html" %} |
|---|
| 2 | |
|---|
| 3 | {% block title %}ASA: {{midway.name}}{% endblock %} |
|---|
| 4 | {% block content %} |
|---|
| 5 | |
|---|
| 6 | <h1><a href='http://web.mit.edu/asa/'>ASA</a>: {{midway.name}}</h1> |
|---|
| 7 | |
|---|
| 8 | <p>Welcome to the ASA {{midway.name}}! You can find out about MIT's many exciting student groups. Below you will find a map of the Midway, as well as groups' table assignments and links to their respective websites.</p> |
|---|
| 9 | |
|---|
| 10 | <h2>Map</h2> |
|---|
| 11 | |
|---|
| 12 | <img src='{{ MEDIA_URL }}{{midway.table_map}}' alt='Midway map'> |
|---|
| 13 | |
|---|
| 14 | <h2>Assignments</h2> |
|---|
| 15 | <table class='pretty-table'> |
|---|
| 16 | <tr> |
|---|
| 17 | <th>Group</th> |
|---|
| 18 | <th>Category</th> |
|---|
| 19 | <th>Location</th> |
|---|
| 20 | <th>Website</th> |
|---|
| 21 | </tr> |
|---|
| 22 | {% for assignment in assignments %} |
|---|
| 23 | <tr> |
|---|
| 24 | <th>{{assignment.group}}</th> |
|---|
| 25 | <td>{% if assignment.group.activity_category %}{{assignment.group.activity_category}}{% endif %}</td> |
|---|
| 26 | <td>{{assignment.location}}</td> |
|---|
| 27 | <td>{% if assignment.group.website_url %}<a href='{{assignment.group.website_url}}'>Website</a>{% endif %}</td> |
|---|
| 28 | </tr> |
|---|
| 29 | {% endfor %} |
|---|
| 30 | </table> |
|---|
| 31 | |
|---|
| 32 | <h2>Sort the assignments</h2> |
|---|
| 33 | |
|---|
| 34 | <form action="" method="get"> |
|---|
| 35 | <table class='pretty-table'> |
|---|
| 36 | {{ filter.form.as_table }} |
|---|
| 37 | </table> |
|---|
| 38 | <input type="submit" value="Search" /> |
|---|
| 39 | </form> |
|---|
| 40 | |
|---|
| 41 | {% if perms.models.add_midwayassignment %} |
|---|
| 42 | <p>You can <a href='{% url midway-assign midway.slug %}'>upload table assignments</a>.</p> |
|---|
| 43 | {% endif %} |
|---|
| 44 | |
|---|
| 45 | {% endblock %} |
|---|
Note: See
TracBrowser
for help on using the repository browser.