|
|
@ -80,7 +80,8 @@ class attendance_tabs implements renderable { |
|
|
|
|
|
|
|
if (has_capability('mod/attendance:manageattendances', $context)) { |
|
|
|
$toprow[] = new tabobject(self::TAB_ADD, |
|
|
|
$this->att->url_sessions()->out(true, array('action' => mod_attendance_sessions_page_params::ACTION_ADD)), |
|
|
|
$this->att->url_sessions()->out(true, |
|
|
|
array('action' => mod_attendance_sessions_page_params::ACTION_ADD)), |
|
|
|
get_string('addsession', 'attendance')); |
|
|
|
} |
|
|
|
if (has_capability('mod/attendance:viewreports', $context)) { |
|
|
@ -103,7 +104,8 @@ class attendance_tabs implements renderable { |
|
|
|
} |
|
|
|
if ($this->currenttab == self::TAB_UPDATE && has_capability('mod/attendance:manageattendances', $context)) { |
|
|
|
$toprow[] = new tabobject(self::TAB_UPDATE, |
|
|
|
$this->att->url_sessions()->out(true, array('action' => mod_attendance_sessions_page_params::ACTION_UPDATE)), |
|
|
|
$this->att->url_sessions()->out(true, |
|
|
|
array('action' => mod_attendance_sessions_page_params::ACTION_UPDATE)), |
|
|
|
get_string('changesession', 'attendance')); |
|
|
|
} |
|
|
|
|
|
|
|