Add form for editing ipsets
This commit is contained in:
parent
a5df435931
commit
5add39a8a7
7 changed files with 88 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
{% block content %}
|
||||
<p>
|
||||
Urejate pravilo #{{ index }}. <a href="{{ url_for('rules.index') }}">Seznam pravil.</a>
|
||||
Urejate pravilo #{{ index }}. V pravilih lahko uporabljate imena območij IP, prikazana spodaj. <a href="{{ url_for('rules.index') }}">Seznam pravil.</a>
|
||||
|
||||
<form id="request" method="POST">
|
||||
<p>
|
||||
|
@ -22,4 +22,16 @@ Uporabniki, ki lahko o(ne)mogočijo pravilo<br>
|
|||
<p><button id="submit" type="submit">Shrani</button>
|
||||
</form>
|
||||
|
||||
<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>
|
||||
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue