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

View File

@ -209,7 +209,7 @@ class user extends baseType {
return $this->buildAccountStatusIcon($container);
}
$subtitle = $this->buildAccountStatusIcon($container);
$spacer = '        ';
$spacer = '        ';
// check if an email address can be shown
if (isset($personalAttributes['mail'][0]) && !empty($personalAttributes['mail'][0])) {
$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 */
.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-left: 1px solid #AAAAAA;
border-right: 1px solid #AAAAAA;
@ -596,7 +596,6 @@ button.lam-account-type {
}
.titleBarSubtitle {
/* font-style: italic;*/
padding: 0px 5px 0px 10px;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 B