responsive settings
This commit is contained in:
parent
30a7865daf
commit
400827889a
|
@ -245,9 +245,8 @@ class asteriskAccount extends baseModule implements passwordService {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
// self service options
|
// self service options
|
||||||
$selfServiceContainer = new htmlTable();
|
$selfServiceContainer = new htmlResponsiveRow();
|
||||||
$selfServiceContainer->addElement(new htmlTableExtendedInputField(_('Asterisk realm'), 'asteriskAccount_AsteriskRealm', null));
|
$selfServiceContainer->add(new htmlResponsiveInputField(_('Asterisk realm'), 'asteriskAccount_AsteriskRealm', null, array('AsteriskRealm', get_class($this))), 12);
|
||||||
$selfServiceContainer->addElement(new htmlHelpLink('AsteriskRealm', get_class($this)));
|
|
||||||
$return['selfServiceSettings'] = $selfServiceContainer;
|
$return['selfServiceSettings'] = $selfServiceContainer;
|
||||||
// profile options
|
// profile options
|
||||||
$profileContainer = new htmlTable();
|
$profileContainer = new htmlTable();
|
||||||
|
|
|
@ -178,16 +178,11 @@ class posixAccount extends baseModule implements passwordService {
|
||||||
// possible self service read-only fields
|
// possible self service read-only fields
|
||||||
$return['selfServiceReadOnlyFields'] = array('cn', 'loginShell');
|
$return['selfServiceReadOnlyFields'] = array('cn', 'loginShell');
|
||||||
// self service configuration settings
|
// self service configuration settings
|
||||||
$selfServiceContainer = new htmlTable();
|
$selfServiceContainer = new htmlResponsiveRow();
|
||||||
$selfServiceContainer->addElement(new htmlTableExtendedSelect('posixAccount_pwdHash', getSupportedHashTypes(),
|
$selfServiceContainer->add(new htmlResponsiveSelect('posixAccount_pwdHash', getSupportedHashTypes(),
|
||||||
array('SSHA'), _("Password hash type")));
|
array('SSHA'), _("Password hash type"), array('pwdHash', get_class($this))), 12);
|
||||||
$selfServiceContainer->addElement(new htmlHelpLink('pwdHash', get_class($this)), true);
|
$selfServiceContainer->add(new htmlResponsiveInputTextarea('posixAccount_shells', implode("\r\n", $this->getShells()), 30, 4, _('Login shells'), array('loginShells', get_class($this))), 12);
|
||||||
$selfServiceContainer->addElement(new htmlTableExtendedInputTextarea('posixAccount_shells', implode("\r\n", $this->getShells()), 30, 4, _('Login shells')));
|
$selfServiceContainer->add(new htmlResponsiveInputCheckbox('posixAccount_useOldPwd', false, _('Password change with old password'), array('useOldPwd', get_class($this))), 12);
|
||||||
$loginShellsHelp = new htmlHelpLink('loginShells', get_class($this));
|
|
||||||
$loginShellsHelp->alignment = htmlElement::ALIGN_TOP;
|
|
||||||
$selfServiceContainer->addElement($loginShellsHelp, true);
|
|
||||||
$selfServiceContainer->addElement(new htmlTableExtendedInputCheckbox('posixAccount_useOldPwd', false, _('Password change with old password')));
|
|
||||||
$selfServiceContainer->addElement(new htmlHelpLink('useOldPwd', get_class($this)), true);
|
|
||||||
$return['selfServiceSettings'] = $selfServiceContainer;
|
$return['selfServiceSettings'] = $selfServiceContainer;
|
||||||
}
|
}
|
||||||
// profile checks
|
// profile checks
|
||||||
|
|
|
@ -254,9 +254,8 @@ class pykotaUser extends baseModule {
|
||||||
);
|
);
|
||||||
// self service settings
|
// self service settings
|
||||||
if (get_class($this) == 'pykotaUser') {
|
if (get_class($this) == 'pykotaUser') {
|
||||||
$selfServiceContainer = new htmlTable();
|
$selfServiceContainer = new htmlResponsiveRow();
|
||||||
$selfServiceContainer->addElement(new htmlTableExtendedInputField(_('Job suffix'), 'pykotaUser_jobSuffix', null));
|
$selfServiceContainer->add(new htmlResponsiveInputField(_('Job suffix'), 'pykotaUser_jobSuffix', null, array('jobSuffix', get_class($this))), 12);
|
||||||
$selfServiceContainer->addElement(new htmlHelpLink('jobSuffix', get_class($this)), true);
|
|
||||||
$return['selfServiceSettings'] = $selfServiceContainer;
|
$return['selfServiceSettings'] = $selfServiceContainer;
|
||||||
}
|
}
|
||||||
// configuration checks
|
// configuration checks
|
||||||
|
|
Loading…
Reference in New Issue