Files
ad/molodetz/templates/admin/settings.html
T

19 lines
784 B
HTML

<!-- retoor <retoor@molodetz.nl> -->
{% extends "admin/base_admin.html" %}
{% block admin_content %}
<h1>Instellingen</h1>
<form class="form" method="post" action="/admin/settings">
{% for key, value in settings.items() %}
<div class="field">
<label for="s-{{ key }}">{{ key }}</label>
{% if key in ('maintenance_mode', 'friendly_404') %}
<select id="s-{{ key }}" name="{{ key }}"><option value="0" {% if value == '0' %}selected{% endif %}>0</option><option value="1" {% if value == '1' %}selected{% endif %}>1</option></select>
{% else %}
<input id="s-{{ key }}" type="text" name="{{ key }}" value="{{ value }}">
{% endif %}
</div>
{% endfor %}
<div class="actions"><button class="button" type="submit">Opslaan</button></div>
</form>
{% endblock %}