2026-10-05 09:36:20 +02:00
<!-- retoor <retoor@molodetz.nl> -->
{% extends "admin/base_admin.html" %}
{% block admin_content %}
2026-10-05 11:25:41 +02:00
< h1 > Settings</ h1 >
2026-10-05 09:36:20 +02:00
< form class = "form" method = "post" action = "/admin/settings" >
{% for key, value in settings.items() %}
< div class = "field" >
< label for = "s-{{ key }}" > {{ key }}</ label >
2026-10-05 11:12:18 +02:00
{% if key == 'site_intro' %}
< textarea id = "s-{{ key }}" name = "{{ key }}" rows = "24" > {{ value }}</ textarea >
2026-10-05 11:25:41 +02:00
< span class = "help" > Intro at the top of the home page. Markdown; every line break is kept, an empty line starts a new paragraph. The first paragraph is set large.</ span >
2026-10-05 11:12:18 +02:00
{% elif key in ('maintenance_mode', 'friendly_404') %}
2026-10-05 09:36:20 +02:00
< 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 %}
2026-10-05 11:25:41 +02:00
< div class = "actions" >< button class = "button" type = "submit" > Save</ button ></ div >
2026-10-05 09:36:20 +02:00
</ form >
{% endblock %}