Host Reservation UI improvements
This is a collection of random notes about my user experience with HR management. The feature is definitely usable, but there's couple little things that could be done better:
-
If it's not possible to delete HR, the button is missing completely. It should be shown, but be disabled with either tooltip or some comment why is that (host_cmds not loaded, or the HR is defined in a config file, or ...). I was thinking that having a common CSS reserved for disabled features (dotted line around, washed out normal color, or blurred text). -
radio button for hex/text. If there are only few choices, having radio button is more convenient: fewer clicks, more user friendly for touch screens and you instantly see what the alternatives are. -
for IP reservations, the IP type seems useless. When adding the reservation for DHCPv4 service, the only possible allowed choice is IPv4. Why show it? I suppose it could be visible for v6 to give a choice between address and prefix. -
when there's no reservations retrieved yet, the page summary says "0 of NaN pages" -
when adding new option, I need to first pick the option from a list. Once I pick my option, the field to add its content should appear automatically. It should be of the correct type. I understand that this will require coding a list of option types. I think it would useful, even if partially done (e.g. only for option with basic types, not records). -
The submit button should be called "Add reservation" or "add host". -
disable "New Host" button when hosts_cmds hook is not loaded (and list of HR is "read-only")