MDL-34852 allow editing of manual/self enrolments times and show time enrolled

This commit is contained in:
Petr Škoda 2012-08-12 14:15:09 +02:00
parent 87e9331d93
commit 4c04933b99
3 changed files with 11 additions and 4 deletions

View File

@ -46,9 +46,12 @@ class enrol_manual_user_enrolment_form extends moodleform {
$mform->addElement('select', 'status', get_string('participationstatus', 'enrol'), $options);
}
$mform->addElement('date_selector', 'timestart', get_string('enroltimestart', 'enrol'), array('optional' => true));
$mform->addElement('date_time_selector', 'timestart', get_string('enroltimestart', 'enrol'), array('optional' => true));
$mform->addElement('date_selector', 'timeend', get_string('enroltimeend', 'enrol'), array('optional' => true));
$mform->addElement('date_time_selector', 'timeend', get_string('enroltimeend', 'enrol'), array('optional' => true));
$mform->addElement('date_time_selector', 'timecreated', get_string('enroltimecreated', 'enrol'));
$mform->hardFreeze('timecreated');
$mform->addElement('hidden', 'ue');
$mform->setType('ue', PARAM_INT);

View File

@ -46,9 +46,12 @@ class enrol_self_user_enrolment_form extends moodleform {
$mform->addElement('select', 'status', get_string('participationstatus', 'enrol'), $options);
}
$mform->addElement('date_selector', 'timestart', get_string('enroltimestart', 'enrol'), array('optional' => true));
$mform->addElement('date_time_selector', 'timestart', get_string('enroltimestart', 'enrol'), array('optional' => true));
$mform->addElement('date_selector', 'timeend', get_string('enroltimeend', 'enrol'), array('optional' => true));
$mform->addElement('date_time_selector', 'timeend', get_string('enroltimeend', 'enrol'), array('optional' => true));
$mform->addElement('date_time_selector', 'timecreated', get_string('enroltimecreated', 'enrol'));
$mform->hardFreeze('timecreated');
$mform->addElement('hidden', 'ue');
$mform->setType('ue', PARAM_INT);

View File

@ -55,6 +55,7 @@ $string['enrolnotpermitted'] = 'You do not have permission or are not allowed to
$string['enrolperiod'] = 'Enrolment duration';
$string['enrolusage'] = 'Instances / enrolments';
$string['enrolusers'] = 'Enrol users';
$string['enroltimecreated'] = 'Enrolment created';
$string['enroltimeend'] = 'Enrolment ends';
$string['enroltimestart'] = 'Enrolment starts';
$string['errajaxfailedenrol'] = 'Failed to enrol user';