mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Made some of the tabs linked even if selected in the different views.
This commit is contained in:
parent
748e0925c2
commit
f1b6ce824d
1 changed files with 4 additions and 4 deletions
|
@ -32,13 +32,13 @@
|
||||||
$inactive = NULL;
|
$inactive = NULL;
|
||||||
$row = array();
|
$row = array();
|
||||||
|
|
||||||
$row[] = new tabobject('browse', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id, get_string('browse','data'));
|
$row[] = new tabobject('browse', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id, get_string('browse','data'), '', true);
|
||||||
if (isteacher($course->id) or ($data->participants == PARTICIPANTS_S) or ($data->participants == PARTICIPANTS_TS)){
|
if (isteacher($course->id) or ($data->participants == PARTICIPANTS_S) or ($data->participants == PARTICIPANTS_TS)){
|
||||||
$row[] = new tabobject('add', $CFG->wwwroot.'/mod/data/add.php?d='.$data->id, get_string('add','data'));
|
$row[] = new tabobject('add', $CFG->wwwroot.'/mod/data/add.php?d='.$data->id, get_string('add','data'), '', true);
|
||||||
}
|
}
|
||||||
if (isteacher($course->id)) {
|
if (isteacher($course->id)) {
|
||||||
$row[] = new tabobject('templates', $CFG->wwwroot.'/mod/data/templates.php?d='.$data->id.'&mode=singletemplate', get_string('templates','data'));
|
$row[] = new tabobject('templates', $CFG->wwwroot.'/mod/data/templates.php?d='.$data->id.'&mode=singletemplate', get_string('templates','data'));
|
||||||
$row[] = new tabobject('fields', $CFG->wwwroot.'/mod/data/fields.php?d='.$data->id, get_string('fields','data'));
|
$row[] = new tabobject('fields', $CFG->wwwroot.'/mod/data/fields.php?d='.$data->id, get_string('fields','data'), '', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$tabs[] = $row;
|
$tabs[] = $row;
|
||||||
|
@ -83,4 +83,4 @@
|
||||||
|
|
||||||
print_tabs($tabs, $currenttab, $inactive);
|
print_tabs($tabs, $currenttab, $inactive);
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue