Added Event Table to projects
Added Notes to Vendors Added Notes and Link to Event
This commit is contained in:
@@ -135,6 +135,21 @@ setupPage()
|
|||||||
|
|
||||||
</USelectMenu>
|
</USelectMenu>
|
||||||
</UFormGroup>
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="Link:"
|
||||||
|
>
|
||||||
|
<UInput
|
||||||
|
v-model="itemInfo.link"
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="Notizen:"
|
||||||
|
>
|
||||||
|
<UTextarea
|
||||||
|
v-model="itemInfo.notes"
|
||||||
|
rows="3"
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
<UFormGroup
|
<UFormGroup
|
||||||
label="Start:"
|
label="Start:"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -399,7 +399,29 @@ setupPage()
|
|||||||
</UTable>
|
</UTable>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="item.key === 'events'" class="space-y-3">
|
<div v-else-if="item.key === 'events'" class="space-y-3">
|
||||||
{{dataStore.getEventsByProjectId(currentItem.id).length > 0 ? dataStore.getEventsByProjectId(currentItem.id) : "Keine Termine in für dieses Projekt"}}
|
<Toolbar>
|
||||||
|
<UButton
|
||||||
|
@click="router.push(`/events/edit`)"
|
||||||
|
>
|
||||||
|
+ Termin
|
||||||
|
</UButton>
|
||||||
|
</Toolbar>
|
||||||
|
<UTable
|
||||||
|
:rows="dataStore.getEventsByProjectId(currentItem.id)"
|
||||||
|
@select="(i) => router.push(`/events/show/${i.id}`)"
|
||||||
|
:empty-state="{ icon: 'i-heroicons-circle-stack-20-solid', label: 'Keine Termine anzuzeigen' }"
|
||||||
|
:columns="[{key:'title',label:'Titel'},{key:'start',label:'Start'},{key:'end',label:'Ende'},{key:'type',label:'Typ'},{key:'resources',label:'Resourcen'}]"
|
||||||
|
>
|
||||||
|
<template #start-data="{row}">
|
||||||
|
{{dayjs(row.start).format("DD.MM.YY HH:mm")}}
|
||||||
|
</template>
|
||||||
|
<template #end-data="{row}">
|
||||||
|
{{dayjs(row.end).format("DD.MM.YY HH:mm")}}
|
||||||
|
</template>
|
||||||
|
<template #resources-data="{row}">
|
||||||
|
{{row.resources.map(i => i.title).join(", ")}}
|
||||||
|
</template>
|
||||||
|
</UTable>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</UCard>
|
</UCard>
|
||||||
|
|||||||
9
pages/vendors/[mode]/[[id]].vue
vendored
9
pages/vendors/[mode]/[[id]].vue
vendored
@@ -91,6 +91,7 @@ setupPage()
|
|||||||
<p v-if="currentItem.infoData.email">E-Mail: {{currentItem.infoData.email}}</p>
|
<p v-if="currentItem.infoData.email">E-Mail: {{currentItem.infoData.email}}</p>
|
||||||
<p v-if="currentItem.infoData.web">Web: {{currentItem.infoData.web}}</p>
|
<p v-if="currentItem.infoData.web">Web: {{currentItem.infoData.web}}</p>
|
||||||
<p v-if="currentItem.infoData.ustid">USt-Id: {{currentItem.infoData.ustid}}</p>
|
<p v-if="currentItem.infoData.ustid">USt-Id: {{currentItem.infoData.ustid}}</p>
|
||||||
|
<p v-if="currentItem.notes">Notizen:<br> {{currentItem.notes}}</p>
|
||||||
</div>
|
</div>
|
||||||
</UCard>
|
</UCard>
|
||||||
<UCard class="mt-5">
|
<UCard class="mt-5">
|
||||||
@@ -197,6 +198,14 @@ setupPage()
|
|||||||
v-model="itemInfo.infoData.tel"
|
v-model="itemInfo.infoData.tel"
|
||||||
/>
|
/>
|
||||||
</UFormGroup>
|
</UFormGroup>
|
||||||
|
|
||||||
|
<UFormGroup
|
||||||
|
label="Notizen:"
|
||||||
|
>
|
||||||
|
<UTextarea
|
||||||
|
v-model="itemInfo.notes"
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
<UFormGroup
|
<UFormGroup
|
||||||
label="E-Mail:"
|
label="E-Mail:"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user