Browse Source

Improved enrolment form

Heading and textarea description were missing
develop_fields
jordifontseca 11 years ago
parent
commit
e71ba908bc
  1. 1
      lang/ca/enrol_apply.php
  2. 1
      lang/en/enrol_apply.php
  3. 1
      lang/es/enrol_apply.php
  4. 5
      locallib.php

1
lang/ca/enrol_apply.php

@ -44,6 +44,7 @@ $string['notification'] = '<b>Sol·licitud d\'inscripció enviada correctament</
$string['sendmailtoteacher'] = 'Enviar notificacions per correu als professors';
$string['mailtoteacher_suject'] = 'Nova inscripció al curs!';
$string['editdescription'] = 'Descripció de l\'àrea de text';
$string['comment'] = 'Comentari';
$string['applymanage'] = 'Gestionar inscripcions';
$string['status_desc'] = 'Allow course access of internally enrolled users.';

1
lang/en/enrol_apply.php

@ -44,6 +44,7 @@ $string['notification'] = '<b>Enrollment Application successfully sent</b>. <br/
$string['sendmailtoteacher'] = 'Send email notification to teachers';
$string['mailtoteacher_suject'] = 'New Enrollment request!';
$string['editdescription'] = 'Textarea description';
$string['comment'] = 'Comment';
$string['applymanage'] = 'Manage enrolment applications';
$string['status_desc'] = 'Allow course access of internally enrolled users.';

1
lang/es/enrol_apply.php

@ -44,6 +44,7 @@ $string['notification'] = '<b>Solicitud de matriculación enviada correctamente<
$string['sendmailtoteacher'] = 'Enviar notificaciones por correo a los profesores';
$string['mailtoteacher_suject'] = 'Nueva matrícula!';
$string['editdescription'] = 'Descripción del área de texto';
$string['comment'] = 'Comentario';
$string['applymanage'] = 'Gestionar matrículas';
$string['status_desc'] = 'Allow course access of internally enrolled users.'; // needs to be translated

5
locallib.php

@ -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');

Loading…
Cancel
Save