{% extends "base.html" %} {% from "macros.html" import utc_timestamp %} {% block title %}Configuration - ePortal{% endblock %} {% block body %}

Configuration

{# README ยง Customer-facing wording: the release notes and the docs reuse it, so keep it verbatim. #}

Where these settings come from

Each setting shows its source:

Return to file value hands a setting back to each node's file. Settings marked Applies after restart take effect when the service restarts.

{% if restart_pending_on %} {# Each host whose service started before the last change that waits for a restart. #}
Restart pending on: {{ restart_pending_on|join(", ") }}
{% endif %} {# One form for the page: a save stores what changed, as one save. A row's Return to file value posts the same form to its own route, which reads only that setting. #}
{% if refusal and refusal.error %} {% endif %} {% if refusal and refusal.takeover %} {# A save that takes settings over from files is refused until this is ticked, as the API refuses one without take_over. #}
{% endif %} {% for label, fields, own_pages in sections %} {% set section_id = 'section-' ~ loop.index %}
{# Open at first; the browser collapses and expands it, no script and no state of ours. #}

{{ label }}

{% for endpoint, line in own_pages %}

{{ line }}

{% endfor %} {% if fields %} {# The same widths in every section's table, so the columns line up down the page. #} {% for field in fields %} {% set id = 'option-' ~ field.name %} {% endfor %}
Setting Value Source Return to file value
{# What the page showed, which the save tells a change from. #} {% if not field.hidden %}{% endif %} {# A secret a refused save dropped, which the next save refuses left empty. #} {% if field.retype %}{% endif %} {% set note = '-error' if field.error else ('-retype' if field.retype else '') %} {% set described = id ~ '-source' ~ (' ' ~ id ~ note if note else '') %} {# A refused field is marked with aria-invalid and a border, not Bootstrap's is-invalid: its background icon leaves axe unable to judge the contrast, as a select's arrow does, which its wrapper draws instead (styles.css). #} {% set invalid = ' border-danger' if field.error else '' %} {% if field.choices %}
{% elif field.hidden %} {% else %} {% endif %} {% if field.error %}
{{ field.error }}
{% elif field.retype %}
{{ field.retype }}
{% endif %}
{{ field.described.where }}{% if field.described.stored_at %} by {{ field.described.stored_by }} on {{ utc_timestamp(field.described.stored_at) }}{% endif %}
{% if field.described.after_restart %}Applies after restart{% endif %}
{% if field.described.stored_via %} {% set whole = ' and the rest of its ' ~ field.group ~ ' group' if field.group else '' %} {% endif %}
{% endif %}
{% endfor %}
{% endblock %}