mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-23 12:01:02 +00:00
fb074e6344
thanks again to @fdb-hiroshima for pointing me in the right direction!
35 lines
1.7 KiB
Text
35 lines
1.7 KiB
Text
{% extends "base" %}
|
|
{% import "macros" as macros %}
|
|
|
|
{% block title %}
|
|
{{ "Administration of {{ instance.name }}" | _(instance=instance) }}
|
|
{% endblock title %}
|
|
|
|
{% block content %}
|
|
<h1>{{ "Administration" | _ }}</h1>
|
|
|
|
{{ macros::tabs(links=['/admin', '/admin/instances', '/admin/users'], titles=['Configuration', 'Instances', 'Users'], selected=1) }}
|
|
|
|
<form method="post">
|
|
{{ macros::input(name="name", label="Name", errors=errors, form=form, props='minlenght="1"', default=instance) }}
|
|
|
|
<label for="open_registrations">
|
|
{% if instance.open_registrations %}
|
|
<input type="checkbox" name="open_registrations" id="open_registrations" checked>
|
|
{% else %}
|
|
<input type="checkbox" name="open_registrations" id="open_registrations">
|
|
{% endif %}
|
|
{{ "Allow anyone to register" | _ }}
|
|
</label>
|
|
|
|
<label for="short_description">{{ "Short description" | _ }}<small>{{ "Markdown is supported" | _ }}</small></label>
|
|
<textarea id="short_description" name="short_description">{{ form.short_description | default(value=instance.short_description | safe) }}</textarea>
|
|
|
|
<label for="long_description">{{ "Long description" | _ }}<small>{{ "Markdown is supported" | _ }}</small></label>
|
|
<textarea id="long_description" name="long_description">{{ form.long_description | default(value=instance.long_description | safe) }}</textarea>
|
|
|
|
{{ macros::input(name="default_license", label="Default license", errors=errors, form=form, props='minlenght="1"', default=instance) }}
|
|
|
|
<input type="submit" value="{{ "Save settings" | _ }}"/>
|
|
</form>
|
|
{% endblock content %}
|