mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-07-16 09:38:51 +02:00
added information button
This commit is contained in:
27
frontend/src/components/ModuleInformation.vue
Normal file
27
frontend/src/components/ModuleInformation.vue
Normal 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>
|
Reference in New Issue
Block a user