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

{{ _("Secure Portal") }}.

{% import "bulma_wtf.html" as wtf %}
{{ form.hidden_tag() }} {% 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 %}
{{ form.submit( class="button is-link") }}
{% endblock %}