{% extends 'base.html.twig' %} {% block title %}Site Settings{% endblock %} {% block body %}

Site Settings

{% for msg in app.flashes('success') %}
{{ msg }}
{% endfor %} {% for msg in app.flashes('info') %}
{{ msg }}
{% endfor %}
{{ form_start(form, {attr: {class: 'vstack gap-3', novalidate: 'novalidate'}}) }}
{{ form_label(form.SPOTIFY_CLIENT_ID) }} {{ form_widget(form.SPOTIFY_CLIENT_ID, {attr: {class: 'form-control'}}) }}
{{ form_label(form.SPOTIFY_CLIENT_SECRET) }} {{ form_widget(form.SPOTIFY_CLIENT_SECRET, {attr: {class: 'form-control'}}) }}
{% 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'}}) }}
When disabled, public sign-up is blocked but admins can still create users from `/admin/users`.
{% if registrationImmutable %}
Locked by APP_ALLOW_REGISTRATION ({{ registrationOverrideValue ? 'enabled' : 'disabled' }}).
{% endif %}
{{ form_end(form) }}

Maintenance

Deletes all albums (and tracks) plus reviews. Users and settings stay intact.

Generate demo data

{% for key, command in demoCommands %}
{{ command.label }}
{{ command.description }}
Command: php bin/console {{ command.command }}
{% for field in command.fields %} {% if field.type != 'checkbox' %}
{% endif %} {% endfor %}
{% for field in command.fields %} {% if field.type == 'checkbox' %}
{% endif %} {% endfor %}
{% endfor %}
{% endblock %}