Browse Source

Add description to warnings/status set.

MOODLE_32_STABLE
Dan Marsden 7 years ago
parent
commit
96fb1017f7
  1. 2
      lang/en/attendance.php
  2. 1
      preferences.php
  3. 15
      warnings.php

2
lang/en/attendance.php

@ -263,6 +263,7 @@ $string['nosessionexists'] = 'No Session exists for this course';
$string['nosessionsselected'] = 'No sessions selected'; $string['nosessionsselected'] = 'No sessions selected';
$string['warningdeleted'] = 'Warning deleted'; $string['warningdeleted'] = 'Warning deleted';
$string['warningdesc'] = 'These warnings will be automatically added to any new attendance activities. If more than one warning is triggered at exactly the same time, only the warning with the lower warning threshold will be sent.'; $string['warningdesc'] = 'These warnings will be automatically added to any new attendance activities. If more than one warning is triggered at exactly the same time, only the warning with the lower warning threshold will be sent.';
$string['warningdesc_course'] = 'Warnings thresholds set here affect the absentee report and allow students and third parties to be notified. If more than one warning is triggered at exactly the same time, only the warning with the lower warning threshold will be sent.';
$string['warnings'] = 'Warnings set'; $string['warnings'] = 'Warnings set';
$string['warningupdated'] = 'Updated warnings'; $string['warningupdated'] = 'Updated warnings';
$string['notifytask'] = 'Send warnings to users'; $string['notifytask'] = 'Send warnings to users';
@ -299,6 +300,7 @@ $string['pluginname'] = 'Attendance';
$string['points'] = 'Points'; $string['points'] = 'Points';
$string['pointsallsessions'] = 'Points over all sessions'; $string['pointsallsessions'] = 'Points over all sessions';
$string['pointssessionscompleted'] = 'Points over taken sessions'; $string['pointssessionscompleted'] = 'Points over taken sessions';
$string['preferences_desc'] = 'Changes to status sets will affect existing attendance sessions and may affect grading.';
$string['priorto'] = 'The session date is prior to the course start date ({$a}) so that the new sessions scheduled before this date will be hidden (not accessible). You can change the course start date at any time (see course settings) in order to have access to earlier sessions.<br><br>Please change the session date or just click the "Add session" button again to confirm?'; $string['priorto'] = 'The session date is prior to the course start date ({$a}) so that the new sessions scheduled before this date will be hidden (not accessible). You can change the course start date at any time (see course settings) in order to have access to earlier sessions.<br><br>Please change the session date or just click the "Add session" button again to confirm?';
$string['randompassword'] = 'Random password'; $string['randompassword'] = 'Random password';
$string['remark'] = 'Remark for: {$a}'; $string['remark'] = 'Remark for: {$a}';

1
preferences.php

@ -159,6 +159,7 @@ $setselector = new attendance_set_selector($att, $maxstatusset);
echo $output->header(); echo $output->header();
echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: '. format_string($course->fullname)); echo $output->heading(get_string('attendanceforthecourse', 'attendance').' :: '. format_string($course->fullname));
echo $output->render($tabs); echo $output->render($tabs);
echo $OUTPUT->box(get_string('preferences_desc', 'attendance'), 'generalbox attendancedesc', 'notice');
echo $output->render($setselector); echo $output->render($setselector);
echo $output->render($prefdata); echo $output->render($prefdata);

15
warnings.php

@ -166,16 +166,17 @@ if ($action == 'update' && !empty($notid)) {
$mform->display(); $mform->display();
} else { } else {
if (empty($id)) { if (empty($id)) {
echo $OUTPUT->box(get_string('warningdesc', 'mod_attendance'), 'generalbox', 'notice'); $warningdesc = get_string('warningdesc', 'mod_attendance');
$idnumber = 0;
$existingnotifications = $DB->get_records('attendance_warning',
array('idnumber' => 0),
'warningpercent');
} else { } else {
$warningdesc = get_string('warningdesc_course', 'mod_attendance');
$idnumber = $att->id;
}
echo $OUTPUT->box($warningdesc, 'generalbox attendancedesc', 'notice');
$existingnotifications = $DB->get_records('attendance_warning', $existingnotifications = $DB->get_records('attendance_warning',
array('idnumber' => $att->id), array('idnumber' => $idnumber),
'warningpercent'); 'warningpercent');
}
if (!empty($existingnotifications)) { if (!empty($existingnotifications)) {
$table = new html_table(); $table = new html_table();
$table->head = array(get_string('warningthreshold', 'mod_attendance'), $table->head = array(get_string('warningthreshold', 'mod_attendance'),

Loading…
Cancel
Save