hide tabs for edit pages

This commit is contained in:
Roland Gruber 2019-11-07 21:05:11 +01:00
parent eddbc27d3d
commit e3b0d10bf8
4 changed files with 15 additions and 9 deletions

View File

@ -193,16 +193,12 @@ jQuery(document).ready(function() {
});
</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
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();
$types = $typeManager->getConfiguredTypes();
foreach ($types as $type) {
@ -217,5 +213,6 @@ function printTypeTabs($headerPrefix) {
echo $link;
echo "</li>\n";
}
echo '</ul>';
}

View File

@ -912,6 +912,7 @@ class lamList {
*/
private function printHeader() {
include 'adminHeader.inc';
\LAM\HEADER\printTypeTabs('../..');
$this->printHeaderContent();
}

View File

@ -1314,6 +1314,7 @@ class accountContainer {
. getSecurityTokenName() . '\',\'' . getSecurityTokenValue() . '\');');
$leftButtonGroup->addElement($passwordButton);
}
// delete button
if (!$this->isNewAccount) {
$leftButtonGroup->addElement(new htmlSpacer('15px', null));
$deleteButton = new htmlButton('accountContainerDelete', _('Delete'));
@ -1321,7 +1322,13 @@ class accountContainer {
$deleteButton->setCSSClasses(array('fullwidth-mobile-only'));
$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();
// profile selection
@ -1340,7 +1347,7 @@ class accountContainer {
$rightGroup->addElement(new htmlSpacer('1px', null));
$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());
}

View File

@ -2,7 +2,7 @@
/*
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
it under the terms of the GNU General Public License as published by
@ -40,6 +40,7 @@ enforceUserIsLoggedIn();
setlanguage();
include __DIR__ . '/../../lib/adminHeader.inc';
\LAM\HEADER\printTypeTabs('../..');
?>
<div id="tabcontent" class="ui-tabs-panel ui-widget-content ui-corner-bottom">