summaryrefslogtreecommitdiff
path: root/localwebsite/templates-web/routing_ipsets_page.twig
diff options
context:
space:
mode:
Diffstat (limited to 'localwebsite/templates-web/routing_ipsets_page.twig')
-rw-r--r--localwebsite/templates-web/routing_ipsets_page.twig29
1 files changed, 29 insertions, 0 deletions
diff --git a/localwebsite/templates-web/routing_ipsets_page.twig b/localwebsite/templates-web/routing_ipsets_page.twig
new file mode 100644
index 0000000..5996e68
--- /dev/null
+++ b/localwebsite/templates-web/routing_ipsets_page.twig
@@ -0,0 +1,29 @@
+{% include 'routing_header.twig' with {
+ selected_tab: 'ipsets'
+} %}
+
+<div class="mt-2 text-secondary">
+ Таблицы расположены в порядке применения правил iptables.
+</div>
+
+{% for set, ips in sets %}
+ <h6 class="text-primary mt-4">{{ set }}</h6>
+
+ {% if ips %}
+ {% for ip in ips %}
+ <div>{{ ip }} (<a href="/routing/ipsets/del/?set={{ set }}&amp;ip={{ ip }}" onclick="return confirm('Подтвердите удаление {{ ip }} из {{ set }}.')">удалить</a>)</div>
+ {% endfor %}
+ {% else %}
+ <span class="text-secondary">Нет записей.</span>
+ {% endif %}
+
+ <div style="max-width: 300px">
+ <form method="post" action="/routing/ipsets/add/">
+ <input type="hidden" name="set" value="{{ set }}">
+ <div class="input-group mt-2">
+ <input type="text" name="ip" placeholder="x.x.x.x/y" class="form-control">
+ <button type="submit" class="btn btn-outline-primary">Добавить</button>
+ </div>
+ </form>
+ </div>
+{% endfor %} \ No newline at end of file