Improve autocomplete selection #54
Labels
No Label
backlog
bug
duplicate
enhancement
feature
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
in discussion
invalid
priority
1
priority
2
priority
3
priority
4
priority
5
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: IT-Naturschutz/konova#54
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Status quo
Currently the autocomplete selection looks like this:
Due to the
parent > child
structure, these entries are not as comfortable to read as it could. We should improve this!Improvement
Django autocomplete light
is build on theselect2
javascript library. Theselect2
documentation states, that there is a labeling option, which can be easily used to categorize entries: https://select2.org/appearance#labelsThe result looks a lot better and suits or needs:
We should find a way to activate this option in
dal
.Improvement
Using
Select2GroupQuerySet
as base class forKonovaCodeAutocomplete
and some further enhancements on the codebase, the result looks good. Configuration of e.g. ordering is still possible, depending on the inheriting subclass.Selection of biotopes
Selection of registration office
Selected values with parents
Parent > child relation is still shown on selected values to make visible which "type" of value has been selected. E.g. for registration offices important where the same office name is selectable for different responsibilities.
Merged in #59