| Línea 56... |
Línea 56... |
| 56 |
$mform->addElement('static', 'pendingcourses', get_string('courses'), $list);
|
56 |
$mform->addElement('static', 'pendingcourses', get_string('courses'), $list);
|
| 57 |
}
|
57 |
}
|
| Línea 58... |
Línea 58... |
| 58 |
|
58 |
|
| Línea 59... |
Línea 59... |
| 59 |
$mform->addElement('header','coursedetails', get_string('courserequestdetails'));
|
59 |
$mform->addElement('header','coursedetails', get_string('courserequestdetails'));
|
| - |
|
60 |
|
| 60 |
|
61 |
$mform->addElement('text', 'fullname', get_string('fullnamecourse'),
|
| 61 |
$mform->addElement('text', 'fullname', get_string('fullnamecourse'), 'maxlength="254" size="50"');
|
62 |
['maxlength' => \core_course\constants::FULLNAME_MAXIMUM_LENGTH, 'size' => 50]);
|
| 62 |
$mform->addHelpButton('fullname', 'fullnamecourse');
|
63 |
$mform->addHelpButton('fullname', 'fullnamecourse');
|
| Línea 63... |
Línea 64... |
| 63 |
$mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
|
64 |
$mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client');
|
| - |
|
65 |
$mform->setType('fullname', PARAM_TEXT);
|
| 64 |
$mform->setType('fullname', PARAM_TEXT);
|
66 |
|
| 65 |
|
67 |
$mform->addElement('text', 'shortname', get_string('shortnamecourse'),
|
| 66 |
$mform->addElement('text', 'shortname', get_string('shortnamecourse'), 'maxlength="100" size="20"');
|
68 |
['maxlength' => \core_course\constants::SHORTNAME_MAXIMUM_LENGTH, 'size' => 20]);
|
| Línea 67... |
Línea 69... |
| 67 |
$mform->addHelpButton('shortname', 'shortnamecourse');
|
69 |
$mform->addHelpButton('shortname', 'shortnamecourse');
|