2023-05-29 10:24:21 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<p>
|
|
|
|
Urejate prioritete pravil za požarni zid. Pravilo odstranite tako, da izbrišete pripadajočo številko. V zadnji vrstici lahko dodate novo pravilo.
|
|
|
|
|
|
|
|
<form id="request" method="POST">
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
{% for rule in rules %}
|
|
|
|
<tr>
|
2023-07-04 10:18:01 +00:00
|
|
|
<td><input name="index" type="number" min="0" size="4" value="{{ loop.index * 10 }}" />
|
2023-05-29 10:24:21 +00:00
|
|
|
<td><input type="hidden" name="name" value="{{ rule.name }}" />
|
|
|
|
<a href="{{ url_for('rules.edit', index=loop.index0) }}">{{ rule.name }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
<tr>
|
2023-07-04 10:18:01 +00:00
|
|
|
<td><input name="index" type="number" min="0" size="4" />
|
2023-05-29 10:24:21 +00:00
|
|
|
<td><input name="name" type="text" size="40" />
|
|
|
|
</table>
|
|
|
|
<p><button id="submit" type="submit">Shrani</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{% endblock %}
|