Fixed bug in buttons
This commit is contained in:
parent
8d17474df0
commit
776dc84311
|
@ -70,10 +70,10 @@ class block_mytreestudyplan extends \block_base {
|
|||
if($teachermode){
|
||||
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudyplan/view-plan.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>";
|
||||
$this->content->footer .= " <a class='btn btn-primary' href='/local/treestudyplan/edit-plan.php' id='manage_invites'><i class='fa fa-share'></i>".get_string("cfg_plans","local_treestudyplan")."</a>";
|
||||
}
|
||||
} else if (count($mystudyplans) > 0) {
|
||||
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudyplan/edit-plan.php' id='manage_invites'><i class='fa fa-share'></i>{$invite_text}</a>";
|
||||
$this->content->footer = " <a class='btn btn-primary' href='{$invite_url}'>{$invite_text}</a>";
|
||||
}
|
||||
|
||||
return $this->content;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
$plugin->component = 'block_mytreestudyplan'; // Recommended since 2.0.2 (MDL-26035). Required since 3.0 (MDL-48494)
|
||||
$plugin->version = 2022090800; // YYYYMMDDHH (year, month, day, iteration)
|
||||
$plugin->version = 2022090801; // YYYYMMDDHH (year, month, day, iteration)
|
||||
$plugin->requires = 2021051700; // YYYYMMDDHH (This is the release version for Moodle 3.11)
|
||||
|
||||
$plugin->dependencies = [
|
||||
|
|
Loading…
Reference in New Issue
Block a user