Improve autocomplete selection #54
Loading…
x
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 > childstructure, these entries are not as comfortable to read as it could. We should improve this!Improvement
Django autocomplete lightis build on theselect2javascript library. Theselect2documentation 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
Select2GroupQuerySetas base class forKonovaCodeAutocompleteand 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