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

@@ -59,6 +59,8 @@ IPA.search_facet = function(spec) {
'class': 'right-aligned-facet-controls'
}).appendTo(that.controls);
span.append(IPA.create_network_spinner());
var filter_container = $('<div/>', {
'class': 'search-filter'
}).appendTo(span);
@@ -84,8 +86,6 @@ IPA.search_facet = function(spec) {
}
}).appendTo(filter_container);
span.append(IPA.create_network_spinner());
that.remove_button = IPA.action_button({
name: 'remove',
label: IPA.messages.buttons.remove,
@@ -183,12 +183,14 @@ IPA.search_facet = function(spec) {
that.refresh = function() {
var filter = [];
var current_entity = that.managed_entity;
filter.unshift(IPA.nav.get_state(current_entity.name+'-filter'));
current_entity = current_entity.get_containing_entity();
while (current_entity !== null) {
filter.unshift(IPA.nav.get_state(current_entity.name+'-pkey'));
current_entity = current_entity.get_containing_entity();
var entity = that.managed_entity;
filter.unshift(IPA.nav.get_state(entity.name+'-filter'));
entity = entity.get_containing_entity();
while (entity !== null) {
filter.unshift(IPA.nav.get_state(entity.name+'-pkey'));
entity = entity.get_containing_entity();
}
var command = IPA.command({