Ignore:
Timestamp:
Mar 23, 2013, 11:36:03 PM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
1cfab5a
Parents:
26826c9
git-author:
Alex Dehnert <adehnert@…> (03/23/13 23:36:03)
git-committer:
Alex Dehnert <adehnert@…> (03/23/13 23:36:03)
Message:

Allow sorting and filtering the midway page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/template/midway/map.html

    rcf509c0 rf610262  
    1616<tr>
    1717    <th>Group</th>
    18     <th>Table</th>
     18    <th>Category</th>
     19    <th>Location</th>
    1920    <th>Website</th>
    2021</tr>
     
    2223<tr>
    2324    <th>{{assignment.group}}</th>
     25    <td>{% if assignment.group.activity_category %}{{assignment.group.activity_category}}{% endif %}</td>
    2426    <td>{{assignment.location}}</td>
    2527    <td>{% if assignment.group.website_url %}<a href='{{assignment.group.website_url}}'>Website</a>{% endif %}</td>
     
    2830</table>
    2931
     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
    3041{% endblock %}
Note: See TracChangeset for help on using the changeset viewer.