{% extends "base.html" %} {% block navbar_logout %} {% endblock %} {% block content %}

{{ _('Application Settings') }}

{% import "bulma_wtf.html" as wtf %}
{{ form.hidden_tag() }}
{{ form.submit( class="button is-link") }} {% if config['SETTINGS_CHANGED'] %} {{ form.apply_changes(class="button is-warning") }} {% endif %}
{{ wtf.form_bool_field(form.enable_chat) }}

{{ _("Whether Matrix chat services are enabled.")}}

{{ wtf.form_bool_field(form.enable_deltachat) }}

{{ _("Whether messaging using DeltaChat is enabled.")}}

{{ wtf.form_bool_field(form.enable_file_viewer) }}

{{ _("Whether files services via USB are enabled.")}}


{{ wtf.form_input_field(form.butterbox_name, form.butterbox_name.errors) }}

{{ _("This is the name shown in the UI. Current name:")}} {{ get_setting('butterbox_name') }}, {{ _("accessed at")}} {{ get_setting('butterbox_name') }}.local.

{{ form.butterbox_logo(class='label', style="width: 280px") }}
{{ wtf.field_errors(form.butterbox_logo.errors) }}

{{ _("This is the logo shown in the UI. Current logo:")}}


{% if raspap_installed %}
{{ wtf.form_input_field(form.ssid, form.ssid.errors) }}

{{ _("This is the name of the advertised Wi-Fi network. Current SSID:")}} {{ get_setting('ssid') }}

{{ wtf.form_input_field(form.wifi_password, form.wifi_password.errors) }}

{{ _("This is the secret key needed to connect to the Wi-Fi network. By default, this is not set and everyone can join. Current password:")}} {{ get_setting('wifi_password') or _('Not set') }}

{{ wtf.form_bool_field(form.enable_access_point) }}

{{ _("Whether this box will advertise a Wi-Fi network.")}}

{{ wtf.form_bool_field(form.enable_wifi_sharing) }}

{{ _("Whether a share button for the Wi-Fi network is available.")}}

{% else %}

{{ _("Access point is only enabled when using a Raspberry Pi.") }}

{{ wtf.form_input_field(form.ssid, form.ssid.errors) }}

This is the name of the advertised Wi-Fi network. Current SSID: {{ get_setting('ssid') }}

{{ wtf.form_input_field(form.wifi_password, form.wifi_password.errors) }}

This is the secret key needed to connect to the Wi-Fi network. By default, this is not set and everyone can join. Current password: {{ get_setting('wifi_password') or 'Not set' }}

{{ wtf.form_bool_field(form.enable_access_point) }}

Whether this box will advertise a Wi-Fi network.

{{ wtf.form_bool_field(form.enable_wifi_sharing) }}

Whether a share button for the Wi-Fi network is available.

{% endif %}
{{ wtf.form_password_field(form.admin_password, form.admin_password.errors) }}

{{ _("Password for accessing this admin interface.")}}

{% for subfield in form.root_account_settings %} {% endfor %} {{ wtf.field_errors(form.root_account_settings.errors)}}

{{ _("You need to set a root password, and choose whether you want to lock the root account.")}}

{{ wtf.form_password_field(form.root_password, form.root_password.errors) }}

{{ _("Password for accessing the root account.")}}

{% for subfield in form.ssh_access_settings %} {% endfor %} {{ wtf.field_errors(form.ssh_access_settings.errors) }}

{% endblock %}