2023-05-29 10:24:21 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
2024-05-02 21:33:13 +00:00
|
|
|
{% block header %}
|
|
|
|
<style>
|
|
|
|
pre {
|
2024-05-29 09:10:31 +00:00
|
|
|
margin: 0.5em 2em;
|
|
|
|
}
|
|
|
|
summary {
|
|
|
|
list-style: none;
|
2024-05-02 21:33:13 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
2023-05-29 10:24:21 +00:00
|
|
|
{% block content %}
|
|
|
|
<p>
|
|
|
|
Tu lahko vklopite in izklopite posamezna pravila za požarni zid.
|
|
|
|
|
2024-05-29 09:10:31 +00:00
|
|
|
<form id="request" method="POST">
|
2023-05-29 10:24:21 +00:00
|
|
|
{% for rule in rules %}
|
2023-07-04 10:18:01 +00:00
|
|
|
<details>
|
|
|
|
<summary>
|
2024-05-29 09:10:31 +00:00
|
|
|
<input name="rule" type="hidden" value="{{ rule.name }}" />
|
|
|
|
<input name="enabled" type="checkbox" value="{{ rule.name }}" autocomplete="off"{% if rule.enabled %} checked{% endif %} />
|
|
|
|
{{ rule.name }}
|
2023-07-04 10:18:01 +00:00
|
|
|
</summary>
|
2023-05-29 10:24:21 +00:00
|
|
|
<pre><code>{{ rule.text }}</code></pre>
|
2023-07-04 10:18:01 +00:00
|
|
|
</details>
|
2023-05-29 10:24:21 +00:00
|
|
|
{% endfor %}
|
2024-05-29 09:10:31 +00:00
|
|
|
<p>
|
|
|
|
<button>Potrdi</button>
|
|
|
|
</form>
|
2023-05-29 10:24:21 +00:00
|
|
|
|
|
|
|
{% endblock %}
|