Closed bernd-wechner closed 1 year ago
This is now mostly done. Implemented on all the basic model forms.
Remaining to do, is to implemented these on the League selector in the header and in Leadeboard selectors.
And then there remain styling considerations. These DAL widgets loooks rather glaringly different to the rest of the site. Time to look at skinning it with Bootstrap (Issue 1).
Also regards themeing which is glaringly inconsistent with the standard Django look and feel if we go Bootstrap:
Demos are here:
http://select2.github.io/select2-bootstrap-theme/4.0.3.html
And repo here:
https://github.com/select2/select2-bootstrap-theme
Or here:
https://github.com/berkan52/select2-bootstrap4-theme
and here's a discussion on retheming DAL (egads it's not trivial):
https://github.com/yourlabs/django-autocomplete-light/issues/850
Select2 theming is possible but very poorly documented:
This has been implemented on the League selector and the Leaderboard selectors now and is working beautifully.
Leaving this open to flag themeing considerations.
A comparison grid of tools here:
https://djangopackages.org/grids/g/auto-complete/
and this seems the winner:
https://djangopackages.org/packages/p/django-autocomplete-light/
As the list of games and players grows on our forms we'll need an autocomplete selector, not a drop down list that runs for pages.