Skip to content
Snippets Groups Projects
Commit afd51c38 authored by permcu's avatar permcu
Browse files

Add coursebook sub components

parent f74d5ec4
No related branches found
No related tags found
2 merge requests!352Draft: Resolve "Add dialog with each lesson's students",!350Resolve "Add simple course book list"
......@@ -18,8 +18,9 @@
<!-- I know slice copies the array. But show me something better. -->
<v-list-item v-for="doc in day.slice(1)">
<v-card class="my-2">
<!-- Insert subcomponents here. -->
<v-card-text>{{ doc.id }}</v-card-text>
<documentation
:documentation="doc"
/>
</v-card>
</v-list-item>
</v-list>
......@@ -32,6 +33,7 @@
<script>
import CRUDIterator from "aleksis.core/components/generic/CRUDIterator.vue";
import Documentation from "./documentation/Documentation.vue";
import gqlDocumentationsForCoursebook from "./coursebook.graphql";
import { DateTime } from "luxon";
......@@ -39,6 +41,7 @@ export default {
name: "Coursebook",
components: {
CRUDIterator,
Documentation,
},
props: {
// Either as props OR route params
......
<template>
<v-card-text>{{ documentation.id }}</v-card-text>
</template>
<script>
import LessonInformation from "./documentation/LessonInformation.vue";
import LessonSummary from "./documentation/LessonSummary.vue";
import LessonNotes from "./documentation/LessonNotes.vue";
export default {
name: "Documentation",
components: {
LessonInformation,
LessonSummary,
LessonNotes,
},
props: {
documentation: {
type: Object,
required: true,
},
},
};
</script>
<template>
<v-card-text>{{ documentation.id }}</v-card-text>
</template>
<script>
export default {
name: "LessonInformation",
props: {
documentation: {
type: Object,
required: true,
},
},
};
</script>
<template>
<v-card-text>{{ documentation.id }}</v-card-text>
</template>
<script>
export default {
name: "LessonNotes",
props: {
documentation: {
type: Object,
required: true,
},
},
};
</script>
<template>
<v-card-text>{{ documentation.id }}</v-card-text>
</template>
<script>
export default {
name: "LessonSummary",
props: {
documentation: {
type: Object,
required: true,
},
},
};
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment