mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
static: js: css: Make multiple select fields work with Django 4.0
Closes: #2228. - Django 4.0 changed to using <div> instead of using <ul> and <li> for multiple choice select fields. Update code for the select-all button to work with the new HTML structure. - Add styling to ensure that multiple choice select field appears similar to previous <ul> and <li> based style. - This patch assumes that django-bootstrap-form has support for Django 4.0 as seen in https://github.com/tzangms/django-bootstrap-form/pull/110 . Tests: - Radio select seem to have no issues. Checked in networks -> connection type page. - Open Backups -> Create backup page and ensure that select all button works and appears same on testing (Django 3.2) and unstable (Django 4.0). Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
d42a07a630
commit
a150cd15bd
2 files changed
+13
-4
No files matched your search
@@ -202,6 +202,10 @@ body {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.multiple-checkbox > div {
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
.navbar .fa:not(.fa-bars) {
|
||||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user