Signbank / Global-signbank

An online sign dictionary and sign database management system for research purposes. Developed originally by Steve Cassidy/ This repo is a fork for the Dutch version, previously called 'NGT-Signbank'.
http://signbank.cls.ru.nl
BSD 3-Clause "New" or "Revised" License
19 stars 12 forks source link

Colouring of field values in pull-down menus #693

Closed ocrasborn closed 3 years ago

ocrasborn commented 4 years ago

Users find the list of choices for the phonological fields daunting. Rightly so, sign languages are simply complex (no pun intended). But there's more prominent or default values in each list of field values, and less frequent ones. We can sort them in a certain way of course, but I was wondering whether it'd be realistic to use different colours to visually group field values, making the frequent / default values red, say, the secondary options green, and leave the exceptions black on grey, say. Could somebody dig into that? If possible, we could let admins specify this in the admin for each field value.

susanodd commented 3 years ago

I'll see about the console statements.

susanodd commented 3 years ago

Probably I need to (better) document what the js.jeditable.mini_colors.js is doing. I added a few extra parameters inside the various cases, as well as filling in the parameters in the gloss_edit_color.js Oh yes, the jeditable code also has parts to deal with the shortcut keys that bring the user inside the pulldown list. I agree, it's fairly cryptic for all the things going on.