2018-07-27 19:05:36 +02:00
|
|
|
{% extends "base" %}
|
|
|
|
{% import "macros" as macros %}
|
|
|
|
|
|
|
|
{% block title %}
|
2018-09-10 21:23:35 +02:00
|
|
|
{{ "Administration of {{ instance.name }}" | _(instance=instance) }}
|
2018-07-27 19:05:36 +02:00
|
|
|
{% endblock title %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1>{{ "Administration" | _ }}</h1>
|
|
|
|
|
2018-09-09 12:25:55 +02:00
|
|
|
{{ macros::tabs(links=['/admin', '/admin/instances', '/admin/users'], titles=['Configuration', 'Instances', 'Users'], selected=1) }}
|
2018-09-08 20:54:09 +02:00
|
|
|
|
2018-07-27 19:05:36 +02:00
|
|
|
<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>
|
|
|
|
|
2018-07-27 20:54:34 +02:00
|
|
|
<label for="short_description">{{ "Short description" | _ }}<small>{{ "Markdown is supported" | _ }}</small></label>
|
2018-09-14 21:44:32 +02:00
|
|
|
<textarea id="short_description" name="short_description">{{ form.short_description | default(value=instance.short_description | safe) }}</textarea>
|
2018-07-27 19:05:36 +02:00
|
|
|
|
2018-07-27 20:54:34 +02:00
|
|
|
<label for="long_description">{{ "Long description" | _ }}<small>{{ "Markdown is supported" | _ }}</small></label>
|
2018-09-14 21:44:32 +02:00
|
|
|
<textarea id="long_description" name="long_description">{{ form.long_description | default(value=instance.long_description | safe) }}</textarea>
|
2018-07-27 19:05:36 +02:00
|
|
|
|
|
|
|
{{ 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 %}
|