Deprecated absencerequests as non Standard Entity

Added Respective Rights
Changes to show title
This commit is contained in:
2024-12-25 17:00:09 +01:00
parent 325d25034d
commit 1a79f9dbd9
7 changed files with 69 additions and 9 deletions

View File

@@ -373,7 +373,59 @@ export const useDataStore = defineStore('data', () => {
absencerequests: {
label: "Abwesenheitsanträge",
labelSingle: "Abwesenheitsantrag",
redirect:true
isStandardEntity: true,
supabaseSelectWithInformation: "*",
redirect:true,
filters:[],
templateColumns:[
{
key: "approved",
label: "Genehmigt",
inputType: "select",
selectManualOptions: ["Offen","Genehmigt", "Abgelehnt"]
},{
key: "name",
label: "Name",
inputType: "text",
title: true
},
{
key: "profile",
label: "Mitarbeiter",
inputType: "select",
selectDataType: "profiles",
selectOptionAttribute: "fullName",
selectSearchAttributes: ['fullName'],
component: profile
},{
key: "reason",
label: "Grund",
inputType: "select",
selectManualOptions: ["Elternzeit",
"Kind krank - Kinderbetreuung",
"Krankheit",
"Krankheit 1 Tag (mit Attest)",
"Krankheit ab 2. Tag (mit Attest)",
"Mutterschutz",
"Sonderurlaub (bezahlt)",
"Überstundenausgleich",
"Unbezahlter Urlaub",
"Urlaub"]
},{
key: "startDate",
label: "Start",
inputType: "date"
},{
key: "endDate",
label: "Ende",
inputType: "date"
},{
key: "note",
label: "Notizen",
inputType: "textarea"
}
],
showTabs: [{label: 'Informationen'}]
},
plants: {
label: "Objekte",