feat: frontend fase 2 sessies 1-3
- Member management pagina + invite flow - Persons module met filters, KPI tiles, detail panel - Event horizontale tabs navigatie (EventTabsNav component) - Route conflict opgelost - OrganisationSwitcher verbeterd (collapsed staat WIP)
This commit is contained in:
@@ -1,241 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
import { useEventDetail } from '@/composables/api/useEvents'
|
||||
import { useAuthStore } from '@/stores/useAuthStore'
|
||||
import { useOrganisationStore } from '@/stores/useOrganisationStore'
|
||||
import EditEventDialog from '@/components/events/EditEventDialog.vue'
|
||||
import type { EventStatus } from '@/types/event'
|
||||
|
||||
definePage({
|
||||
meta: {
|
||||
navActiveLink: 'events',
|
||||
},
|
||||
})
|
||||
|
||||
const route = useRoute()
|
||||
const authStore = useAuthStore()
|
||||
const orgStore = useOrganisationStore()
|
||||
|
||||
const orgId = computed(() => authStore.currentOrganisation?.id ?? '')
|
||||
const eventId = computed(() => String((route.params as { id: string }).id))
|
||||
|
||||
const { data: event, isLoading, isError, refetch } = useEventDetail(orgId, eventId)
|
||||
|
||||
const isEditDialogOpen = ref(false)
|
||||
const activeTab = ref('details')
|
||||
|
||||
// Set active event in store
|
||||
watch(eventId, (id) => {
|
||||
if (id) orgStore.setActiveEvent(id)
|
||||
}, { immediate: true })
|
||||
|
||||
const statusColor: Record<EventStatus, string> = {
|
||||
draft: 'default',
|
||||
published: 'info',
|
||||
registration_open: 'cyan',
|
||||
buildup: 'warning',
|
||||
showday: 'success',
|
||||
teardown: 'warning',
|
||||
closed: 'error',
|
||||
}
|
||||
|
||||
const dateFormatter = new Intl.DateTimeFormat('nl-NL', {
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: 'numeric',
|
||||
})
|
||||
|
||||
function formatDate(iso: string) {
|
||||
return dateFormatter.format(new Date(iso))
|
||||
}
|
||||
|
||||
const tiles = [
|
||||
{ title: 'Secties & Shifts', value: 0, icon: 'tabler-layout-grid', color: 'primary' },
|
||||
{ title: 'Personen', value: 0, icon: 'tabler-users', color: 'success' },
|
||||
{ title: 'Artiesten', value: 0, icon: 'tabler-music', color: 'warning' },
|
||||
{ title: 'Briefings', value: 0, icon: 'tabler-mail', color: 'info' },
|
||||
]
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<!-- Loading -->
|
||||
<VSkeletonLoader
|
||||
v-if="isLoading"
|
||||
type="card"
|
||||
/>
|
||||
|
||||
<!-- Error -->
|
||||
<VAlert
|
||||
v-else-if="isError"
|
||||
type="error"
|
||||
class="mb-4"
|
||||
>
|
||||
Kon evenement niet laden.
|
||||
<template #append>
|
||||
<VBtn
|
||||
variant="text"
|
||||
@click="refetch()"
|
||||
>
|
||||
Opnieuw proberen
|
||||
</VBtn>
|
||||
</template>
|
||||
</VAlert>
|
||||
|
||||
<template v-else-if="event">
|
||||
<!-- Header -->
|
||||
<div class="d-flex justify-space-between align-center mb-6">
|
||||
<div class="d-flex align-center gap-x-3">
|
||||
<VBtn
|
||||
icon="tabler-arrow-left"
|
||||
variant="text"
|
||||
:to="{ name: 'events' }"
|
||||
/>
|
||||
<h4 class="text-h4">
|
||||
{{ event.name }}
|
||||
</h4>
|
||||
<VChip
|
||||
:color="statusColor[event.status]"
|
||||
size="small"
|
||||
>
|
||||
{{ event.status }}
|
||||
</VChip>
|
||||
<span class="text-body-1 text-disabled">
|
||||
{{ formatDate(event.start_date) }} – {{ formatDate(event.end_date) }}
|
||||
</span>
|
||||
</div>
|
||||
<VBtn
|
||||
prepend-icon="tabler-edit"
|
||||
@click="isEditDialogOpen = true"
|
||||
>
|
||||
Bewerken
|
||||
</VBtn>
|
||||
</div>
|
||||
|
||||
<!-- Stat tiles -->
|
||||
<VRow class="mb-6">
|
||||
<VCol
|
||||
v-for="tile in tiles"
|
||||
:key="tile.title"
|
||||
cols="12"
|
||||
sm="6"
|
||||
md="3"
|
||||
>
|
||||
<VCard>
|
||||
<VCardText class="d-flex align-center gap-x-4">
|
||||
<VAvatar
|
||||
:color="tile.color"
|
||||
variant="tonal"
|
||||
size="44"
|
||||
rounded
|
||||
>
|
||||
<VIcon
|
||||
:icon="tile.icon"
|
||||
size="28"
|
||||
/>
|
||||
</VAvatar>
|
||||
<div>
|
||||
<p class="text-body-1 mb-0">
|
||||
{{ tile.title }}
|
||||
</p>
|
||||
<h4 class="text-h4">
|
||||
{{ tile.value }}
|
||||
</h4>
|
||||
</div>
|
||||
</VCardText>
|
||||
</VCard>
|
||||
</VCol>
|
||||
</VRow>
|
||||
|
||||
<!-- Tabs -->
|
||||
<VTabs
|
||||
v-model="activeTab"
|
||||
class="mb-6"
|
||||
>
|
||||
<VTab value="details">
|
||||
Details
|
||||
</VTab>
|
||||
<VTab value="settings">
|
||||
Instellingen
|
||||
</VTab>
|
||||
</VTabs>
|
||||
|
||||
<VTabsWindow v-model="activeTab">
|
||||
<!-- Tab: Details -->
|
||||
<VTabsWindowItem value="details">
|
||||
<VCard>
|
||||
<VCardText>
|
||||
<VRow>
|
||||
<VCol
|
||||
cols="12"
|
||||
md="3"
|
||||
>
|
||||
<h6 class="text-h6 mb-1">
|
||||
Slug
|
||||
</h6>
|
||||
<p class="text-body-1 text-disabled mb-0">
|
||||
{{ event.slug }}
|
||||
</p>
|
||||
</VCol>
|
||||
<VCol
|
||||
cols="12"
|
||||
md="3"
|
||||
>
|
||||
<h6 class="text-h6 mb-1">
|
||||
Tijdzone
|
||||
</h6>
|
||||
<p class="text-body-1 text-disabled mb-0">
|
||||
{{ event.timezone }}
|
||||
</p>
|
||||
</VCol>
|
||||
<VCol
|
||||
cols="12"
|
||||
md="3"
|
||||
>
|
||||
<h6 class="text-h6 mb-1">
|
||||
Organisatie
|
||||
</h6>
|
||||
<p class="text-body-1 text-disabled mb-0">
|
||||
{{ authStore.currentOrganisation?.name ?? '–' }}
|
||||
</p>
|
||||
</VCol>
|
||||
<VCol
|
||||
cols="12"
|
||||
md="3"
|
||||
>
|
||||
<h6 class="text-h6 mb-1">
|
||||
Aangemaakt op
|
||||
</h6>
|
||||
<p class="text-body-1 text-disabled mb-0">
|
||||
{{ formatDate(event.created_at) }}
|
||||
</p>
|
||||
</VCol>
|
||||
</VRow>
|
||||
</VCardText>
|
||||
</VCard>
|
||||
</VTabsWindowItem>
|
||||
|
||||
<!-- Tab: Instellingen -->
|
||||
<VTabsWindowItem value="settings">
|
||||
<VCard>
|
||||
<VCardText class="text-center pa-8">
|
||||
<VIcon
|
||||
icon="tabler-settings"
|
||||
size="48"
|
||||
class="mb-4 text-disabled"
|
||||
/>
|
||||
<p class="text-body-1 text-disabled">
|
||||
Komt in een volgende fase
|
||||
</p>
|
||||
</VCardText>
|
||||
</VCard>
|
||||
</VTabsWindowItem>
|
||||
</VTabsWindow>
|
||||
|
||||
<EditEventDialog
|
||||
v-model="isEditDialogOpen"
|
||||
:event="event"
|
||||
:org-id="orgId"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
19
apps/app/src/pages/events/[id]/artists/index.vue
Normal file
19
apps/app/src/pages/events/[id]/artists/index.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import EventTabsNav from '@/components/events/EventTabsNav.vue'
|
||||
|
||||
definePage({
|
||||
meta: {
|
||||
navActiveLink: 'events',
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<EventTabsNav>
|
||||
<VCard class="ma-4">
|
||||
<VCardText>
|
||||
Deze module is binnenkort beschikbaar.
|
||||
</VCardText>
|
||||
</VCard>
|
||||
</EventTabsNav>
|
||||
</template>
|
||||
19
apps/app/src/pages/events/[id]/briefings/index.vue
Normal file
19
apps/app/src/pages/events/[id]/briefings/index.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import EventTabsNav from '@/components/events/EventTabsNav.vue'
|
||||
|
||||
definePage({
|
||||
meta: {
|
||||
navActiveLink: 'events',
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<EventTabsNav>
|
||||
<VCard class="ma-4">
|
||||
<VCardText>
|
||||
Deze module is binnenkort beschikbaar.
|
||||
</VCardText>
|
||||
</VCard>
|
||||
</EventTabsNav>
|
||||
</template>
|
||||
68
apps/app/src/pages/events/[id]/index.vue
Normal file
68
apps/app/src/pages/events/[id]/index.vue
Normal file
@@ -0,0 +1,68 @@
|
||||
<script setup lang="ts">
|
||||
import EventTabsNav from '@/components/events/EventTabsNav.vue'
|
||||
|
||||
definePage({
|
||||
meta: {
|
||||
navActiveLink: 'events',
|
||||
},
|
||||
})
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
|
||||
const eventId = computed(() => String((route.params as { id: string }).id))
|
||||
|
||||
const tiles = [
|
||||
{ title: 'Personen', value: 0, icon: 'tabler-users', color: 'success', route: 'events-id-persons', enabled: true },
|
||||
{ title: 'Secties & Shifts', value: 0, icon: 'tabler-layout-grid', color: 'primary', route: null, enabled: false },
|
||||
{ title: 'Artiesten', value: 0, icon: 'tabler-music', color: 'warning', route: null, enabled: false },
|
||||
{ title: 'Briefings', value: 0, icon: 'tabler-mail', color: 'info', route: null, enabled: false },
|
||||
]
|
||||
|
||||
function onTileClick(tile: typeof tiles[number]) {
|
||||
if (tile.enabled && tile.route)
|
||||
router.push({ name: tile.route as 'events-id-persons', params: { id: eventId.value } })
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<EventTabsNav>
|
||||
<VRow class="mb-6">
|
||||
<VCol
|
||||
v-for="tile in tiles"
|
||||
:key="tile.title"
|
||||
cols="12"
|
||||
sm="6"
|
||||
md="3"
|
||||
>
|
||||
<VCard
|
||||
:class="{ 'cursor-pointer': tile.enabled }"
|
||||
:style="!tile.enabled ? 'opacity: 0.5' : ''"
|
||||
@click="onTileClick(tile)"
|
||||
>
|
||||
<VCardText class="d-flex align-center gap-x-4">
|
||||
<VAvatar
|
||||
:color="tile.color"
|
||||
variant="tonal"
|
||||
size="44"
|
||||
rounded
|
||||
>
|
||||
<VIcon
|
||||
:icon="tile.icon"
|
||||
size="28"
|
||||
/>
|
||||
</VAvatar>
|
||||
<div>
|
||||
<p class="text-body-1 mb-0">
|
||||
{{ tile.title }}
|
||||
</p>
|
||||
<h4 class="text-h4">
|
||||
{{ tile.value }}
|
||||
</h4>
|
||||
</div>
|
||||
</VCardText>
|
||||
</VCard>
|
||||
</VCol>
|
||||
</VRow>
|
||||
</EventTabsNav>
|
||||
</template>
|
||||
420
apps/app/src/pages/events/[id]/persons/index.vue
Normal file
420
apps/app/src/pages/events/[id]/persons/index.vue
Normal file
@@ -0,0 +1,420 @@
|
||||
<script setup lang="ts">
|
||||
import { usePersonList, useApprovePerson, useDeletePerson } from '@/composables/api/usePersons'
|
||||
import { useCrowdTypeList } from '@/composables/api/useCrowdTypes'
|
||||
import { useAuthStore } from '@/stores/useAuthStore'
|
||||
import EventTabsNav from '@/components/events/EventTabsNav.vue'
|
||||
import CreatePersonDialog from '@/components/persons/CreatePersonDialog.vue'
|
||||
import EditPersonDialog from '@/components/persons/EditPersonDialog.vue'
|
||||
import PersonDetailPanel from '@/components/persons/PersonDetailPanel.vue'
|
||||
import type { Person, PersonStatus } from '@/types/person'
|
||||
|
||||
definePage({
|
||||
meta: {
|
||||
navActiveLink: 'events',
|
||||
},
|
||||
})
|
||||
|
||||
const route = useRoute()
|
||||
const authStore = useAuthStore()
|
||||
|
||||
const orgId = computed(() => authStore.currentOrganisation?.id ?? '')
|
||||
const eventId = computed(() => String((route.params as { id: string }).id))
|
||||
|
||||
// Filters
|
||||
const filterCrowdTypeId = ref<string>('')
|
||||
const filterStatus = ref<string>('')
|
||||
|
||||
const filters = computed(() => ({
|
||||
crowd_type_id: filterCrowdTypeId.value || undefined,
|
||||
status: filterStatus.value || undefined,
|
||||
}))
|
||||
|
||||
const { data: personsResponse, isLoading, isError, refetch } = usePersonList(eventId, filters)
|
||||
const { data: crowdTypes } = useCrowdTypeList(orgId)
|
||||
|
||||
const persons = computed(() => personsResponse.value?.data ?? [])
|
||||
const meta = computed(() => personsResponse.value?.meta)
|
||||
|
||||
// KPI tiles
|
||||
const tiles = computed(() => [
|
||||
{
|
||||
title: 'Totaal personen',
|
||||
value: meta.value?.total ?? 0,
|
||||
icon: 'tabler-users',
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
title: 'Goedgekeurd',
|
||||
value: meta.value?.total_approved ?? 0,
|
||||
icon: 'tabler-circle-check',
|
||||
color: 'success',
|
||||
},
|
||||
{
|
||||
title: 'In behandeling',
|
||||
value: meta.value?.total_pending ?? 0,
|
||||
icon: 'tabler-clock',
|
||||
color: 'warning',
|
||||
},
|
||||
{
|
||||
title: 'Afgewezen / No-show',
|
||||
value: meta.value?.total_rejected ?? 0,
|
||||
icon: 'tabler-circle-x',
|
||||
color: 'error',
|
||||
},
|
||||
])
|
||||
|
||||
// Status options
|
||||
const statusOptions = [
|
||||
{ title: 'Alle statussen', value: '' },
|
||||
{ title: 'Pending', value: 'pending' },
|
||||
{ title: 'Goedgekeurd', value: 'approved' },
|
||||
{ title: 'Uitgenodigd', value: 'invited' },
|
||||
{ title: 'Aangemeld', value: 'applied' },
|
||||
{ title: 'Afgewezen', value: 'rejected' },
|
||||
{ title: 'No-show', value: 'no_show' },
|
||||
]
|
||||
|
||||
const statusColor: Record<PersonStatus, string> = {
|
||||
pending: 'default',
|
||||
applied: 'info',
|
||||
invited: 'cyan',
|
||||
approved: 'success',
|
||||
rejected: 'error',
|
||||
no_show: 'warning',
|
||||
}
|
||||
|
||||
const headers = [
|
||||
{ title: 'Naam', key: 'name' },
|
||||
{ title: 'E-mail', key: 'email' },
|
||||
{ title: 'Crowd Type', key: 'crowd_type' },
|
||||
{ title: 'Status', key: 'status' },
|
||||
{ title: 'Aangemaakt op', key: 'created_at' },
|
||||
{ title: 'Acties', key: 'actions', sortable: false, align: 'end' as const },
|
||||
]
|
||||
|
||||
const dateFormatter = new Intl.DateTimeFormat('nl-NL', {
|
||||
day: '2-digit',
|
||||
month: '2-digit',
|
||||
year: 'numeric',
|
||||
})
|
||||
|
||||
function formatDate(iso: string) {
|
||||
return dateFormatter.format(new Date(iso))
|
||||
}
|
||||
|
||||
function getInitials(name: string) {
|
||||
return name
|
||||
.split(' ')
|
||||
.map(p => p[0])
|
||||
.join('')
|
||||
.toUpperCase()
|
||||
.slice(0, 2)
|
||||
}
|
||||
|
||||
// Dialogs & panel
|
||||
const isCreateDialogOpen = ref(false)
|
||||
const isEditDialogOpen = ref(false)
|
||||
const editingPerson = ref<Person | null>(null)
|
||||
const selectedPersonId = ref<string | null>(null)
|
||||
const isDetailPanelOpen = ref(false)
|
||||
|
||||
// Delete confirmation
|
||||
const isDeleteDialogOpen = ref(false)
|
||||
const deletingPerson = ref<Person | null>(null)
|
||||
|
||||
// Mutations
|
||||
const { mutate: approvePerson } = useApprovePerson(eventId)
|
||||
const { mutate: deletePerson, isPending: isDeleting } = useDeletePerson(eventId)
|
||||
|
||||
const showSuccess = ref(false)
|
||||
const successMessage = ref('')
|
||||
|
||||
function onRowClick(_event: Event, row: { item: Person }) {
|
||||
selectedPersonId.value = row.item.id
|
||||
isDetailPanelOpen.value = true
|
||||
}
|
||||
|
||||
function onApprove(person: Person) {
|
||||
approvePerson(person.id, {
|
||||
onSuccess: () => {
|
||||
successMessage.value = `${person.name} goedgekeurd`
|
||||
showSuccess.value = true
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
function onEdit(person: Person) {
|
||||
editingPerson.value = person
|
||||
isEditDialogOpen.value = true
|
||||
}
|
||||
|
||||
function onDeleteConfirm(person: Person) {
|
||||
deletingPerson.value = person
|
||||
isDeleteDialogOpen.value = true
|
||||
}
|
||||
|
||||
function onDeleteExecute() {
|
||||
if (!deletingPerson.value) return
|
||||
const name = deletingPerson.value.name
|
||||
|
||||
deletePerson(deletingPerson.value.id, {
|
||||
onSuccess: () => {
|
||||
isDeleteDialogOpen.value = false
|
||||
deletingPerson.value = null
|
||||
successMessage.value = `${name} verwijderd`
|
||||
showSuccess.value = true
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// Crowd type filter options
|
||||
const crowdTypeOptions = computed(() => [
|
||||
{ title: 'Alle types', value: '' },
|
||||
...(crowdTypes.value?.map(ct => ({ title: ct.name, value: ct.id })) ?? []),
|
||||
])
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<EventTabsNav>
|
||||
<!-- Action bar -->
|
||||
<div class="d-flex justify-space-between align-center mb-4">
|
||||
<div class="d-flex gap-x-4">
|
||||
<AppSelect
|
||||
v-model="filterCrowdTypeId"
|
||||
label="Crowd Type"
|
||||
:items="crowdTypeOptions"
|
||||
clearable
|
||||
style="min-inline-size: 180px;"
|
||||
/>
|
||||
<AppSelect
|
||||
v-model="filterStatus"
|
||||
label="Status"
|
||||
:items="statusOptions"
|
||||
clearable
|
||||
style="min-inline-size: 180px;"
|
||||
/>
|
||||
</div>
|
||||
<VBtn
|
||||
prepend-icon="tabler-plus"
|
||||
@click="isCreateDialogOpen = true"
|
||||
>
|
||||
Persoon toevoegen
|
||||
</VBtn>
|
||||
</div>
|
||||
|
||||
<!-- KPI Tiles -->
|
||||
<VRow class="mb-6">
|
||||
<VCol
|
||||
v-for="tile in tiles"
|
||||
:key="tile.title"
|
||||
cols="12"
|
||||
sm="6"
|
||||
md="3"
|
||||
>
|
||||
<VCard>
|
||||
<VCardText class="d-flex align-center gap-x-4">
|
||||
<VAvatar
|
||||
:color="tile.color"
|
||||
variant="tonal"
|
||||
size="44"
|
||||
rounded
|
||||
>
|
||||
<VIcon
|
||||
:icon="tile.icon"
|
||||
size="28"
|
||||
/>
|
||||
</VAvatar>
|
||||
<div>
|
||||
<p class="text-body-1 mb-0">
|
||||
{{ tile.title }}
|
||||
</p>
|
||||
<h4 class="text-h4">
|
||||
{{ tile.value }}
|
||||
</h4>
|
||||
</div>
|
||||
</VCardText>
|
||||
</VCard>
|
||||
</VCol>
|
||||
</VRow>
|
||||
|
||||
<!-- Loading -->
|
||||
<VSkeletonLoader
|
||||
v-if="isLoading"
|
||||
type="table"
|
||||
/>
|
||||
|
||||
<!-- Error -->
|
||||
<VAlert
|
||||
v-else-if="isError"
|
||||
type="error"
|
||||
class="mb-4"
|
||||
>
|
||||
Kon personen niet laden.
|
||||
<template #append>
|
||||
<VBtn
|
||||
variant="text"
|
||||
@click="refetch()"
|
||||
>
|
||||
Opnieuw proberen
|
||||
</VBtn>
|
||||
</template>
|
||||
</VAlert>
|
||||
|
||||
<!-- Empty -->
|
||||
<VCard
|
||||
v-else-if="!persons.length"
|
||||
class="text-center pa-8"
|
||||
>
|
||||
<VIcon
|
||||
icon="tabler-users"
|
||||
size="48"
|
||||
class="mb-4 text-disabled"
|
||||
/>
|
||||
<p class="text-body-1 text-disabled">
|
||||
Nog geen personen voor dit evenement
|
||||
</p>
|
||||
</VCard>
|
||||
|
||||
<!-- Data table -->
|
||||
<VCard v-else>
|
||||
<VDataTable
|
||||
:headers="headers"
|
||||
:items="persons"
|
||||
item-value="id"
|
||||
hover
|
||||
@click:row="onRowClick"
|
||||
>
|
||||
<template #item.name="{ item }">
|
||||
<div class="d-flex align-center gap-x-3">
|
||||
<VAvatar
|
||||
size="32"
|
||||
color="primary"
|
||||
variant="tonal"
|
||||
>
|
||||
<span class="text-caption">{{ getInitials(item.name) }}</span>
|
||||
</VAvatar>
|
||||
<span>{{ item.name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template #item.crowd_type="{ item }">
|
||||
<VChip
|
||||
v-if="item.crowd_type"
|
||||
:color="item.crowd_type.color"
|
||||
size="small"
|
||||
>
|
||||
{{ item.crowd_type.name }}
|
||||
</VChip>
|
||||
<span
|
||||
v-else
|
||||
class="text-disabled"
|
||||
>-</span>
|
||||
</template>
|
||||
|
||||
<template #item.status="{ item }">
|
||||
<VChip
|
||||
:color="statusColor[item.status]"
|
||||
size="small"
|
||||
>
|
||||
{{ item.status }}
|
||||
</VChip>
|
||||
</template>
|
||||
|
||||
<template #item.created_at="{ item }">
|
||||
{{ formatDate(item.created_at) }}
|
||||
</template>
|
||||
|
||||
<template #item.actions="{ item }">
|
||||
<div class="d-flex justify-end gap-x-1">
|
||||
<VBtn
|
||||
v-if="item.status === 'pending' || item.status === 'applied'"
|
||||
icon="tabler-circle-check"
|
||||
variant="text"
|
||||
size="small"
|
||||
color="success"
|
||||
title="Goedkeuren"
|
||||
@click.stop="onApprove(item)"
|
||||
/>
|
||||
<VBtn
|
||||
icon="tabler-edit"
|
||||
variant="text"
|
||||
size="small"
|
||||
title="Bewerken"
|
||||
@click.stop="onEdit(item)"
|
||||
/>
|
||||
<VBtn
|
||||
icon="tabler-trash"
|
||||
variant="text"
|
||||
size="small"
|
||||
color="error"
|
||||
title="Verwijderen"
|
||||
@click.stop="onDeleteConfirm(item)"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</VDataTable>
|
||||
</VCard>
|
||||
|
||||
<!-- Create dialog -->
|
||||
<CreatePersonDialog
|
||||
v-model="isCreateDialogOpen"
|
||||
:event-id="eventId"
|
||||
:org-id="orgId"
|
||||
/>
|
||||
|
||||
<!-- Edit dialog -->
|
||||
<EditPersonDialog
|
||||
v-if="editingPerson"
|
||||
v-model="isEditDialogOpen"
|
||||
:person="editingPerson"
|
||||
:event-id="eventId"
|
||||
:org-id="orgId"
|
||||
/>
|
||||
|
||||
<!-- Detail panel -->
|
||||
<PersonDetailPanel
|
||||
v-model="isDetailPanelOpen"
|
||||
:event-id="eventId"
|
||||
:org-id="orgId"
|
||||
:person-id="selectedPersonId"
|
||||
@edit="(p: Person) => onEdit(p)"
|
||||
/>
|
||||
|
||||
<!-- Delete confirmation -->
|
||||
<VDialog
|
||||
v-model="isDeleteDialogOpen"
|
||||
max-width="400"
|
||||
>
|
||||
<VCard title="Persoon verwijderen">
|
||||
<VCardText>
|
||||
Weet je zeker dat je <strong>{{ deletingPerson?.name }}</strong> wilt verwijderen?
|
||||
</VCardText>
|
||||
<VCardActions>
|
||||
<VSpacer />
|
||||
<VBtn
|
||||
variant="text"
|
||||
@click="isDeleteDialogOpen = false"
|
||||
>
|
||||
Annuleren
|
||||
</VBtn>
|
||||
<VBtn
|
||||
color="error"
|
||||
:loading="isDeleting"
|
||||
@click="onDeleteExecute"
|
||||
>
|
||||
Verwijderen
|
||||
</VBtn>
|
||||
</VCardActions>
|
||||
</VCard>
|
||||
</VDialog>
|
||||
|
||||
<!-- Success snackbar -->
|
||||
<VSnackbar
|
||||
v-model="showSuccess"
|
||||
color="success"
|
||||
:timeout="3000"
|
||||
>
|
||||
{{ successMessage }}
|
||||
</VSnackbar>
|
||||
</EventTabsNav>
|
||||
</template>
|
||||
19
apps/app/src/pages/events/[id]/sections/index.vue
Normal file
19
apps/app/src/pages/events/[id]/sections/index.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import EventTabsNav from '@/components/events/EventTabsNav.vue'
|
||||
|
||||
definePage({
|
||||
meta: {
|
||||
navActiveLink: 'events',
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<EventTabsNav>
|
||||
<VCard class="ma-4">
|
||||
<VCardText>
|
||||
Deze module is binnenkort beschikbaar.
|
||||
</VCardText>
|
||||
</VCard>
|
||||
</EventTabsNav>
|
||||
</template>
|
||||
19
apps/app/src/pages/events/[id]/settings/index.vue
Normal file
19
apps/app/src/pages/events/[id]/settings/index.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script setup lang="ts">
|
||||
import EventTabsNav from '@/components/events/EventTabsNav.vue'
|
||||
|
||||
definePage({
|
||||
meta: {
|
||||
navActiveLink: 'events',
|
||||
},
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<EventTabsNav>
|
||||
<VCard class="ma-4">
|
||||
<VCardText>
|
||||
Deze module is binnenkort beschikbaar.
|
||||
</VCardText>
|
||||
</VCard>
|
||||
</EventTabsNav>
|
||||
</template>
|
||||
Reference in New Issue
Block a user