Add support for managing forwarding rules
This commit is contained in:
parent
52a5b7cd11
commit
765d4a3ce7
8 changed files with 169 additions and 4 deletions
20
web/templates/rules/manage.html
Normal file
20
web/templates/rules/manage.html
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue