38 lines
1,018 B
HTML
38 lines
1,018 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
<p>
|
|
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>
|
|
<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>
|
|
|
|
<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 %}
|