mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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:
parent
976f1cec76
commit
4de9b6644d
@ -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,' }}">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user