22 lines
1.0 KiB
HTML
22 lines
1.0 KiB
HTML
<!-- retoor <retoor@molodetz.nl> -->
|
|
{% extends "admin/base_admin.html" %}
|
|
{% block admin_content %}
|
|
<h1>Settings</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 == 'site_intro' %}
|
|
<textarea id="s-{{ key }}" name="{{ key }}" rows="24">{{ value }}</textarea>
|
|
<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>
|
|
{% elif 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">Save</button></div>
|
|
</form>
|
|
{% endblock %}
|