mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-13 17:02:02 -05:00
HBAC css cleanup
The additions to the search widget have to go one level deeper, as 'container' has both the action panel and the client area Conflicts: install/static/hbac.js install/static/hbacsvc.js install/static/hbacsvcgroup.js
This commit is contained in:
1 parent
59cc365a1d
commit
b84b0239f8
3 files changed
+22
-7
No files matched your search
@@ -111,10 +111,9 @@ function ipa_hbac_search_facet(spec) {
|
||||
|
||||
var that = this;
|
||||
|
||||
// TODO: replace with IPA.metadata[that.entity_name].label
|
||||
$('<h2/>', { 'html': 'HBAC Rules' }).appendTo(container);
|
||||
|
||||
/*
|
||||
|
||||
// Not yet implemented
|
||||
|
||||
var left_buttons = $('<span/>', {
|
||||
@@ -128,6 +127,7 @@ function ipa_hbac_search_facet(spec) {
|
||||
left_buttons.append(ipa_button({
|
||||
'label': 'Cull Disabled Rules'
|
||||
}));
|
||||
|
||||
*/
|
||||
var ul = $('.action-panel ul');
|
||||
|
||||
@@ -154,6 +154,12 @@ function ipa_hbac_search_facet(spec) {
|
||||
}).appendTo(ul);
|
||||
|
||||
that.superior_create(container);
|
||||
|
||||
// TODO: replace with IPA.metadata[that.entity_name].label
|
||||
container.children().last().prepend(
|
||||
$('<h2/>', { 'html': 'HBAC Rules' }));
|
||||
container.children().last().prepend('<br/><br/>');
|
||||
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
@@ -98,9 +98,6 @@ function ipa_hbacsvc_search_facet(spec) {
|
||||
|
||||
var that = this;
|
||||
|
||||
// TODO: replace with IPA.metadata[that.entity_name].label
|
||||
$('<h2/>', { 'html': 'HBAC Services' }).appendTo(container);
|
||||
|
||||
var ul = $('.action-panel ul');
|
||||
|
||||
$('<li/>', {
|
||||
@@ -126,6 +123,15 @@ function ipa_hbacsvc_search_facet(spec) {
|
||||
}).appendTo(ul);
|
||||
|
||||
that.superior_create(container);
|
||||
|
||||
// TODO: replace with IPA.metadata[that.entity_name].label
|
||||
container.children().last().prepend(
|
||||
$('<h2/>', { 'html': 'HBAC Services' }));
|
||||
container.children().last().prepend('<br/><br/>');
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
@@ -109,8 +109,6 @@ function ipa_hbacsvcgroup_search_facet(spec) {
|
||||
|
||||
var that = this;
|
||||
|
||||
// TODO: replace with IPA.metadata[that.entity_name].label
|
||||
$('<h2/>', { 'html': 'HBAC Service Groups' }).appendTo(container);
|
||||
|
||||
var ul = $('.action-panel ul');
|
||||
|
||||
@@ -137,6 +135,11 @@ function ipa_hbacsvcgroup_search_facet(spec) {
|
||||
}).appendTo(ul);
|
||||
|
||||
that.superior_create(container);
|
||||
// TODO: replace with IPA.metadata[that.entity_name].label
|
||||
container.children().last().prepend(
|
||||
$('<h2/>', { 'html': 'HBAC Service Groups' }));
|
||||
container.children().last().prepend('<br/><br/>');
|
||||
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
Reference in new issue
Block a user