refactored edit header

This commit is contained in:
Roland Gruber 2019-08-15 15:11:25 +02:00
parent edf2f61df4
commit 8df75742d2
4 changed files with 7 additions and 16 deletions

View File

@ -1056,8 +1056,8 @@ class accountContainer {
$titleBarContainer->addVerticalSpacer('0.5rem'); $titleBarContainer->addVerticalSpacer('0.5rem');
$titleBarSubtitleText = new htmlOutputText($this->titleBarSubtitle, false); $titleBarSubtitleText = new htmlOutputText($this->titleBarSubtitle, false);
$titleBarContainer->add(new htmlDiv(null, $titleBarSubtitleText, array('titleBarSubtitle', 'text-left')), 12); $titleBarContainer->add(new htmlDiv(null, $titleBarSubtitleText, array('titleBarSubtitle', 'text-left')), 12);
$titleBarContainer->addVerticalSpacer('1rem');
$titleBarSuffixRdn = new htmlResponsiveRow(); $titleBarSuffixRdn = new htmlResponsiveRow();
$titleBarSuffixRdn->add(new htmlHorizontalLine(), 12);
// suffix // suffix
$suffixList = array(); $suffixList = array();
foreach ($this->getOUs() as $suffix) { foreach ($this->getOUs() as $suffix) {
@ -1067,24 +1067,16 @@ class accountContainer {
$suffixList[getAbstractDN($this->dnSuffix)] = $this->dnSuffix; $suffixList[getAbstractDN($this->dnSuffix)] = $this->dnSuffix;
} }
$selectedSuffix = array($this->dnSuffix); $selectedSuffix = array($this->dnSuffix);
$suffixGroup = new htmlGroup(); $suffixSelect = new htmlResponsiveSelect('accountContainerSuffix', $suffixList, $selectedSuffix, _('Suffix'), '361');
$suffixGroup->addElement(new htmlOutputText(_('Suffix')));
$suffixSelect = new htmlSelect('accountContainerSuffix', $suffixList, $selectedSuffix);
$suffixSelect->setHasDescriptiveElements(true); $suffixSelect->setHasDescriptiveElements(true);
$suffixSelect->setRightToLeftTextDirection(true); $suffixSelect->setRightToLeftTextDirection(true);
$suffixSelect->setCSSClasses(array('auto-width')); $suffixSelect->setCSSClasses(array('auto-width'));
$suffixGroup->addElement($suffixSelect); $titleBarSuffixRdn->add($suffixSelect, 12);
$suffixGroup->addElement(new htmlHelpLink('361'));
$titleBarSuffixRdn->add($suffixGroup, 12, 6, 6, 'nowrap maxrow');
// RDN selection // RDN selection
$rdnGroup = new htmlGroup();
$rdnGroup->addElement(new htmlOutputText(_('RDN identifier')));
$rdnlist = getRDNAttributes($this->type->getId()); $rdnlist = getRDNAttributes($this->type->getId());
$rdnSelect = new htmlSelect('accountContainerRDN', $rdnlist, array($this->rdn)); $rdnSelect = new htmlResponsiveSelect('accountContainerRDN', $rdnlist, array($this->rdn), _('RDN identifier'), '301');
$rdnSelect->setCSSClasses(array('auto-width')); $rdnSelect->setCSSClasses(array('auto-width'));
$rdnGroup->addElement($rdnSelect); $titleBarSuffixRdn->add($rdnSelect, 12);
$rdnGroup->addElement(new htmlHelpLink('301'), 1);
$titleBarSuffixRdn->add($rdnGroup, 12, 6, 6, 'nowrap maxrow');
$titleBarContainer->add($titleBarSuffixRdn, 12); $titleBarContainer->add($titleBarSuffixRdn, 12);
$titleBarDiv = new htmlDiv(null, $titleBarContainer, array('titleBar', 'ui-corner-top')); $titleBarDiv = new htmlDiv(null, $titleBarContainer, array('titleBar', 'ui-corner-top'));

View File

@ -209,7 +209,7 @@ class user extends baseType {
return $this->buildAccountStatusIcon($container); return $this->buildAccountStatusIcon($container);
} }
$subtitle = $this->buildAccountStatusIcon($container); $subtitle = $this->buildAccountStatusIcon($container);
$spacer = '        '; $spacer = '        ';
// check if an email address can be shown // check if an email address can be shown
if (isset($personalAttributes['mail'][0]) && !empty($personalAttributes['mail'][0])) { if (isset($personalAttributes['mail'][0]) && !empty($personalAttributes['mail'][0])) {
$subtitle .= '<a href="mailto:' . htmlspecialchars($personalAttributes['mail'][0]) . '">' . htmlspecialchars($personalAttributes['mail'][0]) . '</a>' . $spacer; $subtitle .= '<a href="mailto:' . htmlspecialchars($personalAttributes['mail'][0]) . '">' . htmlspecialchars($personalAttributes['mail'][0]) . '</a>' . $spacer;

View File

@ -584,7 +584,7 @@ button.lam-account-type {
/* title bar */ /* title bar */
.titleBar { .titleBar {
background: #AAAAAA url(images/ui-bg_highlight-soft_75_cccccc_1x150.png) repeat-x scroll 50% 50%; background-image: linear-gradient(#fdfdfd, #cccccc);
border-top: 1px solid #AAAAAA; border-top: 1px solid #AAAAAA;
border-left: 1px solid #AAAAAA; border-left: 1px solid #AAAAAA;
border-right: 1px solid #AAAAAA; border-right: 1px solid #AAAAAA;
@ -596,7 +596,6 @@ button.lam-account-type {
} }
.titleBarSubtitle { .titleBarSubtitle {
/* font-style: italic;*/
padding: 0px 5px 0px 10px; padding: 0px 5px 0px 10px;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 B