|
|
@ -42,6 +42,9 @@ class enrol_apply_enrol_form extends moodleform { |
|
|
|
$this->instance = $instance; |
|
|
|
$plugin = enrol_get_plugin('self'); |
|
|
|
|
|
|
|
$heading = $plugin->get_instance_name($instance); |
|
|
|
$mform->addElement('header', 'selfheader', $heading); |
|
|
|
|
|
|
|
if ($instance->password) { |
|
|
|
$heading = $plugin->get_instance_name($instance); |
|
|
|
$mform->addElement('header', 'selfheader', $heading); |
|
|
@ -53,7 +56,7 @@ class enrol_apply_enrol_form extends moodleform { |
|
|
|
} |
|
|
|
|
|
|
|
$mform->addElement('html', '<p>'.$instance->customtext1.'</p>'); |
|
|
|
$mform->addElement('textarea', 'applydescription','','cols="80"'); |
|
|
|
$mform->addElement('textarea', 'applydescription', get_string('comment', 'enrol_apply'),'cols="80"'); |
|
|
|
$this->add_action_buttons(false, get_string('enrolme', 'enrol_self')); |
|
|
|
|
|
|
|
$mform->addElement('hidden', 'id'); |
|
|
|