Fix bug where settings not saved for amd64 machines
This commit is contained in:
parent
3c456fb295
commit
46ad2eff41
1 changed files with 22 additions and 4 deletions
|
|
@ -76,7 +76,6 @@
|
|||
<p class="help"> 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' }}</p>
|
||||
</div>
|
||||
|
||||
<div class="field checkbox">
|
||||
{{ wtf.form_bool_field(form.enable_access_point) }}
|
||||
<p class="butter-form-margin help">Whether this box will advertise a Wi-Fi network.</p>
|
||||
|
|
@ -86,7 +85,26 @@
|
|||
<p class="butter-form-margin help">Whether a share button for the Wi-Fi network is available.</p>
|
||||
</div>
|
||||
{% else %}
|
||||
<p> Access point is only enabled when using a Raspberry Pi. </p>
|
||||
<p> Access point is only enabled when using a Raspberry Pi. </p>
|
||||
<div style="display: none">
|
||||
<div class="field">
|
||||
{{ wtf.form_input_field(form.ssid, form.ssid.errors) }}
|
||||
<p class="help"> This is the name of the advertised Wi-Fi network. Current SSID: {{ get_setting('ssid') }}</p>
|
||||
</div>
|
||||
<div class="field password">
|
||||
{{ wtf.form_input_field(form.wifi_password, form.wifi_password.errors) }}
|
||||
<p class="help"> 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' }}</p>
|
||||
</div>
|
||||
<div class="field checkbox">
|
||||
{{ wtf.form_bool_field(form.enable_access_point) }}
|
||||
<p class="butter-form-margin help">Whether this box will advertise a Wi-Fi network.</p>
|
||||
</div>
|
||||
<div class="field checkbox">
|
||||
{{ wtf.form_bool_field(form.enable_wifi_sharing) }}
|
||||
<p class="butter-form-margin help">Whether a share button for the Wi-Fi network is available.</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<hr>
|
||||
|
|
@ -126,7 +144,7 @@
|
|||
{{ wtf.field_errors(form.ssh_access_settings.errors) }}
|
||||
</div>
|
||||
|
||||
|
||||
<hr>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue