Changes in Texttemplate Creation

This commit is contained in:
2024-07-03 14:23:32 +02:00
parent d327277bac
commit 10c6e72d87

View File

@@ -82,9 +82,18 @@
</template>
<UForm class="h-full">
<UFormGroup
label="Name:"
>
<UInput
v-model="itemInfo.name"
/>
</UFormGroup>
<UFormGroup
label="Dokumententyp:"
>
<USelectMenu
:options="Object.keys(dataStore.documentTypesForCreation).map(i => {
return {
@@ -92,6 +101,8 @@
key: i
}
})"
option-attribute="label"
value-attribute="key"
v-model="itemInfo.documentType"
/>
</UFormGroup>
@@ -100,6 +111,8 @@
>
<USelectMenu
:options="[{label:'Einleitung',key: 'startText'},{label:'Ende',key: 'endText'}]"
option-attribute="label"
value-attribute="key"
v-model="itemInfo.pos"
/>
</UFormGroup>
@@ -112,6 +125,7 @@
</UFormGroup>
</UForm>
<template #footer>
<UButton
@click="dataStore.createNewItem('texttemplates',itemInfo);