2023-05-29 10:24:21 +00:00
{% extends 'base.html' %}
{% block content %}
< p >
2023-07-24 13:45:45 +00:00
Urejate pravilo #{{ index }}. V pravilih lahko uporabljate imena območij IP, prikazana spodaj. < a href = "{{ url_for('rules.index') }}" > Seznam pravil.< / a >
2023-05-29 10:24:21 +00:00
< form id = "request" method = "POST" >
< p >
< label for = "name" > Ime< / label > < br >
< input name = "name" value = "{{ rule.name }}" / >
< p >
Uporabniki, ki lahko o(ne)mogočijo pravilo< br >
{% for manager in rule.managers %}
< input name = "manager" type = "text" style = "width: 50%" value = "{{ manager }}" / > < br >
{% endfor %}
< input name = "manager" type = "text" style = "width: 50%" value = "" / >
< p >
< label for = "text" > Pravila nftables< / label >
< textarea id = "text" name = "text" style = "width: 100%; height: 20em;" > {{ rule.text }}< / textarea >
< p > < button id = "submit" type = "submit" > Shrani< / button >
< / form >
2023-07-24 13:45:45 +00:00
< table >
< thead >
< th > Območje< th > IP< th > IPv6
< tbody >
{% for network, addresses in ipsets.items() %}
< tr >
< td > {{ network }}
< td > {{ addresses.ip|join('< br > ')|safe }}
< td > {{ addresses.ip6|join('< br > ')|safe }}
{% endfor %}
< / table >
2023-05-29 10:24:21 +00:00
{% endblock %}