Bugfix in buttons
This commit is contained in:
parent
e8e2603679
commit
2d4ce38cbd
|
@ -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 .= " <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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user