hide tabs for edit pages
This commit is contained in:
parent
eddbc27d3d
commit
e3b0d10bf8
|
@ -193,16 +193,12 @@ jQuery(document).ready(function() {
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="ui-tabs ui-corner-all ui-widget ui-widget-content">
|
|
||||||
<ul class="ui-tabs-nav ui-corner-all ui-helper-reset ui-helper-clearfix ui-widget-header">
|
|
||||||
<?php
|
|
||||||
printTypeTabs($headerPrefix);
|
|
||||||
?>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
function printTypeTabs($headerPrefix) {
|
function printTypeTabs($headerPrefix) {
|
||||||
|
echo '<div class="ui-tabs ui-corner-all ui-widget ui-widget-content">';
|
||||||
|
echo '<ul class="ui-tabs-nav ui-corner-all ui-helper-reset ui-helper-clearfix ui-widget-header">';
|
||||||
$typeManager = new \LAM\TYPES\TypeManager();
|
$typeManager = new \LAM\TYPES\TypeManager();
|
||||||
$types = $typeManager->getConfiguredTypes();
|
$types = $typeManager->getConfiguredTypes();
|
||||||
foreach ($types as $type) {
|
foreach ($types as $type) {
|
||||||
|
@ -217,5 +213,6 @@ function printTypeTabs($headerPrefix) {
|
||||||
echo $link;
|
echo $link;
|
||||||
echo "</li>\n";
|
echo "</li>\n";
|
||||||
}
|
}
|
||||||
|
echo '</ul>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -912,6 +912,7 @@ class lamList {
|
||||||
*/
|
*/
|
||||||
private function printHeader() {
|
private function printHeader() {
|
||||||
include 'adminHeader.inc';
|
include 'adminHeader.inc';
|
||||||
|
\LAM\HEADER\printTypeTabs('../..');
|
||||||
$this->printHeaderContent();
|
$this->printHeaderContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1314,6 +1314,7 @@ class accountContainer {
|
||||||
. getSecurityTokenName() . '\',\'' . getSecurityTokenValue() . '\');');
|
. getSecurityTokenName() . '\',\'' . getSecurityTokenValue() . '\');');
|
||||||
$leftButtonGroup->addElement($passwordButton);
|
$leftButtonGroup->addElement($passwordButton);
|
||||||
}
|
}
|
||||||
|
// delete button
|
||||||
if (!$this->isNewAccount) {
|
if (!$this->isNewAccount) {
|
||||||
$leftButtonGroup->addElement(new htmlSpacer('15px', null));
|
$leftButtonGroup->addElement(new htmlSpacer('15px', null));
|
||||||
$deleteButton = new htmlButton('accountContainerDelete', _('Delete'));
|
$deleteButton = new htmlButton('accountContainerDelete', _('Delete'));
|
||||||
|
@ -1321,7 +1322,13 @@ class accountContainer {
|
||||||
$deleteButton->setCSSClasses(array('fullwidth-mobile-only'));
|
$deleteButton->setCSSClasses(array('fullwidth-mobile-only'));
|
||||||
$leftButtonGroup->addElement($deleteButton);
|
$leftButtonGroup->addElement($deleteButton);
|
||||||
}
|
}
|
||||||
$row->add($leftButtonGroup, 12, 7);
|
// back to list button
|
||||||
|
$leftButtonGroup->addElement(new htmlSpacer('15px', null));
|
||||||
|
$backToListButton = new htmlButton('accountContainerBackToList', $this->type->getBaseType()->LABEL_BACK_TO_ACCOUNT_LIST);
|
||||||
|
$backToListButton->setIconClass('backButton');
|
||||||
|
$backToListButton->setCSSClasses(array('fullwidth-mobile-only'));
|
||||||
|
$leftButtonGroup->addElement($backToListButton);
|
||||||
|
$row->add($leftButtonGroup, 12, 9);
|
||||||
|
|
||||||
$rightGroup = new htmlGroup();
|
$rightGroup = new htmlGroup();
|
||||||
// profile selection
|
// profile selection
|
||||||
|
@ -1340,7 +1347,7 @@ class accountContainer {
|
||||||
$rightGroup->addElement(new htmlSpacer('1px', null));
|
$rightGroup->addElement(new htmlSpacer('1px', null));
|
||||||
$rightGroup->addElement(new htmlHelpLink('401'));
|
$rightGroup->addElement(new htmlHelpLink('401'));
|
||||||
}
|
}
|
||||||
$row->add($rightGroup, 12, 5, 5, 'text-right');
|
$row->add($rightGroup, 12, 3, 3, 'text-right');
|
||||||
|
|
||||||
parseHtml(null, $row, array(), false, $tabindex, $this->type->getScope());
|
parseHtml(null, $row, array(), false, $tabindex, $this->type->getScope());
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
/*
|
/*
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||||
Copyright (C) 2010 - 2018 Roland Gruber
|
Copyright (C) 2010 - 2019 Roland Gruber
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -40,6 +40,7 @@ enforceUserIsLoggedIn();
|
||||||
setlanguage();
|
setlanguage();
|
||||||
|
|
||||||
include __DIR__ . '/../../lib/adminHeader.inc';
|
include __DIR__ . '/../../lib/adminHeader.inc';
|
||||||
|
\LAM\HEADER\printTypeTabs('../..');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div id="tabcontent" class="ui-tabs-panel ui-widget-content ui-corner-bottom">
|
<div id="tabcontent" class="ui-tabs-panel ui-widget-content ui-corner-bottom">
|
||||||
|
|
Loading…
Reference in New Issue