Added HBAC Test page.

This is the initial implementation of HBAC Test page. Currently it
can select user, source/target group, service, rules, and execute
the test. Other functionalities to be implemented include the search
filter, external users/hosts, back/next buttons, validation, styling,
and internalization.

Ticket #388
This commit is contained in:
Endi Sukma Dewata
2011-11-16 21:07:20 -06:00
committed by Endi S. Dewata
parent caa9d52666
commit 2203bb650c
13 changed files with 710 additions and 57 deletions

View File

@@ -1257,7 +1257,15 @@ IPA.table_widget = function (spec) {
$('input[name="'+that.name+'"]', that.thead).attr('checked', false).
attr('title', IPA.messages.search.select_all);
$('input[name="'+that.name+'"]', that.tbody).attr('checked', false);
that.select_changed();
};
that.set_values = function(values) {
$('input[name="'+that.name+'"]', that.tbody).attr('checked', false);
for (var i=0; values && i<values.length; i++) {
var value = values[i];
$('input[name="'+that.name+'"][value="'+value+'"]', that.tbody).attr('checked', true);
}
that.select_changed();
};
@@ -1274,8 +1282,6 @@ IPA.table_widget = function (spec) {
var record = that.get_record(result, i);
that.add_record(record);
}
that.unselect_all();
};
that.save = function() {