mirror of
https://github.com/moodle/moodle.git
synced 2025-04-26 19:03:38 +02:00
Merge branch 'MDL-38861' of git://github.com/stronk7/moodle
This commit is contained in:
commit
f88ff0e7cf
@ -202,11 +202,13 @@ class admin_uploaduser_form2 extends moodleform {
|
||||
$mform->addElement('header', 'defaultheader', get_string('defaultvalues', 'tool_uploaduser'));
|
||||
|
||||
$mform->addElement('text', 'username', get_string('uuusernametemplate', 'tool_uploaduser'), 'size="20"');
|
||||
$mform->setType('username', PARAM_RAW); // No cleaning here. The process verifies it later.
|
||||
$mform->addRule('username', get_string('requiredtemplate', 'tool_uploaduser'), 'required', null, 'client');
|
||||
$mform->disabledIf('username', 'uutype', 'eq', UU_USER_ADD_UPDATE);
|
||||
$mform->disabledIf('username', 'uutype', 'eq', UU_USER_UPDATE);
|
||||
|
||||
$mform->addElement('text', 'email', get_string('email'), 'maxlength="100" size="30"');
|
||||
$mform->setType('email', PARAM_RAW); // No cleaning here. The process verifies it later.
|
||||
$mform->disabledIf('email', 'uutype', 'eq', UU_USER_ADD_UPDATE);
|
||||
$mform->disabledIf('email', 'uutype', 'eq', UU_USER_UPDATE);
|
||||
|
||||
@ -282,6 +284,7 @@ class admin_uploaduser_form2 extends moodleform {
|
||||
$mform->setAdvanced('description');
|
||||
|
||||
$mform->addElement('text', 'url', get_string('webpage'), 'maxlength="255" size="50"');
|
||||
$mform->setType('url', PARAM_URL);
|
||||
$mform->setAdvanced('url');
|
||||
|
||||
$mform->addElement('text', 'idnumber', get_string('idnumber'), 'maxlength="64" size="25"');
|
||||
|
Loading…
x
Reference in New Issue
Block a user