-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8ec0e2
commit a74394b
Showing
14 changed files
with
3,317 additions
and
15,331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
Custom widgets to supplement/replace existing widgets. | ||
""" | ||
from django import forms | ||
|
||
|
||
class SearchableComboBox(forms.Select): | ||
"""A combo box with search capabilities. | ||
This is suitable as a replacement for select with many options. | ||
""" | ||
|
||
input_type = "select" | ||
option_inherits_attrs = False | ||
|
||
def build_attrs(self, base_attrs, extra_attrs=None): | ||
# The `data-live-search` attribute is needed to enable the search | ||
# functionality. | ||
base_attrs.update({"data-live-search": "true"}) | ||
return super().build_attrs(base_attrs, extra_attrs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11447,3 +11447,7 @@ h3 { | |
.row.align-header { | ||
display: grid !important; | ||
} | ||
|
||
.dropdown-menu.show { | ||
max-width: 80%; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.