Tweaks to timeless mode
This commit is contained in:
parent
310f042772
commit
383c07becd
2
amd/build/report-viewer-components.min.js
vendored
2
amd/build/report-viewer-components.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -697,7 +697,7 @@ export default {
|
||||||
{{ page.shortname }}
|
{{ page.shortname }}
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
<b-row>
|
<b-row v-if="!page.timeless">
|
||||||
<b-col cols="4"><b>{{ text.duration}}</b></b-col>
|
<b-col cols="4"><b>{{ text.duration}}</b></b-col>
|
||||||
<b-col cols="8">
|
<b-col cols="8">
|
||||||
{{ pageduration(page) }}
|
{{ pageduration(page) }}
|
||||||
|
|
|
@ -359,6 +359,7 @@ class studyplanpage {
|
||||||
"timing" => new \external_value(PARAM_TEXT, '(past|present|future)'),
|
"timing" => new \external_value(PARAM_TEXT, '(past|present|future)'),
|
||||||
"studylines" => new \external_multiple_structure(studyline::user_structure()),
|
"studylines" => new \external_multiple_structure(studyline::user_structure()),
|
||||||
"perioddesc" => period::page_structure(),
|
"perioddesc" => period::page_structure(),
|
||||||
|
"timeless" => new \external_value(PARAM_BOOL, 'Page does not include time information'),
|
||||||
], 'Studyplan page with user info', $value);
|
], 'Studyplan page with user info', $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -380,6 +381,7 @@ class studyplanpage {
|
||||||
'timing' => $this->timing(),
|
'timing' => $this->timing(),
|
||||||
'studylines' => [],
|
'studylines' => [],
|
||||||
"perioddesc" => period::page_model($this),
|
"perioddesc" => period::page_model($this),
|
||||||
|
'timeless' => \get_config("local_treestudyplan","timelessperiods"),
|
||||||
];
|
];
|
||||||
|
|
||||||
$children = studyline::find_page_children($this);
|
$children = studyline::find_page_children($this);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user