responsive tools
This commit is contained in:
parent
8e083898e2
commit
dd2308f780
|
@ -1,11 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$Id$
|
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||||
Copyright (C) 2003 - 2006 Tilo Lutz
|
Copyright (C) 2003 - 2006 Tilo Lutz
|
||||||
2005 - 2017 Roland Gruber
|
2005 - 2018 Roland Gruber
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -162,8 +161,8 @@ class sambaSamAccount extends baseModule implements passwordService {
|
||||||
// PHP extensions
|
// PHP extensions
|
||||||
$return['extensions'] = array('hash', 'iconv');
|
$return['extensions'] = array('hash', 'iconv');
|
||||||
// profile options
|
// profile options
|
||||||
$profileContainer = new htmlTable();
|
$profileContainer = new htmlResponsiveRow();
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputCheckbox('sambaSamAccount_addExt', false, _('Automatically add this extension'), 'autoAdd'), true);
|
$profileContainer->add(new htmlResponsiveInputCheckbox('sambaSamAccount_addExt', false, _('Automatically add this extension'), 'autoAdd'), 12);
|
||||||
$return['profile_options'] = $profileContainer;
|
$return['profile_options'] = $profileContainer;
|
||||||
// profile checks
|
// profile checks
|
||||||
$return['profile_checks']['sambaSamAccount_smbhome'] = array(
|
$return['profile_checks']['sambaSamAccount_smbhome'] = array(
|
||||||
|
@ -1689,42 +1688,42 @@ class sambaSamAccount extends baseModule implements passwordService {
|
||||||
for ( $i=1; $i<=12; $i++ ) $mon[] = $i;
|
for ( $i=1; $i<=12; $i++ ) $mon[] = $i;
|
||||||
for ( $i=2003; $i<=2030; $i++ ) $year[] = $i;
|
for ( $i=2003; $i<=2030; $i++ ) $year[] = $i;
|
||||||
// display name
|
// display name
|
||||||
$return->addElement(new htmlTableExtendedInputField(_('Display name'), 'sambaSamAccount_displayName', '', 'displayName'), true);
|
$return->add(new htmlResponsiveInputField(_('Display name'), 'sambaSamAccount_displayName', '', 'displayName'), 12);
|
||||||
// use no password at all
|
// use no password at all
|
||||||
$return->addElement(new htmlTableExtendedInputCheckbox('sambaSamAccount_sambaAcctFlagsN', false, _('Use no password'), 'noPassword'), true);
|
$return->add(new htmlResponsiveInputCheckbox('sambaSamAccount_sambaAcctFlagsN', false, _('Use no password'), 'noPassword'), 12);
|
||||||
// account deactivation
|
// account deactivation
|
||||||
$return->addElement(new htmlTableExtendedInputCheckbox('sambaSamAccount_sambaAcctFlagsD', false, _('Account is deactivated'), 'deactivated'), true);
|
$return->add(new htmlResponsiveInputCheckbox('sambaSamAccount_sambaAcctFlagsD', false, _('Account is deactivated'), 'deactivated'), 12);
|
||||||
// password never expires
|
// password never expires
|
||||||
$return->addElement(new htmlTableExtendedInputCheckbox('sambaSamAccount_sambaAcctFlagsX', false, _('Password does not expire'), 'noExpire'), true);
|
$return->add(new htmlResponsiveInputCheckbox('sambaSamAccount_sambaAcctFlagsX', false, _('Password does not expire'), 'noExpire'), 12);
|
||||||
// expiration date
|
// expiration date
|
||||||
$return->addElement(new htmlOutputText(_('Account expiration date')));
|
$return->addLabel(new htmlOutputText(_('Account expiration date')));
|
||||||
$expireContainer = new htmlTable();
|
$expireContainer = new htmlResponsiveRow();
|
||||||
$expireContainer->addElement(new htmlSelect('sambaSamAccount_expire_day', $day, array('1')));
|
$expireContainer->add(new htmlSelect('sambaSamAccount_expire_day', $day, array('1')), 2, 2, 2, 'padding-right05');
|
||||||
$expireContainer->addElement(new htmlSelect('sambaSamAccount_expire_mon', $mon, array('1')));
|
$expireContainer->add(new htmlSelect('sambaSamAccount_expire_mon', $mon, array('1')), 2, 2, 2, 'padding-left-right05');
|
||||||
$expireContainer->addElement(new htmlSelect('sambaSamAccount_expire_yea', $year, array('2030')));
|
$expireContainer->add(new htmlSelect('sambaSamAccount_expire_yea', $year, array('2030')), 6, 6, 6, 'padding-left-right05');
|
||||||
$return->addElement($expireContainer);
|
$expireContainer->add(new htmlHelpLink('expireDate'), 2, 2, 2, 'padding-left-right05');
|
||||||
$return->addElement(new htmlHelpLink('expireDate'), true);
|
$return->addField($expireContainer, 12);
|
||||||
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideHomeDrive')) {
|
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideHomeDrive')) {
|
||||||
// letter of home drive
|
// letter of home drive
|
||||||
$drives = array('-');
|
$drives = array('-');
|
||||||
for ($i = 90; $i > 67; $i--) $drives[] = chr($i) . ':';
|
for ($i = 90; $i > 67; $i--) $drives[] = chr($i) . ':';
|
||||||
$return->addElement(new htmlTableExtendedSelect('sambaSamAccount_sambaHomeDrive', $drives, array('-'), _('Home drive'), 'homeDrive'), true);
|
$return->add(new htmlResponsiveSelect('sambaSamAccount_sambaHomeDrive', $drives, array('-'), _('Home drive'), 'homeDrive'), 12);
|
||||||
}
|
}
|
||||||
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideHomePath')) {
|
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideHomePath')) {
|
||||||
// path to home directory
|
// path to home directory
|
||||||
$return->addElement(new htmlTableExtendedInputField(_('Home path'), 'sambaSamAccount_smbhome', '', 'homePath'), true);
|
$return->add(new htmlResponsiveInputField(_('Home path'), 'sambaSamAccount_smbhome', '', 'homePath'), 12);
|
||||||
}
|
}
|
||||||
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideProfilePath')) {
|
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideProfilePath')) {
|
||||||
// profile path
|
// profile path
|
||||||
$return->addElement(new htmlTableExtendedInputField(_('Profile path'), 'sambaSamAccount_profilePath', '', 'profilePath'), true);
|
$return->add(new htmlResponsiveInputField(_('Profile path'), 'sambaSamAccount_profilePath', '', 'profilePath'), 12);
|
||||||
}
|
}
|
||||||
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideLogonScript')) {
|
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideLogonScript')) {
|
||||||
// logon script
|
// logon script
|
||||||
$return->addElement(new htmlTableExtendedInputField(_('Logon script'), 'sambaSamAccount_logonScript', '', 'scriptPath'), true);
|
$return->add(new htmlResponsiveInputField(_('Logon script'), 'sambaSamAccount_logonScript', '', 'scriptPath'), 12);
|
||||||
}
|
}
|
||||||
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideWorkstations')) {
|
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideWorkstations')) {
|
||||||
// allowed workstations
|
// allowed workstations
|
||||||
$return->addElement(new htmlTableExtendedInputField(_('Samba workstations'), 'sambaSamAccount_userWorkstations', '', 'workstations'), true);
|
$return->add(new htmlResponsiveInputField(_('Samba workstations'), 'sambaSamAccount_userWorkstations', '', 'workstations'), 12);
|
||||||
}
|
}
|
||||||
// domains
|
// domains
|
||||||
$sambaDomains = $this->getDomains();
|
$sambaDomains = $this->getDomains();
|
||||||
|
@ -1732,19 +1731,19 @@ class sambaSamAccount extends baseModule implements passwordService {
|
||||||
for ($i = 0; $i < count($sambaDomains); $i++) {
|
for ($i = 0; $i < count($sambaDomains); $i++) {
|
||||||
$sambaDomainNames[] = $sambaDomains[$i]->name;
|
$sambaDomainNames[] = $sambaDomains[$i]->name;
|
||||||
}
|
}
|
||||||
$return->addElement(new htmlTableExtendedSelect('sambaSamAccount_sambaDomainName', $sambaDomainNames, null, _('Domain'), 'domain'), true);
|
$return->add(new htmlResponsiveSelect('sambaSamAccount_sambaDomainName', $sambaDomainNames, null, _('Domain'), 'domain'), 12);
|
||||||
// Windows group
|
// Windows group
|
||||||
$groups = array();
|
$groups = array();
|
||||||
foreach ($this->groupRids as $key => $value) {
|
foreach ($this->groupRids as $key => $value) {
|
||||||
$groups[$key] = $value;
|
$groups[$key] = $value;
|
||||||
}
|
}
|
||||||
$groups["-"] = "-";
|
$groups["-"] = "-";
|
||||||
$groupSelect = new htmlTableExtendedSelect('sambaSamAccount_group', $groups, array('513'), _('Windows group'), 'group');
|
$groupSelect = new htmlResponsiveSelect('sambaSamAccount_group', $groups, array('513'), _('Windows group'), 'group');
|
||||||
$groupSelect->setHasDescriptiveElements(true);
|
$groupSelect->setHasDescriptiveElements(true);
|
||||||
$return->addElement($groupSelect, true);
|
$return->add($groupSelect, 12);
|
||||||
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideLogonHours')) {
|
if (!$this->isBooleanConfigOptionSet('sambaSamAccount_hideLogonHours')) {
|
||||||
// logon hours
|
// logon hours
|
||||||
$return->addElement(new htmlTableExtendedInputField(_('Logon hours'), 'sambaSamAccount_logonHours', '', 'logonHoursUpload'), true);
|
$return->add(new htmlResponsiveInputField(_('Logon hours'), 'sambaSamAccount_logonHours', '', 'logonHoursUpload'), 12);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif ($this->get_scope() == 'host') {
|
elseif ($this->get_scope() == 'host') {
|
||||||
|
@ -1754,7 +1753,7 @@ class sambaSamAccount extends baseModule implements passwordService {
|
||||||
for ($i = 0; $i < count($sambaDomains); $i++) {
|
for ($i = 0; $i < count($sambaDomains); $i++) {
|
||||||
$sambaDomainNames[] = $sambaDomains[$i]->name;
|
$sambaDomainNames[] = $sambaDomains[$i]->name;
|
||||||
}
|
}
|
||||||
$return->addElement(new htmlTableExtendedSelect('sambaSamAccount_sambaDomainName', $sambaDomainNames, null, _('Domain'), 'domain'), true);
|
$return->add(new htmlResponsiveSelect('sambaSamAccount_sambaDomainName', $sambaDomainNames, null, _('Domain'), 'domain'), 12);
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id$
|
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||||
Copyright (C) 2003 - 2006 Tilo Lutz
|
Copyright (C) 2003 - 2006 Tilo Lutz
|
||||||
Copyright (C) 2007 - 2017 Roland Gruber
|
Copyright (C) 2007 - 2018 Roland Gruber
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -101,37 +100,33 @@ class shadowAccount extends baseModule implements passwordService {
|
||||||
for ( $i=1; $i<=31; $i++ ) $day[] = $i;
|
for ( $i=1; $i<=31; $i++ ) $day[] = $i;
|
||||||
for ( $i=1; $i<=12; $i++ ) $mon[] = $i;
|
for ( $i=1; $i<=12; $i++ ) $mon[] = $i;
|
||||||
for ( $i=2003; $i<=2030; $i++ ) $year[] = $i;
|
for ( $i=2003; $i<=2030; $i++ ) $year[] = $i;
|
||||||
$profileOptionsTable = new htmlTable();
|
$profileOptionsTable = new htmlResponsiveRow();
|
||||||
// auto add extension
|
// auto add extension
|
||||||
$profileOptionsTable->addElement(new htmlTableExtendedInputCheckbox('shadowAccount_addExt', false, _('Automatically add this extension'), 'autoAdd'), true);
|
$profileOptionsTable->add(new htmlResponsiveInputCheckbox('shadowAccount_addExt', false, _('Automatically add this extension'), 'autoAdd'), 12);
|
||||||
// password warning
|
// password warning
|
||||||
$profilePwdWarning = new htmlTableExtendedInputField(_('Password warning'), 'shadowAccount_shadowWarning', null, 'shadowWarning');
|
$profilePwdWarning = new htmlResponsiveInputField(_('Password warning'), 'shadowAccount_shadowWarning', null, 'shadowWarning');
|
||||||
$profilePwdWarning->setFieldSize(5);
|
|
||||||
$profilePwdWarning->setFieldMaxLength(4);
|
$profilePwdWarning->setFieldMaxLength(4);
|
||||||
$profileOptionsTable->addElement($profilePwdWarning, true);
|
$profileOptionsTable->add($profilePwdWarning, 12);
|
||||||
// password expiration
|
// password expiration
|
||||||
$profilePwdExpiration = new htmlTableExtendedInputField(_('Password expiration'), 'shadowAccount_shadowInactive', null, 'shadowInactive');
|
$profilePwdExpiration = new htmlResponsiveInputField(_('Password expiration'), 'shadowAccount_shadowInactive', null, 'shadowInactive');
|
||||||
$profilePwdExpiration->setFieldSize(5);
|
|
||||||
$profilePwdExpiration->setFieldMaxLength(4);
|
$profilePwdExpiration->setFieldMaxLength(4);
|
||||||
$profileOptionsTable->addElement($profilePwdExpiration, true);
|
$profileOptionsTable->add($profilePwdExpiration, 12);
|
||||||
// minimum password age
|
// minimum password age
|
||||||
$profilePwdMinAge = new htmlTableExtendedInputField(_('Minimum password age'), 'shadowAccount_shadowMin', null, 'shadowMin');
|
$profilePwdMinAge = new htmlResponsiveInputField(_('Minimum password age'), 'shadowAccount_shadowMin', null, 'shadowMin');
|
||||||
$profilePwdMinAge->setFieldSize(5);
|
|
||||||
$profilePwdMinAge->setFieldMaxLength(5);
|
$profilePwdMinAge->setFieldMaxLength(5);
|
||||||
$profileOptionsTable->addElement($profilePwdMinAge, true);
|
$profileOptionsTable->add($profilePwdMinAge, 12);
|
||||||
// maximum password age
|
// maximum password age
|
||||||
$profilePwdMinAge = new htmlTableExtendedInputField(_('Maximum password age'), 'shadowAccount_shadowMax', null, 'shadowMax');
|
$profilePwdMinAge = new htmlResponsiveInputField(_('Maximum password age'), 'shadowAccount_shadowMax', null, 'shadowMax');
|
||||||
$profilePwdMinAge->setFieldSize(5);
|
|
||||||
$profilePwdMinAge->setFieldMaxLength(5);
|
$profilePwdMinAge->setFieldMaxLength(5);
|
||||||
$profileOptionsTable->addElement($profilePwdMinAge, true);
|
$profileOptionsTable->add($profilePwdMinAge, 12);
|
||||||
// expiration date
|
// expiration date
|
||||||
$profileOptionsTable->addElement(new htmlOutputText(_('Account expiration date')));
|
$profileOptionsTable->addLabel(new htmlOutputText(_('Account expiration date')));
|
||||||
$profileOptionsExpire = new htmlTable();
|
$profileOptionsExpire = new htmlResponsiveRow();
|
||||||
$profileOptionsExpire->addElement(new htmlSelect('shadowAccount_shadowExpire_day', $day, array('-')));
|
$profileOptionsExpire->add(new htmlSelect('shadowAccount_shadowExpire_day', $day, array('-')), 2, 2, 2, 'padding-right05');
|
||||||
$profileOptionsExpire->addElement(new htmlSelect('shadowAccount_shadowExpire_mon', $mon, array('-')));
|
$profileOptionsExpire->add(new htmlSelect('shadowAccount_shadowExpire_mon', $mon, array('-')), 2, 2, 2, 'padding-left-right05');
|
||||||
$profileOptionsExpire->addElement(new htmlSelect('shadowAccount_shadowExpire_yea', $year, array('-')));
|
$profileOptionsExpire->add(new htmlSelect('shadowAccount_shadowExpire_yea', $year, array('-')), 6, 6, 6, 'padding-left-right05');
|
||||||
$profileOptionsTable->addElement($profileOptionsExpire);
|
$profileOptionsExpire->add(new htmlHelpLink('shadowExpire'), 2, 2, 2, 'padding-left-right05');
|
||||||
$profileOptionsTable->addElement(new htmlHelpLink('shadowExpire'));
|
$profileOptionsTable->addField($profileOptionsExpire);
|
||||||
$return['profile_options'] = $profileOptionsTable;
|
$return['profile_options'] = $profileOptionsTable;
|
||||||
// profile checks
|
// profile checks
|
||||||
$return['profile_checks']['shadowAccount_shadowMin'] = array(
|
$return['profile_checks']['shadowAccount_shadowMin'] = array(
|
||||||
|
|
|
@ -3,10 +3,9 @@ use \LAM\PDF\PDFTable;
|
||||||
use \LAM\PDF\PDFTableCell;
|
use \LAM\PDF\PDFTableCell;
|
||||||
use \LAM\PDF\PDFTableRow;
|
use \LAM\PDF\PDFTableRow;
|
||||||
/*
|
/*
|
||||||
$Id$
|
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
||||||
Copyright (C) 2011 - 2017 Roland Gruber
|
Copyright (C) 2011 - 2018 Roland Gruber
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -74,8 +73,8 @@ class systemQuotas extends baseModule {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
// profile elements
|
// profile elements
|
||||||
$profileContainer = new htmlTable();
|
$profileContainer = new htmlResponsiveRow();
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Quota'), 'systemQuotas_quota', null, 'quota'));
|
$profileContainer->add(new htmlResponsiveInputField(_('Quota'), 'systemQuotas_quota', null, 'quota'), 12);
|
||||||
$return['profile_options'] = $profileContainer;
|
$return['profile_options'] = $profileContainer;
|
||||||
// upload fields
|
// upload fields
|
||||||
$return['upload_columns'] = array(
|
$return['upload_columns'] = array(
|
||||||
|
|
|
@ -243,8 +243,8 @@ class windowsGroup extends baseModule {
|
||||||
}
|
}
|
||||||
// profile options
|
// profile options
|
||||||
if (!$this->isBooleanConfigOptionSet('windowsGroup_hidemsSFU30NisDomain', true)) {
|
if (!$this->isBooleanConfigOptionSet('windowsGroup_hidemsSFU30NisDomain', true)) {
|
||||||
$profileContainer = new htmlTable();
|
$profileContainer = new htmlResponsiveRow();
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('NIS domain'), 'windowsGroup_msSFU30NisDomain', null, 'msSFU30NisDomain'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('NIS domain'), 'windowsGroup_msSFU30NisDomain', null, 'msSFU30NisDomain'), 12);
|
||||||
$return['profile_options'] = $profileContainer;
|
$return['profile_options'] = $profileContainer;
|
||||||
$return['profile_mappings']['windowsGroup_msSFU30NisDomain'] = 'msSFU30NisDomain';
|
$return['profile_mappings']['windowsGroup_msSFU30NisDomain'] = 'msSFU30NisDomain';
|
||||||
}
|
}
|
||||||
|
|
|
@ -732,38 +732,38 @@ class windowsUser extends baseModule implements passwordService {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// profile options
|
// profile options
|
||||||
$profileContainer = new htmlTable();
|
$profileContainer = new htmlResponsiveRow();
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Common name'), 'windowsUser_cn', null, 'cn'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Common name'), 'windowsUser_cn', null, 'cn'), 12);
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Display name'), 'windowsUser_displayName', null, 'displayName'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Display name'), 'windowsUser_displayName', null, 'displayName'), 12);
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Email address'), 'windowsUser_mail', null, 'mail'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Email address'), 'windowsUser_mail', null, 'mail'), 12);
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Email alias'), 'windowsUser_otherMailbox', null, 'otherMailboxList'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Email alias'), 'windowsUser_otherMailbox', null, 'otherMailboxList'), 12);
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Logon script'), 'windowsUser_scriptPath', null, 'scriptPath'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Logon script'), 'windowsUser_scriptPath', null, 'scriptPath'), 12);
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Profile path'), 'windowsUser_profilePath', null, 'profilePath'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Profile path'), 'windowsUser_profilePath', null, 'profilePath'), 12);
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Home directory'), 'windowsUser_homeDirectory', null, 'homeDirectory'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Home directory'), 'windowsUser_homeDirectory', null, 'homeDirectory'), 12);
|
||||||
if (!$this->isBooleanConfigOptionSet('windowsUser_hidemsSFU30NisDomain', true)) {
|
if (!$this->isBooleanConfigOptionSet('windowsUser_hidemsSFU30NisDomain', true)) {
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('NIS domain'), 'windowsUser_msSFU30NisDomain', null, 'msSFU30NisDomain'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('NIS domain'), 'windowsUser_msSFU30NisDomain', null, 'msSFU30NisDomain'), 12);
|
||||||
}
|
}
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Account expiration'), 'windowsUser_accountExpires', null, 'accountExpiresProfile'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Account expiration'), 'windowsUser_accountExpires', null, 'accountExpiresProfile'), 12);
|
||||||
if (!$this->isBooleanConfigOptionSet('windowsUser_hidecompany', true)) {
|
if (!$this->isBooleanConfigOptionSet('windowsUser_hidecompany', true)) {
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Company'), 'windowsUser_company', null, 'company'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Company'), 'windowsUser_company', null, 'company'), 12);
|
||||||
}
|
}
|
||||||
if (!$this->isBooleanConfigOptionSet('windowsUser_hidedepartment', true)) {
|
if (!$this->isBooleanConfigOptionSet('windowsUser_hidedepartment', true)) {
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Department'), 'windowsUser_department', null, 'department'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Department'), 'windowsUser_department', null, 'department'), 12);
|
||||||
}
|
}
|
||||||
if (!$this->isBooleanConfigOptionSet('windowsUser_hideou', true)) {
|
if (!$this->isBooleanConfigOptionSet('windowsUser_hideou', true)) {
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Organisational unit'), 'windowsUser_ou', null, 'ouList'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Organisational unit'), 'windowsUser_ou', null, 'ouList'), 12);
|
||||||
}
|
}
|
||||||
if (!$this->isBooleanConfigOptionSet('windowsUser_hideo', true)) {
|
if (!$this->isBooleanConfigOptionSet('windowsUser_hideo', true)) {
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Organisation'), 'windowsUser_o', null, 'oList'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Organisation'), 'windowsUser_o', null, 'oList'), 12);
|
||||||
}
|
}
|
||||||
if (!$this->isBooleanConfigOptionSet('windowsUser_hidetitle', true)) {
|
if (!$this->isBooleanConfigOptionSet('windowsUser_hidetitle', true)) {
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Job title'), 'windowsUser_title', null, 'title'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Job title'), 'windowsUser_title', null, 'title'), 12);
|
||||||
}
|
}
|
||||||
if (!$this->isBooleanConfigOptionSet('windowsUser_hideemployeeType', true)) {
|
if (!$this->isBooleanConfigOptionSet('windowsUser_hideemployeeType', true)) {
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Employee type'), 'windowsUser_employeeType', null, 'employeeType'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Employee type'), 'windowsUser_employeeType', null, 'employeeType'), 12);
|
||||||
}
|
}
|
||||||
if (!$this->isBooleanConfigOptionSet('windowsUser_hidebusinessCategory', true)) {
|
if (!$this->isBooleanConfigOptionSet('windowsUser_hidebusinessCategory', true)) {
|
||||||
$profileContainer->addElement(new htmlTableExtendedInputField(_('Business category'), 'windowsUser_businessCategory', null, 'businessCategory'), true);
|
$profileContainer->add(new htmlResponsiveInputField(_('Business category'), 'windowsUser_businessCategory', null, 'businessCategory'), 12);
|
||||||
}
|
}
|
||||||
$return['profile_options'] = $profileContainer;
|
$return['profile_options'] = $profileContainer;
|
||||||
// profile mappings
|
// profile mappings
|
||||||
|
@ -2521,17 +2521,17 @@ class windowsUser extends baseModule implements passwordService {
|
||||||
// domain
|
// domain
|
||||||
$domains = $this->getDomains();
|
$domains = $this->getDomains();
|
||||||
$domains[] = '';
|
$domains[] = '';
|
||||||
$return->addElement(new htmlTableExtendedSelect('windowsUser_userPrincipalNameDomain', $domains, array(), _('Domain'), 'userPrincipalNameDomain'), true);
|
$return->add(new htmlResponsiveSelect('windowsUser_userPrincipalNameDomain', $domains, array(), _('Domain'), 'userPrincipalNameDomain'), 12);
|
||||||
// group memberships
|
// group memberships
|
||||||
$groups = $this->findGroups();
|
$groups = $this->findGroups();
|
||||||
$groupList = array();
|
$groupList = array();
|
||||||
foreach ($groups as $dn) {
|
foreach ($groups as $dn) {
|
||||||
$groupList[extractRDNValue($dn)] = $dn;
|
$groupList[extractRDNValue($dn)] = $dn;
|
||||||
}
|
}
|
||||||
$groupSelect = new htmlTableExtendedSelect('windowsUser_groups', $groupList, array(), _('Groups'), 'groups', 10);
|
$groupSelect = new htmlResponsiveSelect('windowsUser_groups', $groupList, array(), _('Groups'), 'groups', 10);
|
||||||
$groupSelect->setHasDescriptiveElements(true);
|
$groupSelect->setHasDescriptiveElements(true);
|
||||||
$groupSelect->setMultiSelect(true);
|
$groupSelect->setMultiSelect(true);
|
||||||
$return->addElement($groupSelect, true);
|
$return->add($groupSelect, 12);
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -158,6 +158,15 @@ textarea {
|
||||||
padding: 0em !important;
|
padding: 0em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.padding-right05 {
|
||||||
|
padding-right: 0.5rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.padding-left-right05 {
|
||||||
|
padding-left: 0.5rem !important;
|
||||||
|
padding-right: 0.5rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
.padding05 {
|
.padding05 {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue