friwall/web/templates/config/index.html
Timotej Lazar 87305fb2ff Hide sensitive settings
Use password inputs for settings with secret-looking names.
2025-10-29 11:47:34 +01:00

20 lines
518 B
HTML

{% extends 'base.html' %}
{% block content %}
<p>
Tu lahko urejate splošne nastavitve.
<form id="request" method="POST">
<table>
<tbody>
{% for name, value in settings.items() %}
<tr>
<td><label for="{{ name }}">{{ name }}</label>
<td><input id="{{ name }}" name="{{ name }}" value="{{ value }}" size="40"
type="{% if ['key', 'pass', 'secret'] | select('in', name) | list %}password{% else %}text{% endif %}" />
{% endfor %}
</table>
<p><button id="submit" type="submit">Shrani</button>
</form>
{% endblock %}