responsive settings
This commit is contained in:
parent
9efa8507df
commit
b6d130ce14
|
@ -2433,18 +2433,13 @@ class inetOrgPerson extends baseModule implements passwordService {
|
||||||
* @return htmlElement meta HTML object
|
* @return htmlElement meta HTML object
|
||||||
*/
|
*/
|
||||||
public function getSelfServiceSettings($profile) {
|
public function getSelfServiceSettings($profile) {
|
||||||
$container = new htmlTable();
|
$container = new htmlResponsiveRow();
|
||||||
$container->addElement(new htmlSubTitle(_('Photo')), true);
|
$container->add(new htmlSubTitle(_('Photo')), 12);
|
||||||
$photoTable = new htmlTable();
|
|
||||||
$photoTable->colspan = 2;
|
|
||||||
if (extension_loaded('imagick')) {
|
if (extension_loaded('imagick')) {
|
||||||
$photoTable->addElement(new htmlTableExtendedInputField(_('Maximum width (px)'), 'inetOrgPerson_jpegPhoto_maxWidth'));
|
$container->add(new htmlResponsiveInputField(_('Maximum width (px)'), 'inetOrgPerson_jpegPhoto_maxWidth', null, array('crop', get_class($this))), 12);
|
||||||
$photoTable->addElement(new htmlHelpLink('crop', get_class($this)), true);
|
$container->add(new htmlResponsiveInputField(_('Maximum height (px)'), 'inetOrgPerson_jpegPhoto_maxHeight', null, array('crop', get_class($this))), 12);
|
||||||
$photoTable->addElement(new htmlTableExtendedInputField(_('Maximum height (px)'), 'inetOrgPerson_jpegPhoto_maxHeight'));
|
|
||||||
$photoTable->addElement(new htmlHelpLink('crop', get_class($this)), true);
|
|
||||||
}
|
}
|
||||||
$photoTable->addElement(new htmlTableExtendedInputField(_('Maximum file size (kB)'), 'inetOrgPerson_jpegPhoto_maxSize'), true);
|
$container->add(new htmlResponsiveInputField(_('Maximum file size (kB)'), 'inetOrgPerson_jpegPhoto_maxSize'), 12);
|
||||||
$container->addElement($photoTable, true);
|
|
||||||
return $container;
|
return $container;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue