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