Add support for managing forwarding rules

This commit is contained in:
Timotej Lazar 2023-05-29 12:24:21 +02:00
parent 52a5b7cd11
commit 765d4a3ce7
8 changed files with 169 additions and 4 deletions

View file

@ -0,0 +1,20 @@
{% extends 'base.html' %}
{% block content %}
<p>
Tu lahko vklopite in izklopite posamezna pravila za požarni zid.
<dl>
{% for rule in rules %}
<dt>
{% if rule.enabled %}
<font color="green"></font> {{ rule.name }} <a href="{{ url_for('rules.toggle', index=rule.index, enable='false') }}">onemogoči</a>
{% else %}
<font color="red"></font> {{ rule.name }} <a href="{{ url_for('rules.toggle', index=rule.index, enable='true') }}">omogoči</a>
{% endif %}
<dd>
<pre><code>{{ rule.text }}</code></pre>
{% endfor %}
</dl>
{% endblock %}