create.html 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {% extends "base.html" %}
  2. {% block header_title %}Firewall Dashboard{% endblock %}
  3. {% block section_title %}Firewall Dashboard{% endblock %}
  4. {% block debug %}
  5. {{ firewall_all }}
  6. {% endblock %}
  7. {% block content %}
  8. <h2>Create new firewall</h2>
  9. <form action="{% url 'firewall:firewall-create' %}" method="post">
  10. {% csrf_token %}
  11. <p>
  12. <label for="alias">name</label><br>
  13. <input type="text" name="name" id="name" value="{{ name }}" size="30">
  14. </p>
  15. <p>
  16. <label for="alias">description</label><br>
  17. <input type="text" name="description" id="description" value="{{ description }}" size="60">
  18. </p>
  19. <p>
  20. <label for="hostname">default action</label><br>
  21. <input type="radio" name="action" id="action" value="accept"> accept
  22. <input type="radio" name="action" id="action" value="drop"> drop
  23. <input type="radio" name="action" id="action" value="reject"> reject
  24. </p>
  25. <input type="submit" value="Add Firewall">
  26. </form>
  27. {% endblock %}