1 {% extends "base.html" %} 2 3 {% block content %} 4 <p class="title">Job Groups</p> 5 6 <form action="/job-group" method="post"> 7 {{ filter.as_p }} 8 <p><input type="submit" value="Filter!" /></p> 9 </form> 10 11 <table class="list"> 12 <tbody> 13 <tr> 14 <th>Group ID</th> 15 <th>Label</th> 16 <th>Time Submitted</th> 17 <th>Status</th> 18 </tr> 19 {% for group in groups %} 20 <tr> 21 <td> 22 <a class="button column" href="/job-group/{{ group.id }}">{{ group.id }}</a> 23 </td> 24 <td>{{ group.label }}</td> 25 <td>{{ group.submitted }}</td> 26 {% if group.status %} 27 <td class="{{ group.status }}">{{ group.state }}</td> 28 {% else %} 29 <td>{{ group.state }}</td> 30 {% endif %} 31 </tr> 32 {% endfor %} 33 </tbody> 34 </table> 35 {% endblock %} 36