{% extends "base.html" %} {% from "_macros.html" import dock, push_bell, settings_gear %} {% block title %}Settings ยท Symphony{% endblock %} {% block scripts %}{% endblock %} {# One model alias row, used for the saved rows and for the empty clone the Add button copies. The id input of a ${VAR} row is readonly rather than disabled: a disabled input is not submitted, and the settings core drops a row whose id is missing. #} {% macro model_row(row) -%}
{% if row and row.is_reference %} {% else %} {% endif %}
{%- endmacro %} {% block content %}
Symphony
{{ settings_gear("settings") }} {{ push_bell(push_public_key) }}

Settings

These values live in config.yaml. Saving checks the whole file and restarts Symphony when the running turns finish.

{% if page.restart_pending %}

Restart pending. Symphony is waiting for running turns to finish.

{% endif %} {% if page.errors %} {% endif %} {% if page.form %}
{% for row in page.rows %} {% set field = row.field %} {% set field_id = "setting-" ~ (field.key|replace(".", "-")) %} {% if field.is_reference %}
{{ row.label }}

Set from environment variable{% if field.env_variables|length != 1 %}s{% endif %} {% for variable in field.env_variables %}{{ variable }}{% if not loop.last %}, {% endif %}{% endfor %}.

{% if row.help %}

{{ row.help }}

{% endif %}
{% elif field.kind == "bool" %}
{# The hidden input follows the checkbox on purpose: a browser submits the controls in document order, so a checked box sends "on" first and an unchecked one sends only the hidden value. One of the two must always be present, because an absent key means "unchanged". #} {% if row.help %}

{{ row.help }}

{% endif %}
{% elif field.kind == "password" %}
{% if row.help %}

{{ row.help }}

{% endif %}
{% elif field.kind == "select" %}
{% if row.help %}

{{ row.help }}

{% endif %}
{% elif field.kind in ("int", "float") %}
{% if row.help %}

{{ row.help }}

{% endif %}
{% else %}
{% if row.help %}

{{ row.help }}

{% endif %}
{% endif %} {% endfor %}

Model aliases

A Model: <alias> label on a ticket, or on its project, passes the alias's model id to the agent.

{% for row in page.form.models %}{{ model_row(row) }}{% endfor %}
{% endif %}
{{ dock("settings", needs_input_count) }} {% endblock %}