123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- {% extends "base.html" %}
- {% load staticfiles %}
- {% load add_get_parameter %}
- {% block titlemore %}/NagTrap{% endblock %}
- {% block h1more %}/NagTraps{% endblock %}
- {% block body %}
- <form action="" method="get">
- <table border=1>
- <tr>
- <th colspan=5 style="text-align:center;">Filter NagTraps</th>
- <th style="text-align:center;">Statistics</th>
- <th style="text-align:center;">Links</th>
- </tr>
- <tr>
- {% for field in nagtrapfilter %}
- <th>{{ field.label_tag }}</th>{% endfor %}
- </tr>
- <tr>
- {% for field in nagtrapfilter %}
- <td>{{ field }}</td>{% endfor %}
- <td>
- <!-- Stats -->
- </td>
- <td>
- <!-- Navigation -->
- </td>
- </tr>
- <!--
- <tr>
- <th colspan=5 style="text-align:center;">Exclude NagTraps</th>
- </tr>
- -->
- <tr>
- {% for field in nagtrapexclude %}
- <th>{{ field.label_tag }}</th>{% endfor %}
- </tr>
- <tr>
- {% for field in nagtrapexclude %}
- <td>{{ field }}</td>{% endfor %}
- </tr>
- <tr>
- <td colspan=4 style="text-align:center;"><input type="submit" value="Filter now"></td>
- <td colspan=1 style="text-align:center;"><a href="{% url "nagtrap_index" %}">Reset all</a></td>
- </tr>
- </table>
- </form>
- <table border=1 width="100%">
- <form action="{% url "nagtrap_modify" %}{% add_get %}" method="post">
- {% csrf_token %}
- <!-- Previous - Next -->
- <tr><td colspan=7>
- {% include "snippet_obj_prev_next.html" with objs=traps objcount=trapcount objname="Traps" %}
- </tr></td>
- <!-- Header line -->
- <tr>
- <th class="status" width="6%"></th>
- <th class="status" width="7%">Time</th>
- <th class="status" width="17%">TrapOID</th>
- <th class="status" width="17%">Host</th>
- <th class="status" width="10%">Category</th>
- <th class="status" width="7%">Severity</th>
- <th class="status" width="*">Message</th>
- </tr>
- <!-- Traps as table row -->
- {% include "nagtrap/snippet_trap_as_tr.html" %}
- <tr>
- <td colspan=3 class="linkBox">
- <!-- <img src="./images/dropline/arrow.png" border="0"> -->
- <!-- FIXME:#47 <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:#45 <button type="submit" name="action" value="archive"><img src="{% static "images/dropline/archive.png" %}" /></button> -->
- </td>
- </tr>
- <!-- Previous - Next -->
- <tr><td colspan=7>
- {% include "snippet_obj_prev_next.html" with objs=traps objcount=trapcount objname="Traps" %}
- </tr></td>
- </form>
- </table>
- {% endblock %}
|