Bugfix in buttons

This commit is contained in:
Peter-Martijn Kuipers 2022-06-26 20:53:13 +02:00
parent e8e2603679
commit 2d4ce38cbd

View File

@ -68,12 +68,12 @@ class block_mytreestudyplan extends \block_base {
if($teachermode){
$this->content->footer = "<a class='btn btn-primary' href='{$invite_url}'>".get_string("view_plan","local_treestudyplan")."</a>";
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudylan/view-plans.php'>".get_string("view_plan","local_treestudyplan")."</a>";
if(has_capability("local/treestudyplan:editstudyplan",$systemcontext)){
$this->content->footer .= "&nbsp; <a class='btn btn-primary' href='{$invite_url}'>".get_string("cfg_plans","local_treestudyplan")."</a>";
}
} else if (count($mystudyplans) > 0) {
$this->content->footer = "<a class='btn btn-primary' href='{$invite_url}' id='manage_invites'><i class='fa fa-share'></i>{$invite_text}</a>";
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudylan/edit-plans.php' id='manage_invites'><i class='fa fa-share'></i>{$invite_text}</a>";
}
return $this->content;