mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
more css cleanup remove quick links css very close to specs
This commit is contained in:
parent
821987fe67
commit
828f87e4a6
@ -318,18 +318,15 @@ function ipa_entity_setup(container, unspecified) {
|
||||
facet.load(container, unspecified);
|
||||
}
|
||||
|
||||
function ipa_facet_setup_views(container) {
|
||||
|
||||
var facet = this;
|
||||
|
||||
var div = $('<div/>',
|
||||
{
|
||||
"class":"action-panel",
|
||||
html: $('<h3>Actions</h3>'),
|
||||
}).appendTo(container);
|
||||
function action_panel(entity_name){
|
||||
var div = $('<div/>', {
|
||||
"class":"action-panel",
|
||||
html: $('<h3>Actions</h3>'),
|
||||
});
|
||||
var ul = $('<ul/>', {'class': 'action'}).appendTo(div);
|
||||
|
||||
var entity = IPA.get_entity(facet.entity_name);
|
||||
var entity = IPA.get_entity(entity_name);
|
||||
|
||||
for (var i=0; i<entity.facets.length; i++) {
|
||||
var other_facet = entity.facets[i];
|
||||
@ -346,12 +343,12 @@ function ipa_facet_setup_views(container) {
|
||||
return function() {
|
||||
IPA.show_page(entity_name, facet_name);
|
||||
};
|
||||
}(facet.entity_name, facet_name)
|
||||
}(entity_name, facet_name)
|
||||
}));
|
||||
|
||||
} else { // For now empty label indicates an association facet
|
||||
|
||||
var attribute_members = IPA.metadata[facet.entity_name].attribute_members;
|
||||
var attribute_members = IPA.metadata[entity_name].attribute_members;
|
||||
for (var attribute_member in attribute_members) {
|
||||
var other_entities = attribute_members[attribute_member];
|
||||
for (var j = 0; j < other_entities.length; j++) {
|
||||
@ -365,60 +362,20 @@ function ipa_facet_setup_views(container) {
|
||||
return function() {
|
||||
IPA.show_page(entity_name, facet_name, other_entity);
|
||||
};
|
||||
}(facet.entity_name, facet_name, other_entity)
|
||||
}(entity_name, facet_name, other_entity)
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return div;
|
||||
}
|
||||
|
||||
function ipa_entity_quick_links(container, name, value, entry_attrs) {
|
||||
|
||||
var obj_name = container.closest('.entity-container').attr('title');
|
||||
var pkey = IPA.metadata[obj_name].primary_key;
|
||||
var pkey_value = entry_attrs[pkey];
|
||||
function ipa_facet_setup_views(container) {
|
||||
|
||||
var span = $('span[name="'+name+'"]', container);
|
||||
span.empty();
|
||||
|
||||
$("<a/>", {
|
||||
href: '#details',
|
||||
title: 'Details',
|
||||
text: 'Details',
|
||||
click: function() {
|
||||
var state = {};
|
||||
state[obj_name+'-facet'] = 'details';
|
||||
state[obj_name+'-pkey'] = pkey_value;
|
||||
nav_push_state(state);
|
||||
return false;
|
||||
}
|
||||
}).appendTo(span);
|
||||
|
||||
var attribute_members = IPA.metadata[obj_name].attribute_members;
|
||||
for (attr_name in attribute_members) {
|
||||
var objs = attribute_members[attr_name];
|
||||
for (var i = 0; i < objs.length; ++i) {
|
||||
var m = objs[i];
|
||||
var label = IPA.metadata[m].label;
|
||||
|
||||
span.append(' | ');
|
||||
|
||||
$("<a/>", {
|
||||
href: '#'+m,
|
||||
title: label,
|
||||
text: label,
|
||||
click: function(m) {
|
||||
return function() {
|
||||
var state = {};
|
||||
state[obj_name+'-facet'] = 'associate';
|
||||
state[obj_name+'-enroll'] = m;
|
||||
state[obj_name+'-pkey'] = pkey_value;
|
||||
nav_push_state(state);
|
||||
return false;
|
||||
}
|
||||
}(m)
|
||||
}).appendTo(span);
|
||||
}
|
||||
}
|
||||
var facet = this;
|
||||
var entity_name = facet.entity_name;
|
||||
action_panel(entity_name).appendTo(container);
|
||||
}
|
||||
|
||||
|
@ -69,8 +69,7 @@ function ipa_group_add_dialog(spec) {
|
||||
ipa_entity_set_search_definition('group', [
|
||||
['cn', 'Name', null],
|
||||
['gidnumber', 'GID', null],
|
||||
['description', 'Description', null],
|
||||
['quick_links', 'Quick Links', ipa_entity_quick_links]
|
||||
['description', 'Description', null]
|
||||
]);
|
||||
|
||||
ipa_entity_set_details_definition('group',[
|
||||
|
@ -24,8 +24,7 @@ ipa_entity_set_search_definition('host', [
|
||||
['fqdn', 'Name', null],
|
||||
['description', 'Description', null],
|
||||
['enrolled', 'Enrolled?', null],
|
||||
['manages', 'Manages?', null],
|
||||
['quick_links', 'Quick Links', ipa_entity_quick_links]
|
||||
['manages', 'Manages?', null]
|
||||
]);
|
||||
|
||||
ipa_entity_set_add_definition('host', [
|
||||
|
@ -22,8 +22,7 @@
|
||||
|
||||
ipa_entity_set_search_definition('hostgroup', [
|
||||
['cn', 'Name', null],
|
||||
['description', 'Description', null],
|
||||
['quick_links', 'Quick Links', ipa_entity_quick_links]
|
||||
['description', 'Description', null]
|
||||
]);
|
||||
|
||||
ipa_entity_set_add_definition('hostgroup', [
|
||||
|
@ -6,7 +6,10 @@
|
||||
*/
|
||||
|
||||
|
||||
body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
|
||||
body{
|
||||
font: 62.5% "Trebuchet MS", sans-serif; margin: 5px;
|
||||
}
|
||||
|
||||
.demoHeaders { margin-top: 2em; }
|
||||
|
||||
|
||||
@ -20,7 +23,8 @@ div.header {
|
||||
background-image: url(header_background.png);
|
||||
background: -moz-linear-gradient(top, #65646e, #1f1f1f);
|
||||
background-color: #1f1f1f;
|
||||
height: 70px;
|
||||
height: 25px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
div.header a {
|
||||
@ -37,13 +41,14 @@ div.header a:visited {
|
||||
color: white;
|
||||
}
|
||||
|
||||
div.header div.header-logo {
|
||||
float: left;
|
||||
padding: 10px 10px 0 10px;
|
||||
div.header span.header-logo {
|
||||
# float: left;
|
||||
padding-left: 100px;
|
||||
}
|
||||
|
||||
div.header div.header-logo img {
|
||||
div.header span.header-logo a img {
|
||||
border: 0;
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
div.header span.header-loggedinas {
|
||||
@ -56,6 +61,8 @@ div.header span.header-loggedinas {
|
||||
/* ---- Navigation ---- */
|
||||
div.tabs {
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
@ -178,15 +185,23 @@ span.attrhint {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.ui-tabs-nav{
|
||||
}
|
||||
|
||||
/*Navigation */
|
||||
.tabs1 .ui-tabs-nav{
|
||||
margin: 0; padding: 2.9em .2em 0;
|
||||
padding-left: 50px;
|
||||
margin: 0;
|
||||
background-image: url(Mainnav-background.png);
|
||||
|
||||
}
|
||||
|
||||
|
||||
.ui-tabs .ui-tabs-nav li { height: 30px; margin: 0 0 1px 0;}
|
||||
.ui-tabs .ui-tabs-nav li {
|
||||
height: 30px;
|
||||
margin: 0 0 0 0;
|
||||
padding: 0 0 0 0;
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
|
||||
.tabs1 .ui-tabs-nav li a{
|
||||
@ -205,13 +220,17 @@ span.attrhint {
|
||||
color: lightgreen;
|
||||
}
|
||||
|
||||
.tabs1 .ui-tabs-panel { display: block; border-width: 0; padding: 0.1em 0.4em; background: none; }
|
||||
.tabs1 .ui-tabs-panel {
|
||||
display: block; border-width: 0;
|
||||
padding: 0 0;
|
||||
background: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.tabs2 .ui-tabs-nav {
|
||||
background-image: url(Subnav-background.png);
|
||||
margin: 0; padding: .1em .2em 0;
|
||||
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
@ -259,7 +278,8 @@ span.main-separator{
|
||||
.entity-container{
|
||||
position: relative;
|
||||
width: 80%;
|
||||
height: 1000px;
|
||||
height: 100%;
|
||||
min-height: 200 px;
|
||||
margin: 10px;
|
||||
padding: 10px;
|
||||
background: #e8e8e8;
|
||||
@ -267,15 +287,18 @@ span.main-separator{
|
||||
|
||||
.action-panel {
|
||||
position:relative;
|
||||
top:50px;
|
||||
top:30px;
|
||||
left: -20px;
|
||||
border-width: thin;
|
||||
border-style: solid;
|
||||
border-color: black;
|
||||
float: left;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.action-panel h3{
|
||||
border-width: thin;
|
||||
margin: 0;
|
||||
border-width: thin;
|
||||
border-style: solid;
|
||||
border-color: black;
|
||||
background: #e8e8e8;
|
||||
|
@ -22,8 +22,7 @@
|
||||
|
||||
ipa_entity_set_search_definition('netgroup', [
|
||||
['cn', 'Name', null],
|
||||
['description', 'Description', null],
|
||||
['quick_links', 'Quick Links', ipa_entity_quick_links]
|
||||
['description', 'Description', null]
|
||||
]);
|
||||
|
||||
ipa_entity_set_add_definition('netgroup', [
|
||||
|
@ -22,8 +22,7 @@
|
||||
|
||||
/* DNS */
|
||||
ipa_entity_set_search_definition('dns', [
|
||||
['idnsname', 'Zone Name', null],
|
||||
['quick_links', 'Quick Links', ipa_entity_quick_links]
|
||||
['idnsname', 'Zone Name', null]
|
||||
]);
|
||||
|
||||
|
||||
@ -459,9 +458,7 @@ function ipa_records_facet(spec){
|
||||
/**Automount*/
|
||||
|
||||
ipa_entity_set_search_definition('automountlocation', [
|
||||
['cn', 'Name', null],
|
||||
['quick_links', 'Quick Links', ipa_entity_quick_links]
|
||||
|
||||
['cn', 'Name', null]
|
||||
]);
|
||||
|
||||
ipa_entity_set_add_definition('automountlocation', [
|
||||
@ -482,8 +479,7 @@ ipa_entity_set_association_definition('automountlocation', {
|
||||
/**pwpolicy*/
|
||||
|
||||
ipa_entity_set_search_definition('pwpolicy', [
|
||||
['cn', 'Name', null],
|
||||
['quick_links', 'Quick Links', ipa_entity_quick_links]
|
||||
['cn', 'Name', null]
|
||||
|
||||
]);
|
||||
|
||||
|
@ -25,8 +25,7 @@
|
||||
|
||||
/* ACI */
|
||||
ipa_entity_set_search_definition('aci', [
|
||||
['cn', 'ACI name', null],
|
||||
['quick_links', 'Quick Links', ipa_entity_quick_links]
|
||||
['cn', 'ACI name', null]
|
||||
]);
|
||||
|
||||
ipa_entity_set_add_definition('aci', [
|
||||
@ -48,8 +47,7 @@ ipa_entity_set_details_definition('aci', [
|
||||
|
||||
ipa_entity_set_search_definition('taskgroup', [
|
||||
['cn', 'Role-group name', null],
|
||||
['description', 'Description', null],
|
||||
['quick_links', 'Quick Links', ipa_entity_quick_links]
|
||||
['description', 'Description', null]
|
||||
]);
|
||||
|
||||
ipa_entity_set_add_definition('taskgroup', [
|
||||
@ -80,8 +78,7 @@ ipa_entity_set_association_definition('rolegroup', {
|
||||
|
||||
ipa_entity_set_search_definition('rolegroup', [
|
||||
['cn', 'Role-group name', null],
|
||||
['description', 'Description', null],
|
||||
['quick_links', 'Quick Links', ipa_entity_quick_links]
|
||||
['description', 'Description', null]
|
||||
]);
|
||||
|
||||
ipa_entity_set_add_definition('rolegroup', [
|
||||
|
@ -160,13 +160,6 @@ function ipa_service_search_facet(spec) {
|
||||
that.init = function() {
|
||||
|
||||
this.create_column({name:'krbprincipalname', label:'Principal'});
|
||||
|
||||
this.create_column({
|
||||
name: 'quick_links',
|
||||
label: 'Quick Links',
|
||||
setup: ipa_entity_quick_links
|
||||
});
|
||||
|
||||
that.super_init();
|
||||
};
|
||||
|
||||
|
@ -27,7 +27,6 @@ ipa_entity_set_search_definition('user', [
|
||||
['mail', 'EMAIL', null],
|
||||
['telephonenumber', 'Phone', null],
|
||||
['title', 'Job Title', null],
|
||||
['quick_links', 'Quick Links', ipa_entity_quick_links]
|
||||
]);
|
||||
|
||||
ipa_entity_set_add_definition('user', [
|
||||
|
Loading…
Reference in New Issue
Block a user