2022-11-22 01:55:57 +01:00
|
|
|
<template>
|
|
|
|
<div>
|
2023-05-19 01:06:46 +02:00
|
|
|
<table cellspacing="0" cellpadding="0" border="0" class="hidden md:table custom-table overflow-auto custom-table-sm text-sm" v-if="inner.length">
|
2022-11-22 01:55:57 +01:00
|
|
|
<thead>
|
|
|
|
<th>Datum</th>
|
|
|
|
<th>Baustein</th>
|
|
|
|
<th>Veranstaltung</th>
|
|
|
|
<th>Organisator</th>
|
|
|
|
</thead>
|
2022-11-29 21:38:55 +01:00
|
|
|
<tr v-for="(course, index) in inner" :key="index">
|
2022-11-22 01:55:57 +01:00
|
|
|
<td v-text="course.completed_at_human"></td>
|
|
|
|
<td v-text="course.course.short_name"></td>
|
|
|
|
<td v-text="course.event_name"></td>
|
|
|
|
<td v-text="course.organizer"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<div class="py-3 text-gray-400 text-center" v-else>Keine Ausbildungen vorhanden</div>
|
2022-11-29 21:38:55 +01:00
|
|
|
<div class="md:hidden grid gap-3">
|
2023-05-19 01:06:46 +02:00
|
|
|
<ui-box class="relative" :heading="course.course.short_name" v-for="(course, index) in inner" :key="index" second>
|
2022-11-29 21:38:55 +01:00
|
|
|
<div class="text-xs text-gray-200" v-text="course.event_name"></div>
|
|
|
|
<div class="text-xs text-gray-200" v-text="course.completed_at_human"></div>
|
|
|
|
<div class="text-xs text-gray-200" v-text="course.organizer"></div>
|
2023-05-19 01:06:46 +02:00
|
|
|
</ui-box>
|
2022-11-29 21:38:55 +01:00
|
|
|
</div>
|
2022-11-22 01:55:57 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2022-11-29 21:38:55 +01:00
|
|
|
data: function () {
|
|
|
|
return {
|
|
|
|
inner: [],
|
|
|
|
};
|
|
|
|
},
|
2022-11-22 01:55:57 +01:00
|
|
|
props: {
|
2022-11-29 21:38:55 +01:00
|
|
|
value: {},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
this.inner = this.value;
|
2022-11-22 01:55:57 +01:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|