added information button

This commit is contained in:
masterelmar
2023-10-10 17:58:43 +02:00
parent 1b5353f3b8
commit b9acdd3a34
3 changed files with 73 additions and 5 deletions

View File

@ -0,0 +1,27 @@
<script lang="ts" setup>
import { PropType } from "vue";
import { Module } from "../model/module.ts";
const props = defineProps({
module: {
type: Object as PropType<Module>,
required: true,
},
});
</script>
<template>
<div>
<h2>{{ props.module.name }}</h2>
<table>
<tr>
<td>Course:</td>
<td>{{ props.module.course }}</td>
</tr>
<tr>
<td>ID:</td>
<td>{{ props.module.id }}</td>
</tr>
</table>
</div>
</template>