Improve admin settings page

The improvements are mostly cosmetic^Wquestionable.
This commit is contained in:
Timotej Lazar 2023-07-07 13:23:51 +02:00
parent dd607dbddd
commit 8c824fe9e6
2 changed files with 16 additions and 7 deletions

View file

@ -5,12 +5,14 @@
Tu lahko urejate splošne nastavitve.
<form id="request" method="POST">
<h2>Nastavitve</h2>
<table>
<tbody>
{% for name, value in settings.items() %}
<p>
<input type="hidden" name="setting" value="{{ name }}" />
<label>{{ name }}<br><input name="value" value="{{ value }}" /></label>
<tr>
<td><label for="{{ name }}">{{ name }}</label>
<td><input id="{{ name }}" name="{{ name }}" value="{{ value }}" size="40" />
{% endfor %}
</table>
<p><button id="submit" type="submit">Shrani</button>
</form>