| [19] | 1 | {% extends "base.html" %} |
|---|
| 2 | |
|---|
| [20] | 3 | {% block title %}{{project_name}}: List of simulations{% if tag %} tagged with {{tag}}{% endif %}{% endblock %} |
|---|
| [19] | 4 | |
|---|
| [31] | 5 | {% block header %}<h1>{{project_name}}: List of simulations{% if tag %} tagged with <em>{{tag}}</em>{% endif %}</h1>{% endblock %} |
|---|
| [19] | 6 | |
|---|
| 7 | {% block content %} |
|---|
| 8 | |
|---|
| 9 | {% if tag %} |
|---|
| 10 | <p><a href="/">Return to full simulation list</a></p> |
|---|
| 11 | <p><a href="/tag/">Return to list of tags</a></p> |
|---|
| 12 | {% endif %} |
|---|
| 13 | |
|---|
| 14 | {% if object_list %} |
|---|
| 15 | <form method="POST" action="/delete/"> |
|---|
| 16 | <table class="simlist"> |
|---|
| 17 | <tr> |
|---|
| 18 | <th rowspan="2"><input type="Submit" value="Delete"/></th> |
|---|
| 19 | <th rowspan="2">ID</th> |
|---|
| 20 | <th rowspan="2">Reason</th> |
|---|
| 21 | <th rowspan="2">Outcome</th> |
|---|
| 22 | <th rowspan="2">Duration</th> |
|---|
| 23 | <th colspan="2">Simulator</th> |
|---|
| 24 | <th colspan="2">Script</th> |
|---|
| 25 | <th rowspan="2">Date</th> |
|---|
| 26 | <th rowspan="2">Time</th> |
|---|
| [31] | 27 | <th rowspan="2">Tags</th> |
|---|
| [19] | 28 | </tr> |
|---|
| 29 | <tr> |
|---|
| 30 | <th>Main file</th> |
|---|
| 31 | <th>Version</th> |
|---|
| 32 | <th>Name</th> |
|---|
| 33 | <th>Version</th> |
|---|
| 34 | </tr> |
|---|
| 35 | {% for record in object_list %} |
|---|
| 36 | <tr class="{% cycle odd,even %}"> |
|---|
| 37 | <td><input type="checkbox" name="delete" value="{{record.id}}"/></td> |
|---|
| 38 | <td><a href="{{record.id}}/">{{record.id}}</a></td> |
|---|
| 39 | <td>{{record.reason}}</td> |
|---|
| 40 | <td>{{record.outcome}}</td> |
|---|
| 41 | <td>{{record.duration|floatformat:2}} s</td> |
|---|
| 42 | <td>{{record.executable.name}}</td> |
|---|
| 43 | <td>{{record.executable.version}}</td> |
|---|
| 44 | <td>{{record.script.main_file}}</td> |
|---|
| 45 | <td>{{record.script.version}}</td> |
|---|
| 46 | <td>{{record.timestamp|date:"d/m/Y"}}</td> |
|---|
| 47 | <td>{{record.timestamp|date:"H:i:s"}}</td> |
|---|
| [31] | 48 | <td>{{record.tags}}</td> |
|---|
| [19] | 49 | </tr> |
|---|
| 50 | {% endfor %} |
|---|
| 51 | </table> |
|---|
| 52 | </form> |
|---|
| 53 | {% else %} |
|---|
| 54 | <p class="warning"><strong>No simulation records found</strong></p> |
|---|
| 55 | {% endif %} |
|---|
| 56 | |
|---|
| 57 | {% endblock %} |
|---|