';
+ foreach ($this->elements as $label => $content) {
+ echo '
' . $label . '
';
+ echo '
';
+ $result = array_merge($result, $content->generateHTML($module, $input, $values, $restricted, $tabindex, $scope));
+ echo '
';
+ }
+ echo '
';
+ $script = 'jQuery(function() {
+ $( "#' . $this->id . '" ).accordion({
+ collapsible: ' . $collapsible . ',
+ active: ' . $active . '
+ });
+ });';
+ $js = new htmlJavaScript($script);
+ $js->generateHTML($module, $input, $values, $restricted, $tabindex, $scope);
+ return $result;
+ }
+
+
+}
+
?>
diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc
index dd15cd67..11b1cb2a 100644
--- a/lam/lib/modules/posixAccount.inc
+++ b/lam/lib/modules/posixAccount.inc
@@ -66,8 +66,6 @@ class posixAccount extends baseModule implements passwordService {
private $cachedUIDList = null;
/** caches the list of known user names */
private $cachedUserNameList = null;
- /** if set to true the suggested user name for John Doe will be john.doe instead of jdoe */
- protected $SUGGEST_LONG_USER_NAME = false;
/**
* This function fills the error message array with messages.
@@ -219,7 +217,6 @@ class posixAccount extends baseModule implements passwordService {
$configOptionsContainer->addElement(new htmlSubTitle(_('Options')), true);
$configOptionsContainer->addElement(new htmlTableExtendedSelect('posixAccount_pwdHash', getSupportedHashTypes(),
array('SSHA'), _("Password hash type"), 'pwdHash'), true);
- $configOptionsContainer->addElement(new htmlTableExtendedInputCheckbox('posixAccount_primaryGroupAsSecondary', false, _('Set primary group as memberUid'), 'primaryGroupAsSecondary'), true);
$configOptionsContainer->addElement(new htmlTableExtendedInputTextarea('posixAccount_shells', implode("\r\n", $this->getShells()), 30, 4, _('Login shells'), 'loginShells'), true);
$hiddenOptionsContainer = new htmlGroup();
$hiddenOptionsContainer->colspan = 5;
@@ -239,7 +236,13 @@ class posixAccount extends baseModule implements passwordService {
}
}
$hiddenOptionsContainer->addElement($configContainerOptions);
- $configOptionsContainer->addElement($hiddenOptionsContainer);
+ $configOptionsContainer->addElement($hiddenOptionsContainer, true);
+ $advancedOptions = new htmlTable();
+ $advancedOptions->addElement(new htmlTableExtendedInputCheckbox('posixAccount_primaryGroupAsSecondary', false, _('Set primary group as memberUid'), 'primaryGroupAsSecondary'), true);
+ $advancedOptions->addElement(new htmlTableExtendedInputField(_('User name suggestion'), 'posixAccount_userNameSuggestion', '@givenname@%sn%', 'userNameSuggestion'));
+ $advancedOptionsAccordion = new htmlAccordion('posixAccountAdvancedOptions', array(_('Advanced options') => $advancedOptions), false);
+ $advancedOptionsAccordion->colspan = 5;
+ $configOptionsContainer->addElement($advancedOptionsAccordion);
$return['config_options']['all'] = $configOptionsContainer;
// upload
@@ -393,6 +396,11 @@ class posixAccount extends baseModule implements passwordService {
}
// help Entries
$return['help'] = array(
+ 'userNameSuggestion' => array(
+ "Headline" => _("User name suggestion"),
+ "Text" => _("LAM will suggest a user name based on e.g. first and last name. Here you can specify the suggestion. %sn% will be replaced by the last name. @givenname@ will be replaced by the first character of first name. Only attributes of tab Personal may be used.")
+ . '