diff --git a/client/src/pages/learningPath/learningContentPage/attendanceDay/AttendanceDay.vue b/client/src/pages/learningPath/learningContentPage/attendanceDay/AttendanceDay.vue new file mode 100644 index 00000000..a7a5b564 --- /dev/null +++ b/client/src/pages/learningPath/learningContentPage/attendanceDay/AttendanceDay.vue @@ -0,0 +1,26 @@ + + + + Datum + {{ attendanceDay.date }} + + + + Standort + {{ attendanceDay.location }} + + + + Trainer + {{ attendanceDay.trainer }} + + + + diff --git a/client/src/pages/learningPath/learningContentPage/blocks/AttendanceDayBlock.vue b/client/src/pages/learningPath/learningContentPage/blocks/AttendanceDayBlock.vue index d540b6da..fd807063 100644 --- a/client/src/pages/learningPath/learningContentPage/blocks/AttendanceDayBlock.vue +++ b/client/src/pages/learningPath/learningContentPage/blocks/AttendanceDayBlock.vue @@ -2,13 +2,15 @@ import { useCourseSessionsStore } from "@/stores/courseSessions"; import type { LearningContent } from "@/types"; import { computed } from "vue"; +import AttendanceDay from "../attendanceDay/AttendanceDay.vue"; +import LearningContentSimpleLayout from "../layouts/LearningContentSimpleLayout.vue"; -const courseSessionsStore = useCourseSessionsStore(); - -interface Value { +export interface Value { description: string; } +const courseSessionsStore = useCourseSessionsStore(); + const props = defineProps<{ value: Value; content: LearningContent; @@ -20,12 +22,21 @@ const attendanceDay = computed(() => { - - - - {{ attendanceDay }} - Für diese Durchführung existieren noch keine Details + + + + + + + + + Für diese Durchführung {{ content.id }} existieren noch keine Details + + - + diff --git a/client/src/utils/typeMaps.ts b/client/src/utils/typeMaps.ts index 725846d7..0c1febc7 100644 --- a/client/src/utils/typeMaps.ts +++ b/client/src/utils/typeMaps.ts @@ -31,7 +31,7 @@ export function learningContentTypeData(t: LearningContentType): LearningContent case "feedback": return { title: "Feedback", icon: "it-icon-lc-feedback" }; case "attendance_day": - return { title: "Feedback", icon: "it-icon-lc-exercise" }; + return { title: "Präsenztag", icon: "it-icon-lc-training" }; case "placeholder": return { title: "In Umsetzung", icon: "it-icon-lc-document" }; } diff --git a/client/tailwind.config.js b/client/tailwind.config.js index 2aa4d303..3c8b68c1 100644 --- a/client/tailwind.config.js +++ b/client/tailwind.config.js @@ -50,10 +50,12 @@ module.exports = { "fst fst snd snd trd trd fth fth", ], "rating-scale-slim": ["bar bar bar", "fst mid fth"], + "icon-card": ["icon title", "icon value"] }, gridTemplateColumns: { "horizontal-bar-chart": "50px 1fr 300px 4fr 300px 1fr", "horizontal-bar-chart-slim": "50px 1fr 78px 4fr 78px 1fr", + "icon-card": "60px auto" }, gridTemplateRows: { "horizontal-bar-chart": "200px 40px",
{{ attendanceDay.date }}
{{ attendanceDay.location }}
{{ attendanceDay.trainer }}