On 07/18/2013 05:50 PM, James wrote:
On Thu, 2013-07-18 at 12:11 +0200, Petr Vobornik wrote:
Hide delete button in multivalued widget if attr is not writable
Hey,
Maybe it would be a good idea to set the disabled state of the button
instead of removing it? That way it's obvious that some attrs can be
deleted, and it won't cause users to "search" for a button that doesn't
exist...
Cheers,
James
Hello,
Note: the button is actually in a form of a link
The approach you're proposing is often valid and a preferred one but I
don't think it's the best approach for our case.
Web UI uses a pattern where textboxes are changed to simple text when
user doesn't have write rights. This transformation pretty much says:
"no you can't do anything with this attribute". This pattern is all
around the UI since textbox is the most common widget.
Multivalued widget internally uses textboxes and so that transformation.
It also already hides the 'add' button (link). IMO leaving 'delete'
buttons next to the text values just clutters the UI.
--
Petr Vobornik
_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel