mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-34852 allow editing of manual/self enrolments times and show time enrolled
This commit is contained in:
parent
87e9331d93
commit
4c04933b99
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user