Skip to content
Snippets Groups Projects
Commit d7a95812 authored by Dominik Seeger's avatar Dominik Seeger
Browse files

fixed student overview

parent 0e7e8f26
No related branches found
No related tags found
1 merge request!135Merge 127 ui improvements
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
small round outline class="submission-button" small round outline class="submission-button"
exact exact
v-if="props.item[type.pk]" v-if="props.item[type.pk]"
v-on:click="showSubmissionDetails"
:to="{name: 'submission-side-view', params: { :to="{name: 'submission-side-view', params: {
studentPk: props.item.pk, studentPk: props.item.pk,
submissionPk: props.item[type.pk].pk submissionPk: props.item[type.pk].pk
...@@ -221,6 +222,9 @@ export default { ...@@ -221,6 +222,9 @@ export default {
this.loading = true this.loading = true
} }
this.getStudents().then(() => { this.loading = false }) this.getStudents().then(() => { this.loading = false })
},
showSubmissionDetails () {
this.$emit('detail-click')
} }
}, },
created () { created () {
......
<template> <template>
<v-layout justify-center> <v-layout justify-center class="mg-bottom">
<v-card class="mt-5"> <v-card class="mt-5">
<v-card-title class="title"> <v-card-title class="title">
This is the student overview page! This is the student overview page!
...@@ -25,5 +25,7 @@ export default { ...@@ -25,5 +25,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
.mg-bottom {
margin-bottom: 25px;
}
</style> </style>
<template> <template>
<v-layout> <v-layout v-if="this.$vuetify.breakpoint.xl" wrap>
<v-flex xs6> <v-flex xs6>
<student-list class="ma-1"></student-list> <student-list class="ma-1"></student-list>
</v-flex> </v-flex>
<v-flex xs6 class="right-view"> <v-flex xs6>
<router-view></router-view> <router-view></router-view>
</v-flex> </v-flex>
</v-layout> </v-layout>
<v-layout v-else>
<v-flex xs12>
<student-list class="ma-1"
v-on:detail-click="openDialog"
></student-list>
</v-flex>
<v-dialog v-model="dialog">
<v-card>
<v-card-text>
<router-view></router-view>
</v-card-text>
</v-card>
</v-dialog>
</v-layout>
</template> </template>
<script> <script>
import StudentList from '@/components/student_list/StudentList' import StudentList from '@/components/student_list/StudentList'
import StudentListHelpCard from '@/components/student_list/StudentListHelpCard'
export default { export default {
components: { StudentList }, components: { StudentList, StudentListHelpCard },
name: 'student-overview-page' name: 'student-overview-page',
data: () => {
return {
dialog: false
}
},
methods: {
openDialog () {
this.dialog = true
}
}
} }
</script> </script>
<style scoped> <style scoped>
.right-view {
position: sticky;
top: 80px;
overflow-y: scroll;
height: 90vh;
}
</style> </style>
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