nagtrap_index.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {% extends "base.html" %}
  2. {% load staticfiles %}
  3. {% load add_get_parameter %}
  4. {% block titlemore %}/NagTrap{% endblock %}
  5. {% block h1more %}/NagTraps{% endblock %}
  6. {% block body %}
  7. <form action="" method="get">
  8. <table border=1>
  9. <tr>
  10. <th colspan=5 style="text-align:center;">Filter NagTraps</th>
  11. <th style="text-align:center;">Statistics</th>
  12. <th style="text-align:center;">Links</th>
  13. </tr>
  14. <tr>
  15. {% for field in nagtrapfilter %}
  16. <th>{{ field.label_tag }}</th>{% endfor %}
  17. </tr>
  18. <tr>
  19. {% for field in nagtrapfilter %}
  20. <td>{{ field }}</td>{% endfor %}
  21. <td>
  22. <!-- Stats -->
  23. </td>
  24. <td>
  25. <!-- Navigation -->
  26. </td>
  27. </tr>
  28. <!--
  29. <tr>
  30. <th colspan=5 style="text-align:center;">Exclude NagTraps</th>
  31. </tr>
  32. -->
  33. <tr>
  34. {% for field in nagtrapexclude %}
  35. <th>{{ field.label_tag }}</th>{% endfor %}
  36. </tr>
  37. <tr>
  38. {% for field in nagtrapexclude %}
  39. <td>{{ field }}</td>{% endfor %}
  40. </tr>
  41. <tr>
  42. <td colspan=4 style="text-align:center;"><input type="submit" value="Filter now"></td>
  43. <td colspan=1 style="text-align:center;"><a href="{% url "nagtrap_index" %}">Reset all</a></td>
  44. </tr>
  45. </table>
  46. </form>
  47. <table border=1 width="100%">
  48. <form action="{% url "nagtrap_modify" %}{% add_get %}" method="post">
  49. {% csrf_token %}
  50. <!-- Previous - Next -->
  51. <tr><td colspan=7>
  52. {% include "snippet_obj_prev_next.html" with objs=traps objcount=trapcount objname="Traps" %}
  53. </tr></td>
  54. <!-- Header line -->
  55. <tr>
  56. <th class="status" width="6%"></th>
  57. <th class="status" width="7%">Time</th>
  58. <th class="status" width="17%">TrapOID</th>
  59. <th class="status" width="17%">Host</th>
  60. <th class="status" width="10%">Category</th>
  61. <th class="status" width="7%">Severity</th>
  62. <th class="status" width="*">Message</th>
  63. </tr>
  64. <!-- Traps as table row -->
  65. {% include "nagtrap/snippet_trap_as_tr.html" %}
  66. <tr>
  67. <td colspan=3 class="linkBox">
  68. <!-- <img src="./images/dropline/arrow.png" border="0"> -->
  69. <!-- FIXME:#47 <input type="checkbox" name="checkbox" value="checkbox" onClick="checkAll('yes'); return true;"> -->
  70. <button type="submit" name="action" value="read"><img src="{% static "images/dropline/mark.png" %}" /></button>
  71. <button type="submit" name="action" value="delete"><img src="{% static "images/dropline/delete.png" %}" /></button>
  72. <!-- FIXME:#45 <button type="submit" name="action" value="archive"><img src="{% static "images/dropline/archive.png" %}" /></button> -->
  73. </td>
  74. </tr>
  75. <!-- Previous - Next -->
  76. <tr><td colspan=7>
  77. {% include "snippet_obj_prev_next.html" with objs=traps objcount=trapcount objname="Traps" %}
  78. </tr></td>
  79. </form>
  80. </table>
  81. {% endblock %}