From 6b43b2eb73f708ec158b2711c2c0ebde1068d3cf Mon Sep 17 00:00:00 2001 From: PMKuipers Date: Wed, 26 Jul 2023 16:42:34 +0200 Subject: [PATCH] Continuation of rudimentary page implementation --- amd/src/report-viewer-components.js | 1 - amd/src/studyplan-editor-components.js | 86 ++++++++++++------------- classes/studyplanpage.php | 87 -------------------------- classes/studyplanservice.php | 22 ++++--- 4 files changed, 57 insertions(+), 139 deletions(-) diff --git a/amd/src/report-viewer-components.js b/amd/src/report-viewer-components.js index 8b64efe..22a9701 100644 --- a/amd/src/report-viewer-components.js +++ b/amd/src/report-viewer-components.js @@ -288,7 +288,6 @@ export default { -
`, }); diff --git a/amd/src/studyplan-editor-components.js b/amd/src/studyplan-editor-components.js index 12ea473..01f15d4 100644 --- a/amd/src/studyplan-editor-components.js +++ b/amd/src/studyplan-editor-components.js @@ -9,7 +9,6 @@ import {SimpleLine} from "./simpleline"; import {call} from 'core/ajax'; import notification from 'core/notification'; -import {debounce} from './debounce'; import {get_strings} from 'core/str'; import {load_stringkeys, load_strings} from './string-helper'; import {objCopy,transportItem} from './studyplan-processor'; @@ -1107,7 +1106,7 @@ export default { }, mounted() { - if(this.value.studylines.length == 0){ + if(this.page.studylines.length == 0){ // start in editmode if studylines are empty this.edit.studyline.editmode = true; } @@ -1120,15 +1119,19 @@ export default { }, computed: { columns() { - return 1+ (this.value.slots * 2); + return 1+ (this.page.periods * 2); }, columns_stylerule() { // Uses css variables, so width for slots and filters can be configured in css let s = "grid-template-columns: var(--studyplan-filter-width)"; // use css variable here - for(let i=0; i - @@ -1329,11 +1332,11 @@ export default {
@@ -1342,16 +1345,16 @@ export default { :key="item.id" class='t-studyplan-drag' :data="item" - :type="'studyline-'+value.id" + :type="'studyline-'+page.id" >
{{ text.editmode_modules_hidden}}
@@ -1362,10 +1365,10 @@ export default {
-
@@ -1374,9 +1377,9 @@ export default {
-