Skip to content

Commit

Permalink
Removed ability for instructors to create slots via 'schedule in slot'
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnOLane committed Jul 23, 2024
1 parent 745cf19 commit 7a01cd8
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions teacherview.php
Original file line number Diff line number Diff line change
Expand Up @@ -701,10 +701,11 @@ function scheduler_print_schedulebox(scheduler $scheduler, $studentid, $groupid
$picture = $output->user_picture($student);
$name = $output->user_profile_link($scheduler, $student);
$actions = array();
$actions[] = new action_menu_link_secondary(
new moodle_url($actionurl, array('what' => 'schedule', 'studentid' => $student->id)),
new pix_icon('e/insert_date', '', 'moodle'),
get_string('scheduleinslot', 'scheduler') );
// MODIFIED: Removed ability for instructors to schedule in slot.
// $actions[] = new action_menu_link_secondary(
// new moodle_url($actionurl, array('what' => 'schedule', 'studentid' => $student->id)),
// new pix_icon('e/insert_date', '', 'moodle'),
// get_string('scheduleinslot', 'scheduler') );
$actions[] = new action_menu_link_secondary(
new moodle_url($actionurl, array('what' => 'markasseennow', 'studentid' => $student->id)),
new pix_icon('t/approve', '', 'moodle'),
Expand Down Expand Up @@ -755,10 +756,11 @@ function scheduler_print_schedulebox(scheduler $scheduler, $studentid, $groupid
}
$name .= ' ['. implode(', ', $groupmembers) . ']';
$actions = array();
$actions[] = new action_menu_link_secondary(
new moodle_url($actionurl, array('what' => 'schedulegroup', 'groupid' => $group->id)),
new pix_icon('e/insert_date', '', 'moodle'),
get_string('scheduleinslot', 'scheduler') );
// MODIFIED: Removed ability for instructors to schedule in slot.
// $actions[] = new action_menu_link_secondary(
// new moodle_url($actionurl, array('what' => 'schedulegroup', 'groupid' => $group->id)),
// new pix_icon('e/insert_date', '', 'moodle'),
// get_string('scheduleinslot', 'scheduler') );

$grouptable->add_line($picture, $name, array(), $actions);
$groupcnt++;
Expand Down

0 comments on commit 7a01cd8

Please sign in to comment.