{% extends "base.html" %} {% block title %}{{ section | capitalize }} ยท snapdelta{% endblock %} {% block content %}

Admin

{% include "_admin_nav.html" %} {% if saved %}

Saved to {{ saved }}.{% if restart %} The address, the port and the access change at the next start of snapdelta-web.{% endif %}

{% endif %} {% if failure %}

Not saved: {{ failure }}

{% endif %} {% if errors %}

Not saved: correct the values in red.

{% endif %} {% for warning in warnings %}

{{ warning }}

{% endfor %}

{% if file %}Settings file in use: {{ file }}.{% else %}No settings file: the defaults apply. A save creates {{ target_file }}.{% endif %} An empty field takes its default.{% if section == "profiles" %} The names of the models and attributes are in Models.{% endif %}

{% for group in groups %} {% set new_profile = group.table == "profiles.+" %}
{{ group.title }} {% if group.removable %}{% endif %} {% if new_profile %}
{% if 'new_profile' in errors %}

{{ errors['new_profile'] }}

{% endif %}
{% endif %} {% for field in group.fields %} {% set value = posted[field.key] if posted is not none and field.key in posted else field.value %}
{% if field.help %}?{% endif %}
{% if field.kind == "bool" %} {% elif field.kind == "secret" %}
{% if field.secret %}{% endif %}
Now: {{ field.secret.describe() if field.secret else "not set" }}. Both empty keeps it. {% elif field.kind == "list" %} {% elif field.kind == "table" %} {% else %} {% endif %} {% if field.note %}In use: {{ field.in_use }}, from {{ field.note }}, which wins over this file.{% endif %} {% if field.key in errors %}

{{ errors[field.key] }}

{% endif %}
{% if new_profile %}{% else %}{{ field.origin }}{% endif %}
{% endfor %}
{% endfor %}
Saves to {{ target_file }}
{% endblock %}