feat: registration settings

This commit is contained in:
Per Stark
2025-01-27 22:16:17 +01:00
parent f329987818
commit c6bc0c44f3
6 changed files with 87 additions and 7 deletions

View File

@@ -29,8 +29,12 @@
<fieldset class="fieldset p-4 shadow rounded-box">
<legend class="fieldset-legend">Registration</legend>
<label class="fieldset-label">
<input type="checkbox" class="checkbox" hx-post="/toggle-registrations" hx-target="#registration-status" {% if
settings.registrations_enabled %}checked{% endif %} />
{% block registration_status_input %}
<form hx-patch="/toggle-registrations" hx-swap="outerHTML" hx-trigger="change">
<input name="registration_open" type="checkbox" class="checkbox" {% if settings.registrations_enabled
%}checked{% endif %} />
</form>
{% endblock %}
Enable Registrations
</label>
<div id="registration-status" class="text-sm mt-2"></div>