diff --git a/pages/settings/texttemplates.vue b/pages/settings/texttemplates.vue index f8df072..8341487 100644 --- a/pages/settings/texttemplates.vue +++ b/pages/settings/texttemplates.vue @@ -9,7 +9,18 @@ const editTemplateModalOpen = ref(false) const itemInfo = ref({}) + const texttemplates = ref([]) + const setup = async () => { + texttemplates.value = await useSupabaseSelect("texttemplates") + } + + setup() + + const expand = ref({ + openedRows: [], + row: {} + }) @@ -26,11 +37,8 @@ - - - - + Variablen @@ -55,7 +63,39 @@ - + + + {{dataStore.documentTypesForCreation[row.documentType].label}} + + + {{row.default ? "Ja" : "Nein"}} + + + Einleitung + Endtext + + + + {{dataStore.documentTypesForCreation[row.documentType].label}} + {{row.pos === 'startText' ? 'Einleitung' : 'Ende'}} + {{row.text}} + Bearbeiten + + + + + +
{{dataStore.documentTypesForCreation[row.documentType].label}}
{{row.pos === 'startText' ? 'Einleitung' : 'Ende'}}
{{row.text}}