refactoring

This commit is contained in:
Roland Gruber 2019-11-02 12:05:32 +01:00
parent 3169c85802
commit dbb2e8aa37
1 changed files with 4 additions and 6 deletions

View File

@ -3,7 +3,6 @@ use \LAM\PDF\PDFTable;
use \LAM\PDF\PDFTableCell; use \LAM\PDF\PDFTableCell;
use \LAM\PDF\PDFTableRow; use \LAM\PDF\PDFTableRow;
/* /*
$Id$
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) 2009 - 2019 Roland Gruber Copyright (C) 2009 - 2019 Roland Gruber
@ -228,8 +227,7 @@ class nisnetgroup extends baseModule {
$userLabel->colspan = 2; $userLabel->colspan = 2;
$memberTable->addElement($userLabel); $memberTable->addElement($userLabel);
$memberTable->addElement(new htmlOutputText(_('Domain'))); $memberTable->addElement(new htmlOutputText(_('Domain')));
$memberTable->addElement(new htmlSpacer('5px', null)); $memberTable->addElement(new htmlSpacer('5px', null), true);
$memberTable->addElement(new htmlHelpLink('members'), true);
if (isset($this->attributes['nisNetgroupTriple']) && (sizeof($this->attributes['nisNetgroupTriple']) > 0)) { if (isset($this->attributes['nisNetgroupTriple']) && (sizeof($this->attributes['nisNetgroupTriple']) > 0)) {
for ($i = 0; $i < sizeof($this->attributes['nisNetgroupTriple']); $i++) { for ($i = 0; $i < sizeof($this->attributes['nisNetgroupTriple']); $i++) {
$triple = substr($this->attributes['nisNetgroupTriple'][$i], 1, strlen($this->attributes['nisNetgroupTriple'][$i]) - 2); $triple = substr($this->attributes['nisNetgroupTriple'][$i], 1, strlen($this->attributes['nisNetgroupTriple'][$i]) - 2);
@ -296,9 +294,9 @@ class nisnetgroup extends baseModule {
$memberTable->addElement($addButton); $memberTable->addElement($addButton);
$memberTable->colspan = 2; $memberTable->colspan = 2;
$membersLabel = new htmlOutputText(_('Members')); $membersLabel = new htmlSubTitle(_('Members'));
$membersLabel->alignment = htmlElement::ALIGN_TOP; $membersLabel->setHelpId('members');
$return->addElement($membersLabel); $return->addElement($membersLabel, true);
$return->addElement($memberTable); $return->addElement($memberTable);
return $return; return $return;
} }