Add links to edit configuration files directly

Except for networks.json (must incorporate ipsets.json) and nodes.json
(managed with NetBox).

Also increase height for config editor textarea.
This commit is contained in:
Timotej Lazar 2025-10-29 14:14:19 +01:00
parent 331adbd5e4
commit 8d172bfbb1
2 changed files with 4 additions and 1 deletions

View file

@ -5,7 +5,7 @@
Urejate datoteko <code>{{ name }}.json</code>. Urejate datoteko <code>{{ name }}.json</code>.
<form id="request" method="POST"> <form id="request" method="POST">
<p><textarea name="text" style="width: 100%; height: 20em;">{{ content }}</textarea> <p><textarea name="text" style="width: 100%; height: 32em;">{{ content }}</textarea>
<p><button id="submit" type="submit">Shrani</button> <p><button id="submit" type="submit">Shrani</button>
</form> </form>

View file

@ -17,10 +17,13 @@
<dt><a href="{{ url_for('ipsets.index') }}">Omrežja</a> <dt><a href="{{ url_for('ipsets.index') }}">Omrežja</a>
<dd>območja IP, naslovi NAT in skupine za VPN <dd>območja IP, naslovi NAT in skupine za VPN
<dt><a href="{{ url_for('rules.index') }}">Pravila</a> <dt><a href="{{ url_for('rules.index') }}">Pravila</a>
<a href="{{ url_for('config.edit', name='rules') }}" title="JSON"></a>
<dd>pravila za posredovanje prometa <dd>pravila za posredovanje prometa
<dt><a href="{{ url_for('vpn.custom') }}">VPN po meri</a> <dt><a href="{{ url_for('vpn.custom') }}">VPN po meri</a>
<a href="{{ url_for('config.edit', name='wireguard') }}" title="JSON"></a>
<dd>urejanje ključev za oddaljeni dostop do posebnih omrežij <dd>urejanje ključev za oddaljeni dostop do posebnih omrežij
<dt><a href="{{ url_for('config.index') }}">Nastavitve</a> <dt><a href="{{ url_for('config.index') }}">Nastavitve</a>
<a href="{{ url_for('config.edit', name='settings') }}" title="JSON"></a>
<dd>nastavitve aplikacije FRIwall <dd>nastavitve aplikacije FRIwall
</dl> </dl>
</section> </section>