common width for select boxes
This commit is contained in:
parent
53f54fed92
commit
1101e2df47
|
@ -125,10 +125,14 @@ for ($i = 0; $i < sizeof($profileClasses); $i++) {
|
||||||
$sortedTypes[$profileClasses[$i]['title']] = $profileClasses[$i]['scope'];
|
$sortedTypes[$profileClasses[$i]['title']] = $profileClasses[$i]['scope'];
|
||||||
}
|
}
|
||||||
natcasesort($sortedTypes);
|
natcasesort($sortedTypes);
|
||||||
|
$newContainer = new htmlTable();
|
||||||
$newProfileSelect = new htmlSelect('createProfile', $sortedTypes);
|
$newProfileSelect = new htmlSelect('createProfile', $sortedTypes);
|
||||||
$newProfileSelect->setHasDescriptiveElements(true);
|
$newProfileSelect->setHasDescriptiveElements(true);
|
||||||
$container->addElement($newProfileSelect);
|
$newProfileSelect->setWidth('15em');
|
||||||
$container->addElement(new htmlButton('createProfileButton', _('Create')), true);
|
$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);
|
$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 htmlSpacer('3px', null));
|
||||||
$existingContainer->addElement(new htmlOutputText($profileClasses[$i]['title']));
|
$existingContainer->addElement(new htmlOutputText($profileClasses[$i]['title']));
|
||||||
$existingContainer->addElement(new htmlSpacer('3px', null));
|
$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));
|
$existingContainer->addElement(new htmlSpacer('3px', null));
|
||||||
$editButton = new htmlButton('editProfile_' . $profileClasses[$i]['scope'], 'edit.png', true);
|
$editButton = new htmlButton('editProfile_' . $profileClasses[$i]['scope'], 'edit.png', true);
|
||||||
$editButton->setTitle(_('Edit'));
|
$editButton->setTitle(_('Edit'));
|
||||||
|
|
Loading…
Reference in New Issue