wger
wger copied to clipboard
Toggle columns in gym user table
The user table in the gym overview could use some dynamism for the columns. There is a plugin for datatables to (toggle columns)[https://datatables.net/extensions/buttons/examples/column_visibility/columnsToggle.html]. The only thing is that perhaps the list of columns gets too long and the list of buttons could be ugly but for a first step this is definitely good enough.
Possible additional columns:
- age (see #332)
- height
- weight (dynamic field)
- address (dynamic field)
- bmi (dynamic field)
Note that the dynamic fields are calculated on-the-fly, and will slow down the page, so we'd have to examine how noticeable this effect really is.
Here is a guide for showing the list of columns in a drop-down menu.
thanks!
I can take a look at doing this - however, I don't have experience with the project, and this is an older issue. I'd be more than happy to take a look at it, though.