mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-07-16 09:38:51 +02:00
feat:#21 updated deps, fixed changes, fixed room list
This commit is contained in:
@ -93,20 +93,20 @@ function formatWeekday(weekday: string) {
|
||||
layout="grid"
|
||||
>
|
||||
<template #grid="slotProps">
|
||||
<div class="col-12 sm:col-6 p-1">
|
||||
<div v-for="(item, index) in slotProps.items" :key="index" class="col-12 sm:col-6 p-1">
|
||||
<Card class="border-2 surface-border border-round surface-card">
|
||||
<template #title>
|
||||
<Badge
|
||||
:value="slotProps.data.eventType"
|
||||
:severity="slotProps.data.eventType === 'V' ? 'success' : 'warning'"
|
||||
:value="item.eventType"
|
||||
:severity="item.eventType === 'V' ? 'success' : 'warning'"
|
||||
class="flex-shrink-0 flex-grow-0"
|
||||
/>
|
||||
</template>
|
||||
<template #content>
|
||||
<div class="flex flex-row gap-4 flex-wrap">
|
||||
<div class="flex flex-column">
|
||||
<div class="mr-2">{{ formatWeekday(slotProps.data.day) }}</div>
|
||||
<div class="mr-2">{{ $t("moduleInformation.nthWeek", {count: slotProps.data.week}) }}</div>
|
||||
<div class="mr-2">{{ formatWeekday(item.day) }}</div>
|
||||
<div class="mr-2">{{ $t("moduleInformation.nthWeek", {count: item.week}) }}</div>
|
||||
</div>
|
||||
<div class="flex flex-column">
|
||||
<table>
|
||||
@ -114,19 +114,19 @@ function formatWeekday(weekday: string) {
|
||||
<td class="mr-2">
|
||||
<b>{{ $t("moduleInformation.start") }}:</b>
|
||||
</td>
|
||||
<td>{{ formatTimestamp(slotProps.data.start) }}</td>
|
||||
<td>{{ formatTimestamp(item.start) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mr-2">
|
||||
<b>{{ $t("moduleInformation.end") }}:</b>
|
||||
</td>
|
||||
<td>{{ formatTimestamp(slotProps.data.end) }}</td>
|
||||
<td>{{ formatTimestamp(item.end) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="mr-2">
|
||||
<b>{{ $t("moduleInformation.room") }}:</b>
|
||||
</td>
|
||||
<td>{{ slotProps.data.rooms }}</td>
|
||||
<td>{{ item.rooms }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user