state_config_index.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {% extends "base.html" %}
  2. {% load staticfiles %}
  3. {% load add_get_parameter %}
  4. {% block titlemore %}/States{% endblock %}
  5. {% block h1more %}/States{% endblock %}
  6. {% block body %}
  7. <form action="" method="get">
  8. <table border=1>
  9. <tr>
  10. <th style="text-align:center;">Statistics</th>
  11. <th style="text-align:center;">Links</th>
  12. </tr>
  13. <tr>
  14. <td>
  15. </td>
  16. <td>
  17. <ul>
  18. <li><a href="{% url "state_index" %}">States</a>
  19. </ul>
  20. <ul>
  21. <li><a href="{% url "trap_index" %}">Traps</a>
  22. </ul>
  23. </td>
  24. </tr>
  25. </table>
  26. </form>
  27. <table border=1 width="100%">
  28. <!-- Previous - Next -->
  29. <tr><td colspan=4>
  30. {% include "snippet_obj_prev_next.html" with objs=cfgstate objcount=cfgstatecount objname="State configs" %}
  31. </td></tr>
  32. <!-- Header line -->
  33. <tr>
  34. <th class="status" width="25%">State name</th>
  35. <th class="status" width="25%">Start event</th>
  36. <th class="status" width="25%">Stop event</th>
  37. <th class="status" width="25%">Varbind Sub</th>
  38. </tr>
  39. <!-- CfgStates as table row -->
  40. {% include "states/snippet_cfgstate_as_tr.html" %}
  41. <!-- Previous - Next -->
  42. <tr><td colspan=4>
  43. {% include "snippet_obj_prev_next.html" with objs=cfgstate objcount=cfgstatecount objname="State configs" %}
  44. </td></tr>
  45. </form>
  46. </table>
  47. {% endblock %}