From 1101e2df47a2f2e67d7a4f81be9e858456df9f83 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 18 Oct 2010 19:46:21 +0000 Subject: [PATCH] common width for select boxes --- lam/templates/profedit/profilemain.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lam/templates/profedit/profilemain.php b/lam/templates/profedit/profilemain.php index eeece532..6e8be348 100644 --- a/lam/templates/profedit/profilemain.php +++ b/lam/templates/profedit/profilemain.php @@ -125,10 +125,14 @@ for ($i = 0; $i < sizeof($profileClasses); $i++) { $sortedTypes[$profileClasses[$i]['title']] = $profileClasses[$i]['scope']; } natcasesort($sortedTypes); +$newContainer = new htmlTable(); $newProfileSelect = new htmlSelect('createProfile', $sortedTypes); $newProfileSelect->setHasDescriptiveElements(true); -$container->addElement($newProfileSelect); -$container->addElement(new htmlButton('createProfileButton', _('Create')), true); +$newProfileSelect->setWidth('15em'); +$newContainer->addElement($newProfileSelect); +$newContainer->addElement(new htmlSpacer('10px', null)); +$newContainer->addElement(new htmlButton('createProfileButton', _('Create')), true); +$container->addElement($newContainer, true); $container->addElement(new htmlSpacer(null, '10px'), true); @@ -144,7 +148,9 @@ for ($i = 0; $i < sizeof($profileClasses); $i++) { $existingContainer->addElement(new htmlSpacer('3px', null)); $existingContainer->addElement(new htmlOutputText($profileClasses[$i]['title'])); $existingContainer->addElement(new htmlSpacer('3px', null)); - $existingContainer->addElement(new htmlSelect('profile_' . $profileClasses[$i]['scope'], $profileClasses[$i]['profiles'])); + $select = new htmlSelect('profile_' . $profileClasses[$i]['scope'], $profileClasses[$i]['profiles']); + $select->setWidth('15em'); + $existingContainer->addElement($select); $existingContainer->addElement(new htmlSpacer('3px', null)); $editButton = new htmlButton('editProfile_' . $profileClasses[$i]['scope'], 'edit.png', true); $editButton->setTitle(_('Edit'));