Add initial Feedback component
This commit is contained in:
parent
66d1b3f532
commit
425c91ff6b
|
|
@ -0,0 +1,57 @@
|
|||
<template>
|
||||
<div>
|
||||
<h1>Feedback</h1>
|
||||
<div>
|
||||
<h1>Motivation</h1>
|
||||
<p>Würden Sie den Kurs weiterempfehlen?</p>
|
||||
<ItCheckbox :checked="recommend" @toggle="recommend = !recommend" />
|
||||
</div>
|
||||
<div>
|
||||
<h2>Zufriedenheit insgesamt</h2>
|
||||
<ItCheckbox />
|
||||
</div>
|
||||
<RadioGroup v-model="selected">
|
||||
<RadioGroupLabel>Motivation</RadioGroupLabel>
|
||||
<div class="flex flex-row justify-around">
|
||||
<RadioGroupOption
|
||||
v-for="motivation in motivations"
|
||||
:key="motivation.id"
|
||||
v-slot="{ checked }"
|
||||
:value="motivation.id"
|
||||
>
|
||||
<div :class="checked ? 'bg-blue-200' : ''">
|
||||
<RadioGroupLabel>
|
||||
{{ motivation.name }}
|
||||
</RadioGroupLabel>
|
||||
</div>
|
||||
</RadioGroupOption>
|
||||
</div>
|
||||
</RadioGroup>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import ItCheckbox from "@/components/ui/ItCheckbox.vue";
|
||||
import {
|
||||
RadioGroup,
|
||||
RadioGroupDescription,
|
||||
RadioGroupLabel,
|
||||
RadioGroupOption,
|
||||
} from "@headlessui/vue";
|
||||
import { ref } from "vue";
|
||||
|
||||
const motivations = [
|
||||
{
|
||||
name: "Work",
|
||||
id: 1,
|
||||
},
|
||||
{
|
||||
name: "Fun",
|
||||
id: 2,
|
||||
},
|
||||
];
|
||||
|
||||
const selected = ref(motivations[0]);
|
||||
const satisfaction = ref(0);
|
||||
const recommend = ref(true);
|
||||
</script>
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import Feedback from "@/components/Feedback.vue";
|
||||
import LearningPathDiagramSmall from "@/components/learningPath/LearningPathDiagramSmall.vue";
|
||||
import { useCourseSessionsStore } from "@/stores/courseSessions";
|
||||
import { useUserStore } from "@/stores/user";
|
||||
|
|
@ -75,6 +76,7 @@ onMounted(async () => {
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<Feedback />
|
||||
</main>
|
||||
<aside class="lg:w-[343px] m-8 lg:order-1">
|
||||
<div class="mx-auto text-center pb-6 mb-6 border-b">
|
||||
|
|
|
|||
Loading…
Reference in New Issue