Added attrs to permission when target is group or filter

Option to set attributes in permission was missing for target 'group' and 'filter'.

Attribute_table_widget with type=group is shown for target=group.

For target=filter a multivalued textbox is shown. This is because UI can't predict what type will the result of the filter be. In future it can be extended by interactive attribute selector to help user find what he wants to enter.

Mutlivalued widget was modified to show undo button for new entries even if show_undo is false. It is useful in adder dialog to indicate that user added something and to enable it reversal.

https://fedorahosted.org/freeipa/ticket/2372
This commit is contained in:
Petr Voborník
2012-02-22 12:53:00 +01:00
committed by Petr Vobornik
parent 885ffe5a3e
commit 37cdbae234
3 changed files with 123 additions and 37 deletions

View File

@@ -436,7 +436,7 @@ IPA.multivalued_widget = function(spec) {
row.widget = that.widget_factory({
name: that.name+'-'+row_index,
undo: that.undo,
undo: that.undo || row.is_new,
read_only: that.read_only,
writable: that.writable
});