|
@@ -6,6 +6,10 @@
|
|
|
{% block titlemore %}/Traps{% endblock %}
|
|
|
{% block h1more %}/Traps{% endblock %}
|
|
|
|
|
|
+{% block headjs %}
|
|
|
+<script type="text/javascript" src="{% static "js/checkbox.js" %}"></script>
|
|
|
+{% endblock %}
|
|
|
+
|
|
|
{% block body %}
|
|
|
|
|
|
<form action="" method="get">
|
|
@@ -50,24 +54,41 @@
|
|
|
</form>
|
|
|
|
|
|
<table border=1 width="100%">
|
|
|
+ <form action="{% url "trap_config_export" %}{% add_get %}" method="post">
|
|
|
+ {% csrf_token %}
|
|
|
+
|
|
|
<!-- Previous - Next -->
|
|
|
- <tr><td colspan=4>
|
|
|
+ <tr><td colspan=5>
|
|
|
{% include "snippet_obj_prev_next.html" with objs=cfgtraps objcount=cfgtrapcount objname="Trap configs" %}
|
|
|
</td></tr>
|
|
|
|
|
|
<!-- Header line -->
|
|
|
<tr>
|
|
|
+ <th class="status" width="2%"></th>
|
|
|
<th class="status" width="25%">Trap name</th>
|
|
|
<th class="status" width="25%">Trap OID</th>
|
|
|
- <th class="status" width="25%">Category</th>
|
|
|
- <th class="status" width="25%">Severity</th>
|
|
|
+ <th class="status" width="24%">Category</th>
|
|
|
+ <th class="status" width="24%">Severity</th>
|
|
|
</tr>
|
|
|
|
|
|
<!-- Traps as table row -->
|
|
|
{% include "traps/snippet_cfgtrap_as_tr.html" %}
|
|
|
|
|
|
+ <tr>
|
|
|
+ <td class="linkBox">
|
|
|
+ <!-- <img src="./images/dropline/arrow.png" border="0"> -->
|
|
|
+ <input type="checkbox" name="checkbox" value="checkbox" onClick="checkboxes_CheckAll('cfgtrapIDs', this.checked); return true;">
|
|
|
+ </td>
|
|
|
+ <td colspan=2 class="linkBox">
|
|
|
+ <select name="action" size=1>
|
|
|
+ <option value="export-json">Export as JSON</option>
|
|
|
+ </select>
|
|
|
+ <input type="submit" name="submit" value="Go" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
<!-- Previous - Next -->
|
|
|
- <tr><td colspan=4>
|
|
|
+ <tr><td colspan=5>
|
|
|
{% include "snippet_obj_prev_next.html" with objs=cfgtraps objcount=cfgtrapcount objname="Trap configs" %}
|
|
|
</td></tr>
|
|
|
|