develop #9

Merged
walamana merged 26 commits from develop into main 2026-07-14 22:47:20 +02:00
2 changed files with 31 additions and 0 deletions
Showing only changes of commit fe121795a0 - Show all commits
+30
View File
@@ -17,6 +17,7 @@ const emit = defineEmits<{
addGottesdienst: []
addMinistrant: []
editMinistrant: [id: number]
importZelebrationsplan: []
}>()
const activeTab = ref<"gottesdienste" | "ministranten">("gottesdienste")
@@ -51,6 +52,9 @@ const activeTab = ref<"gottesdienste" | "ministranten">("gottesdienste")
<button v-if="admin" class="add-godi" @click="emit('addGottesdienst')">
<i class="icon">add</i> Gottesdienst
</button>
<button v-if="admin" class="import-btn" @click="emit('importZelebrationsplan')">
<i class="icon">upload</i> Zelebrationsplan importieren
</button>
</template>
<template v-else>
@@ -234,4 +238,30 @@ const activeTab = ref<"gottesdienste" | "ministranten">("gottesdienste")
color: #333;
}
}
.import-btn {
display: flex;
width: 100%;
margin: 16px 0;
padding: 12px;
font-size: 15px;
justify-content: center;
background: #f5f5f5;
border: 1px dashed #c4c4c4;
border-radius: 8px;
cursor: pointer;
color: #555;
transition: 100ms;
i {
font-size: 22px;
margin-right: 6px;
}
&:hover {
background: #eaeaea;
border-color: #999;
color: #333;
}
}
</style>
+1
View File
@@ -347,6 +347,7 @@ async function importZelebrationsplan() {
@add-gottesdienst="createGottesdienst()"
@add-ministrant="createMinistrant()"
@edit-ministrant="(id) => createMinistrant(id)"
@import-zelebrationsplan="importZelebrationsplan()"
class="plan list"
v-if="viewMode === 'list'">