1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- {% extends "base.html" %}
- {% load staticfiles %}
- {% load add_get_parameter %}
- {% block titlemore %}/States{% endblock %}
- {% block h1more %}/States{% endblock %}
- {% block body %}
- <form action="" method="get">
- <table border=1>
- <tr>
- <th colspan=5 style="text-align:center;">Filter States</th>
- <th style="text-align:center;">Statistics</th>
- <th style="text-align:center;">Links</th>
- </tr>
- <tr>
- {% for field in statefilter %}
- <th>{{ field.label_tag }}</th>{% endfor %}
- </tr>
- <tr>
- {% for field in statefilter %}
- <td>{{ field }}</td>{% endfor %}
- <td>
- <ul>
- {% if stats_states_active %}<li><a href="{% url "state_index" %}?stop_time=_NULL_">{{ stats_states_active }} active states</a></li>{% endif %}
- {% if stats_states_finished %}<li>{{ stats_states_finished }} finished states</li>{% endif %}
- {% if stats_states_weired %}<li><a href="{% url "state_index" %}?start_time=_NULL_">{{ stats_states_weired }} weired states</a></li>{% endif %}
- </ul>
- </td>
- <td>
- <ul>
- <li><a href="{% url "trap_index" %}">Traps</a></li>
- </ul>
- <ul>
- <li><a href="{% url "state_config_index" %}">State configurations</a></li>
- </ul>
- </td>
- </td>
- </tr>
- <tr>
- <td colspan=4 style="text-align:center;"><input type="submit" value="Filter now"></td>
- <td colspan=4 style="text-align:center;"><a href="{% url "state_index" %}">Reset all</a>
- </tr>
- </table>
- </form>
- <table border=1 width="100%">
- <form action="{% url "state_modify" %}{% add_get %}" method="post">
- {% csrf_token %}
- <!-- Previous - Next -->
- <tr><td colspan=8>
- {% include "snippet_obj_prev_next.html" with objs=states objcount=statecount objname="States" %}
- </td></tr>
- <!-- Header line -->
- <tr>
- <th class="status" width="10%"></th>
- <th class="status" width="15%">Host</th>
- <th class="status" width="10%">Event</th>
- <th class="status" width="10%">Status</th>
- <th class="status" width="15%">Start</th>
- <th class="status" width="15%">Stop</th>
- <th class="status" width="15%">Duration</th>
- <th class="status" width="*">Sub</th>
- </tr>
- <!-- States as table row -->
- {% include "states/snippet_state_as_tr.html" %}
- <tr>
- <td colspan=3 class="linkBox">
- <!-- <img src="./images/dropline/arrow.png" border="0"> -->
- <!-- FIXME:#48 <input type="checkbox" name="checkbox" value="checkbox" onClick="checkAll('yes'); return true;"> -->
- <button type="submit" name="action" value="read"><img src="{% static "images/dropline/mark.png" %}" /></button>
- <button type="submit" name="action" value="delete"><img src="{% static "images/dropline/delete.png" %}" /></button>
- <!-- FIXME:#46 <button type="submit" name="action" value="archive"><img src="{% static "images/dropline/archive.png" %}" /></button> -->
- </td>
- </tr>
- <!-- Previous - Next -->
- <tr><td colspan=8>
- {% include "snippet_obj_prev_next.html" with objs=states objcount=statecount objname="States" %}
- </td></tr>
- </table>
- {% endblock %}
|