|
@ -60,7 +60,6 @@ class mod_attendance_export_form extends moodleform { |
|
|
} |
|
|
} |
|
|
$mform->addElement('select', 'group', get_string('group'), $grouplist); |
|
|
$mform->addElement('select', 'group', get_string('group'), $grouplist); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Restrict the export to the selected users. |
|
|
// Restrict the export to the selected users. |
|
|
$namefields = get_all_user_name_fields(true, 'u'); |
|
|
$namefields = get_all_user_name_fields(true, 'u'); |
|
|
$allusers = get_enrolled_users($modcontext, 'mod/attendance:canbelisted', 0, 'u.id,'.$namefields); |
|
|
$allusers = get_enrolled_users($modcontext, 'mod/attendance:canbelisted', 0, 'u.id,'.$namefields); |
|
@ -128,13 +127,13 @@ class mod_attendance_export_form extends moodleform { |
|
|
'text' => get_string('downloadtext', 'attendance') |
|
|
'text' => get_string('downloadtext', 'attendance') |
|
|
)); |
|
|
)); |
|
|
|
|
|
|
|
|
$submit_string = get_string('ok'); |
|
|
$submitstring = get_string('ok'); |
|
|
$this->add_action_buttons(false, $submit_string); |
|
|
$this->add_action_buttons(false, $submitstring); |
|
|
|
|
|
|
|
|
$mform->addElement('hidden', 'id', $cm->id); |
|
|
$mform->addElement('hidden', 'id', $cm->id); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function validation($data, $files) { |
|
|
public function validation($data, $files) { |
|
|
$errors = parent::validation($data, $files); |
|
|
$errors = parent::validation($data, $files); |
|
|
|
|
|
|
|
|
// Validate the 'users' field. |
|
|
// Validate the 'users' field. |
|
|