Skip to content
Snippets Groups Projects
Verified Commit f61eaf7d authored by Julian's avatar Julian Committed by magicfelix
Browse files

Pass excuse types and extra marks to personal note component

parent 161a0b61
No related branches found
No related tags found
1 merge request!284Draft: Redesign entering of lesson documentation
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
<v-subheader>{{ lesson.subject.name }}</v-subheader> <v-subheader>{{ lesson.subject.name }}</v-subheader>
<v-row> <v-row>
<v-col v-for="item in lesson_documentations" cols="12" v-bind:key="item.id"> <v-col v-for="item in lesson_documentations" cols="12" v-bind:key="item.id">
<lesson-documentation v-bind:key="item.id" :groups="lesson.groups" <lesson-documentation v-bind:key="item.id" :groups="lesson.groups" :excuse-types="excuse_types" :extra-marks="extra_marks"
:period="item.period_formatted" :personal-notes="item.personal_notes" :period="item.period_formatted" :personal-notes="item.personal_notes"
:date="item.date" :topic="item.topic" :homework="item.homework" :group-note="item.group_note" :date="item.date" :topic="item.topic" :homework="item.homework" :group-note="item.group_note"
></lesson-documentation> ></lesson-documentation>
......
export default { export default {
methods: {}, methods: {},
props: ["date", "period", "topic", "homework", "groupNote", "personalNotes", "groups"], props: ["date", "period", "topic", "homework", "groupNote", "personalNotes", "groups", "excuseTypes", "extraMarks"],
name: "lesson-documentation", name: "lesson-documentation",
data: () => { data: () => {
return { return {
...@@ -93,7 +93,12 @@ export default { ...@@ -93,7 +93,12 @@ export default {
></v-textarea> ></v-textarea>
</v-col> </v-col>
<v-col sm="12" md="4" lg="3"> <v-col sm="12" md="4" lg="3">
<personal-notes :groups="groups" :personal-notes="personalNotes"></personal-notes> <personal-notes
:groups="groups"
:personal-notes="personalNotes"
:excuse-types="excuseTypes"
:extra-marks="extraMarks"
></personal-notes>
</v-col> </v-col>
</v-row> </v-row>
</v-form> </v-form>
......
...@@ -21,7 +21,7 @@ export default { ...@@ -21,7 +21,7 @@ export default {
return this.personalNotes.filter(item => item.student.id === studentID)[0] || {}; return this.personalNotes.filter(item => item.student.id === studentID)[0] || {};
} }
}, },
props: ["personalNotes", "groups"], props: ["personalNotes", "groups", "excuseTypes", "extraMarks"],
name: "personal-notes", name: "personal-notes",
data: () => { data: () => {
return { return {
......
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