common layout for config options
This commit is contained in:
parent
2ead13206a
commit
52360f1c76
|
@ -99,7 +99,7 @@ class asteriskAccount extends baseModule implements passwordService {
|
||||||
// config options
|
// config options
|
||||||
$return['config_options']['user'] = array(
|
$return['config_options']['user'] = array(
|
||||||
array(
|
array(
|
||||||
array('kind' => 'text', 'text' => '<b>' . _("Users") . ': </b>' . _('Asterisk realm') . ": "),
|
array('kind' => 'text', 'text' => _('Asterisk realm')),
|
||||||
array('kind' => 'input', 'name' => 'asteriskAccount_AsteriskRealm', 'type' => 'text', 'size' => '30', 'maxlength' => '255'),
|
array('kind' => 'input', 'name' => 'asteriskAccount_AsteriskRealm', 'type' => 'text', 'size' => '30', 'maxlength' => '255'),
|
||||||
array('kind' => 'help', 'value' => 'AsteriskRealm')
|
array('kind' => 'help', 'value' => 'AsteriskRealm')
|
||||||
)
|
)
|
||||||
|
|
|
@ -159,25 +159,25 @@ class posixAccount extends baseModule implements passwordService {
|
||||||
// configuration options
|
// configuration options
|
||||||
$return['config_options']['user'] = array(
|
$return['config_options']['user'] = array(
|
||||||
array(
|
array(
|
||||||
array('kind' => 'text', 'text' => '<b>' . _("Users") . ': </b>' . _('Minimum UID number') . "*: "),
|
array('kind' => 'text', 'text' => '<b>' . _("Users") . ': </b>' . _('Minimum UID number') . "* "),
|
||||||
array('kind' => 'input', 'name' => 'posixAccount_minUID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
array('kind' => 'input', 'name' => 'posixAccount_minUID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
||||||
array('kind' => 'text', 'value' => ' '),
|
array('kind' => 'text', 'value' => ' '),
|
||||||
array('kind' => 'text', 'text' => _('Maximum UID number') . "*: "),
|
array('kind' => 'text', 'text' => _('Maximum UID number') . "* "),
|
||||||
array('kind' => 'input', 'name' => 'posixAccount_maxUID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
array('kind' => 'input', 'name' => 'posixAccount_maxUID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
||||||
array('kind' => 'help', 'value' => 'minMaxUser'))
|
array('kind' => 'help', 'value' => 'minMaxUser'))
|
||||||
);
|
);
|
||||||
$return['config_options']['host'] = array(
|
$return['config_options']['host'] = array(
|
||||||
array(
|
array(
|
||||||
array('kind' => 'text', 'text' => '<b>' . _("Hosts") . ': </b>' . _('Minimum UID number') . "*: "),
|
array('kind' => 'text', 'text' => '<b>' . _("Hosts") . ': </b>' . _('Minimum UID number') . "* "),
|
||||||
array('kind' => 'input', 'name' => 'posixAccount_minMachine', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
array('kind' => 'input', 'name' => 'posixAccount_minMachine', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
||||||
array('kind' => 'text', 'value' => ' '),
|
array('kind' => 'text', 'value' => ' '),
|
||||||
array('kind' => 'text', 'text' => _('Maximum UID number') . "*: "),
|
array('kind' => 'text', 'text' => _('Maximum UID number') . "* "),
|
||||||
array('kind' => 'input', 'name' => 'posixAccount_maxMachine', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
array('kind' => 'input', 'name' => 'posixAccount_maxMachine', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
||||||
array('kind' => 'help', 'value' => 'minMaxHost'))
|
array('kind' => 'help', 'value' => 'minMaxHost'))
|
||||||
);
|
);
|
||||||
$return['config_options']['all'] = array(
|
$return['config_options']['all'] = array(
|
||||||
array(
|
array(
|
||||||
array('kind' => 'text', 'text' => '<b>' . _("Password hash type") . ': </b>'),
|
array('kind' => 'text', 'text' => _("Password hash type") . ' '),
|
||||||
array('kind' => 'select', 'name' => 'posixAccount_pwdHash', 'size' => '1',
|
array('kind' => 'select', 'name' => 'posixAccount_pwdHash', 'size' => '1',
|
||||||
'options' => array("CRYPT", "SHA", "SSHA", "MD5", "SMD5", "PLAIN"), 'options_selected' => array('SSHA')),
|
'options' => array("CRYPT", "SHA", "SSHA", "MD5", "SMD5", "PLAIN"), 'options_selected' => array('SSHA')),
|
||||||
array('kind' => 'text', 'value' => ' '),
|
array('kind' => 'text', 'value' => ' '),
|
||||||
|
@ -185,7 +185,7 @@ class posixAccount extends baseModule implements passwordService {
|
||||||
array('kind' => 'text', 'value' => ' '),
|
array('kind' => 'text', 'value' => ' '),
|
||||||
array('kind' => 'help', 'value' => 'pwdHash')),
|
array('kind' => 'help', 'value' => 'pwdHash')),
|
||||||
array(
|
array(
|
||||||
array('kind' => 'text', 'text' => '<b>' . _('Set primary group as memberUid') . ":</b> "),
|
array('kind' => 'text', 'text' => _('Set primary group as memberUid')),
|
||||||
array('kind' => 'input', 'name' => 'posixAccount_primaryGroupAsSecondary', 'type' => 'checkbox'),
|
array('kind' => 'input', 'name' => 'posixAccount_primaryGroupAsSecondary', 'type' => 'checkbox'),
|
||||||
array('kind' => 'text', 'value' => ' '),
|
array('kind' => 'text', 'value' => ' '),
|
||||||
array('kind' => 'text', 'value' => ' '),
|
array('kind' => 'text', 'value' => ' '),
|
||||||
|
|
|
@ -294,10 +294,10 @@ class posixGroup extends baseModule implements passwordService {
|
||||||
// configuration options
|
// configuration options
|
||||||
$return['config_options']['group'] = array(
|
$return['config_options']['group'] = array(
|
||||||
array(
|
array(
|
||||||
array('kind' => 'text', 'text' => '<b>' . _("Groups") . ': </b>' . _('Minimum GID number') . " *: "),
|
array('kind' => 'text', 'text' => '<b>' . _("Groups") . ': </b>' . _('Minimum GID number') . "* "),
|
||||||
array('kind' => 'input', 'name' => 'posixGroup_minGID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
array('kind' => 'input', 'name' => 'posixGroup_minGID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
||||||
array('kind' => 'text', 'value' => ' '),
|
array('kind' => 'text', 'value' => ' '),
|
||||||
array('kind' => 'text', 'text' => _('Maximum GID number') . " *: "),
|
array('kind' => 'text', 'text' => _('Maximum GID number') . "* "),
|
||||||
array('kind' => 'input', 'name' => 'posixGroup_maxGID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
array('kind' => 'input', 'name' => 'posixGroup_maxGID', 'type' => 'text', 'size' => '10', 'maxlength' => '255'),
|
||||||
array('kind' => 'help', 'value' => 'minMaxGID'))
|
array('kind' => 'help', 'value' => 'minMaxGID'))
|
||||||
);
|
);
|
||||||
|
|
|
@ -523,7 +523,7 @@ class sambaSamAccount extends baseModule implements passwordService {
|
||||||
// configuration options
|
// configuration options
|
||||||
$return['config_options']['user'] = array(
|
$return['config_options']['user'] = array(
|
||||||
array(
|
array(
|
||||||
array('kind' => 'text', 'text' => '<b>' . _("Time zone") . ': </b>'),
|
array('kind' => 'text', 'text' => _("Time zone") . ' '),
|
||||||
array('kind' => 'select', 'name' => 'sambaSamAccount_timeZone', 'size' => '1',
|
array('kind' => 'select', 'name' => 'sambaSamAccount_timeZone', 'size' => '1',
|
||||||
'options' => array(
|
'options' => array(
|
||||||
array('-12', "GMT-12: " . _("Eniwetok, Kwajalein")),
|
array('-12', "GMT-12: " . _("Eniwetok, Kwajalein")),
|
||||||
|
@ -556,7 +556,7 @@ class sambaSamAccount extends baseModule implements passwordService {
|
||||||
'descriptiveOptions' => true),
|
'descriptiveOptions' => true),
|
||||||
array('kind' => 'help', 'value' => 'timeZone')),
|
array('kind' => 'help', 'value' => 'timeZone')),
|
||||||
array(
|
array(
|
||||||
array('kind' => 'text', 'text' => '<b>' . _("Disable LM hashes") . ': </b>'),
|
array('kind' => 'text', 'text' => _("Disable LM hashes") . ' '),
|
||||||
array('kind' => 'select', 'name' => 'sambaSamAccount_lmHash', 'size' => '1',
|
array('kind' => 'select', 'name' => 'sambaSamAccount_lmHash', 'size' => '1',
|
||||||
'options' => array(
|
'options' => array(
|
||||||
array('yes', _('yes')),
|
array('yes', _('yes')),
|
||||||
|
@ -567,7 +567,7 @@ class sambaSamAccount extends baseModule implements passwordService {
|
||||||
array('kind' => 'help', 'value' => 'lmHash')
|
array('kind' => 'help', 'value' => 'lmHash')
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
array('kind' => 'text', 'text' => '<b>' . _('Hidden options') . ":</b> ", 'td' => array('valign' => 'top')),
|
array('kind' => 'text', 'text' => _('Hidden options'), 'td' => array('valign' => 'top')),
|
||||||
array('kind' => 'table', 'value' => array(
|
array('kind' => 'table', 'value' => array(
|
||||||
array(
|
array(
|
||||||
array('kind' => 'input', 'name' => 'sambaSamAccount_hideHomeDrive', 'type' => 'checkbox'),
|
array('kind' => 'input', 'name' => 'sambaSamAccount_hideHomeDrive', 'type' => 'checkbox'),
|
||||||
|
|
Loading…
Reference in New Issue