eerrrrrr
All checks were successful
CI - Build Tonehaus Docker image / tonehaus-ci-build (push) Successful in 1m57s

This commit is contained in:
2025-11-27 23:42:17 +00:00
parent 054e970df9
commit 1c98a634c3
50 changed files with 1666 additions and 593 deletions

View File

@@ -3,6 +3,7 @@
{% block body %}
<h1 class="h4 mb-3">Site Settings</h1>
{% for msg in app.flashes('success') %}<div class="alert alert-success">{{ msg }}</div>{% endfor %}
{% for msg in app.flashes('info') %}<div class="alert alert-info">{{ msg }}</div>{% endfor %}
<div class="card">
<div class="card-body">
@@ -15,6 +16,18 @@
{{ form_label(form.SPOTIFY_CLIENT_SECRET) }}
{{ form_widget(form.SPOTIFY_CLIENT_SECRET, {attr: {class: 'form-control'}}) }}
</div>
<div class="form-check form-switch">
{% set registrationToggleAttrs = {class: 'form-check-input'} %}
{% if registrationImmutable %}
{% set registrationToggleAttrs = registrationToggleAttrs|merge({disabled: true}) %}
{% endif %}
{{ form_widget(form.REGISTRATION_ENABLED, {attr: registrationToggleAttrs}) }}
{{ form_label(form.REGISTRATION_ENABLED, null, {label_attr: {class: 'form-check-label'}}) }}
<div class="form-text">When disabled, public sign-up is blocked but admins can still create users from `/admin/users`.</div>
{% if registrationImmutable %}
<div class="form-text text-warning">Locked by <code>APP_ALLOW_REGISTRATION</code> ({{ registrationOverrideValue ? 'enabled' : 'disabled' }}).</div>
{% endif %}
</div>
<div>
<button class="btn btn-success" type="submit">Save settings</button>
</div>