marcpage / scheduling

Restaurant staff scheduling website
The Unlicense
3 stars 4 forks source link

[html / javascript] Improve UI for setting role priorities #50

Open marcpage opened 2 years ago

marcpage commented 2 years ago

in src/ui/template/restaurant.html there is are two forms whose action is /set_role_priority. Right now we allow them to set a number for each. It would be more user friendly to have a list that can be reordered, either by buttons that move items up/down/to-top/to-bottom or by dragging.

The javascript logic can be stored in src/ui.

There may need to be some changes in set_role_priority() in src/scheduling.py to support any new way the list is passed.