From 303a97c294e982b8fc2f809c295bf8f28ac03497 Mon Sep 17 00:00:00 2001 From: Nick Phillips Date: Thu, 2 Jul 2020 16:24:00 +1200 Subject: [PATCH] Fixes for squished allsessions report in edit mode, lang strings, sesscourses in session_report_viewed optional. --- classes/event/session_report_viewed.php | 5 +++-- lang/en/attendance.php | 4 ++-- styles.css | 4 ++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/classes/event/session_report_viewed.php b/classes/event/session_report_viewed.php index b315269..c4946f1 100644 --- a/classes/event/session_report_viewed.php +++ b/classes/event/session_report_viewed.php @@ -74,15 +74,16 @@ class session_report_viewed extends \core\event\base { * @return \moodle_url */ public function get_url() { - // Mode and groupby are optional. + // Mode, groupby, sesscourses are optional. $mode = empty($this->other['mode']) ? "" : $this->other['mode']; $groupby = empty($this->other['groupby']) ? "" : $this->other['groupby']; + $sesscourses = empty($this->other['sesscourses']) ? "" : $this->other['sesscourses']; return new \moodle_url('/mod/attendance/view.php', array('id' => $this->contextinstanceid, 'studentid' => $this->relateduserid, 'mode' => $mode, 'view' => $this->other['view'], 'groupby' => $groupby, - 'sesscourses' => $this->other['sesscourses'], + 'sesscourses' => $sesscourses, 'curdate' => $this->other['curdate'])); } diff --git a/lang/en/attendance.php b/lang/en/attendance.php index 19b3bcb..018fb28 100644 --- a/lang/en/attendance.php +++ b/lang/en/attendance.php @@ -491,7 +491,7 @@ $string['sessionexist'] = 'Session not added (already exists)!'; $string['sessiongenerated'] = 'One session was successfully generated'; $string['sessions'] = 'Sessions'; $string['sessionsallcourses'] = 'All courses'; -$string['sessionsbyactivity'] = 'Attendance Instance'; +$string['sessionsbyactivity'] = 'Attendance instance'; $string['sessionsbycourse'] = 'Course'; $string['sessionsbydate'] = 'Week'; $string['sessionscompleted'] = 'Taken sessions'; @@ -626,6 +626,6 @@ $string['warnings'] = 'Warnings set'; $string['warningthreshold'] = 'Warning threshold'; $string['warningupdated'] = 'Updated warnings'; $string['week'] = 'week(s)'; -$string['weekcommencing'] = 'Week Commencing'; +$string['weekcommencing'] = 'Week commencing'; $string['weeks'] = 'Weeks'; $string['youcantdo'] = 'You can\'t do anything'; \ No newline at end of file diff --git a/styles.css b/styles.css index 9432581..29446a6 100644 --- a/styles.css +++ b/styles.css @@ -55,6 +55,10 @@ font-size: 0.8em; } +.path-mod-attendance div.allsessionssummary + form#attendancetakeform > div { + width: 100%; +} + .path-mod-attendance table.controls { text-align: center; width: 100%;