Browse Source

Fixes for squished allsessions report in edit mode, lang strings, sesscourses in session_report_viewed optional.

nwp90-nwp90-allsessionsreport
Nick Phillips 5 years ago
committed by Dan Marsden
parent
commit
303a97c294
  1. 5
      classes/event/session_report_viewed.php
  2. 4
      lang/en/attendance.php
  3. 4
      styles.css

5
classes/event/session_report_viewed.php

@ -74,15 +74,16 @@ class session_report_viewed extends \core\event\base {
* @return \moodle_url * @return \moodle_url
*/ */
public function get_url() { public function get_url() {
// Mode and groupby are optional. // Mode, groupby, sesscourses are optional.
$mode = empty($this->other['mode']) ? "" : $this->other['mode']; $mode = empty($this->other['mode']) ? "" : $this->other['mode'];
$groupby = empty($this->other['groupby']) ? "" : $this->other['groupby']; $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, return new \moodle_url('/mod/attendance/view.php', array('id' => $this->contextinstanceid,
'studentid' => $this->relateduserid, 'studentid' => $this->relateduserid,
'mode' => $mode, 'mode' => $mode,
'view' => $this->other['view'], 'view' => $this->other['view'],
'groupby' => $groupby, 'groupby' => $groupby,
'sesscourses' => $this->other['sesscourses'], 'sesscourses' => $sesscourses,
'curdate' => $this->other['curdate'])); 'curdate' => $this->other['curdate']));
} }

4
lang/en/attendance.php

@ -491,7 +491,7 @@ $string['sessionexist'] = 'Session not added (already exists)!';
$string['sessiongenerated'] = 'One session was successfully generated'; $string['sessiongenerated'] = 'One session was successfully generated';
$string['sessions'] = 'Sessions'; $string['sessions'] = 'Sessions';
$string['sessionsallcourses'] = 'All courses'; $string['sessionsallcourses'] = 'All courses';
$string['sessionsbyactivity'] = 'Attendance Instance'; $string['sessionsbyactivity'] = 'Attendance instance';
$string['sessionsbycourse'] = 'Course'; $string['sessionsbycourse'] = 'Course';
$string['sessionsbydate'] = 'Week'; $string['sessionsbydate'] = 'Week';
$string['sessionscompleted'] = 'Taken sessions'; $string['sessionscompleted'] = 'Taken sessions';
@ -626,6 +626,6 @@ $string['warnings'] = 'Warnings set';
$string['warningthreshold'] = 'Warning threshold'; $string['warningthreshold'] = 'Warning threshold';
$string['warningupdated'] = 'Updated warnings'; $string['warningupdated'] = 'Updated warnings';
$string['week'] = 'week(s)'; $string['week'] = 'week(s)';
$string['weekcommencing'] = 'Week Commencing'; $string['weekcommencing'] = 'Week commencing';
$string['weeks'] = 'Weeks'; $string['weeks'] = 'Weeks';
$string['youcantdo'] = 'You can\'t do anything'; $string['youcantdo'] = 'You can\'t do anything';

4
styles.css

@ -55,6 +55,10 @@
font-size: 0.8em; font-size: 0.8em;
} }
.path-mod-attendance div.allsessionssummary + form#attendancetakeform > div {
width: 100%;
}
.path-mod-attendance table.controls { .path-mod-attendance table.controls {
text-align: center; text-align: center;
width: 100%; width: 100%;

Loading…
Cancel
Save