templates: Fix warning about using default.html for form template

- All forms are rendered using django-bootstrap-form excep the
app enable/disable form. Render this one too using django-boostrap-form so that
the default.html is not used for rendering. Using default.html is deprecated in
Django 4.0 and in 5.0 will default to using div.html.

Tests:

- No change in HTML output, appearance or functionality for the enable/disable
button.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa 2024-08-09 10:46:13 -07:00 committed by Veiko Aasa
parent 976f1cec76
commit 4de9b6644d
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

View File

@ -36,7 +36,7 @@
<form class="form form-app-enable-disable" method="post">
{% csrf_token %}
{{ app_enable_disable_form }}
{{ app_enable_disable_form|bootstrap }}
<button name="app_enable_disable_button" type="submit"
class="btn toggle-button {{ is_enabled|yesno:'toggle-button--toggled,' }}">