feat(frontend): Knop aan leerpadpagina toegevoegd om assignment aan te maken.
This commit is contained in:
parent
1382e2300b
commit
51a9b58a20
6 changed files with 39 additions and 6 deletions
|
@ -85,5 +85,6 @@
|
||||||
"timestamp": "Zeitpunkt",
|
"timestamp": "Zeitpunkt",
|
||||||
"loadSubmission": "Einladen",
|
"loadSubmission": "Einladen",
|
||||||
"noSubmissionsYet": "Noch keine Lösungen eingereicht.",
|
"noSubmissionsYet": "Noch keine Lösungen eingereicht.",
|
||||||
"viewAsGroup": "Fortschritt ansehen von Gruppe..."
|
"viewAsGroup": "Fortschritt ansehen von Gruppe...",
|
||||||
|
"assignLearningPath": "Als Aufgabe geben"
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,5 +85,6 @@
|
||||||
"timestamp": "Timestamp",
|
"timestamp": "Timestamp",
|
||||||
"loadSubmission": "Load",
|
"loadSubmission": "Load",
|
||||||
"noSubmissionsYet": "No submissions yet.",
|
"noSubmissionsYet": "No submissions yet.",
|
||||||
"viewAsGroup": "View progress of group..."
|
"viewAsGroup": "View progress of group...",
|
||||||
|
"assignLearningPath": "assign"
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,5 +85,6 @@
|
||||||
"timestamp": "Horodatage",
|
"timestamp": "Horodatage",
|
||||||
"loadSubmission": "Charger",
|
"loadSubmission": "Charger",
|
||||||
"noSubmissionsYet": "Pas encore de soumissions.",
|
"noSubmissionsYet": "Pas encore de soumissions.",
|
||||||
"viewAsGroup": "Voir la progression du groupe..."
|
"viewAsGroup": "Voir la progression du groupe...",
|
||||||
|
"assignLearningPath": "donner comme tâche"
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,5 +85,6 @@
|
||||||
"timestamp": "Tijdstip",
|
"timestamp": "Tijdstip",
|
||||||
"loadSubmission": "Inladen",
|
"loadSubmission": "Inladen",
|
||||||
"noSubmissionsYet": "Nog geen indieningen.",
|
"noSubmissionsYet": "Nog geen indieningen.",
|
||||||
"viewAsGroup": "Vooruitgang bekijken van groep..."
|
"viewAsGroup": "Vooruitgang bekijken van groep...",
|
||||||
|
"assignLearningPath": "Als opdracht geven"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
<script setup lang="ts"></script>
|
<script setup lang="ts">
|
||||||
|
import {useRoute} from "vue-router";
|
||||||
|
|
||||||
|
const route = useRoute();
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<main></main>
|
<main>
|
||||||
|
Hier zou de pagina staan om een assignment aan te maken voor de leerpad met hruid {{ route.query.hruid }} en
|
||||||
|
language {{ route.query.language }}. (Overschrijf dit)
|
||||||
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|
|
@ -114,6 +114,16 @@
|
||||||
router.push({ query });
|
router.push({ query });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function assign() {
|
||||||
|
router.push({
|
||||||
|
path: "/assignment/create",
|
||||||
|
query: {
|
||||||
|
hruid: props.hruid,
|
||||||
|
language: props.language
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -125,6 +135,7 @@
|
||||||
v-model="navigationDrawerShown"
|
v-model="navigationDrawerShown"
|
||||||
:width="350"
|
:width="350"
|
||||||
>
|
>
|
||||||
|
<div class="d-flex flex-column h-100">
|
||||||
<v-list-item>
|
<v-list-item>
|
||||||
<template v-slot:title>
|
<template v-slot:title>
|
||||||
<div class="learning-path-title">{{ learningPath.data.title }}</div>
|
<div class="learning-path-title">{{ learningPath.data.title }}</div>
|
||||||
|
@ -193,6 +204,13 @@
|
||||||
</template>
|
</template>
|
||||||
</using-query-result>
|
</using-query-result>
|
||||||
</div>
|
</div>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<v-list-item v-if="authService.authState.activeRole === 'teacher'">
|
||||||
|
<template v-slot:default>
|
||||||
|
<v-btn class="button-in-nav" @click="assign()">{{ t("assignLearningPath") }}</v-btn>
|
||||||
|
</template>
|
||||||
|
</v-list-item>
|
||||||
|
</div>
|
||||||
</v-navigation-drawer>
|
</v-navigation-drawer>
|
||||||
<div class="control-bar-above-content">
|
<div class="control-bar-above-content">
|
||||||
<v-btn
|
<v-btn
|
||||||
|
@ -259,4 +277,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
.button-in-nav {
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue