Added Teams
Minor Rework of Plantafel
This commit is contained in:
@@ -2897,6 +2897,12 @@ export const useDataStore = defineStore('data', () => {
|
||||
inputType: "text",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "quick",
|
||||
label: "Quick-Eintrag",
|
||||
inputType: "bool",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "startDate",
|
||||
label: "Start",
|
||||
@@ -3044,6 +3050,56 @@ export const useDataStore = defineStore('data', () => {
|
||||
],
|
||||
showTabs: [{label: 'Informationen'},{label: 'Wiki'}]
|
||||
},
|
||||
teams: {
|
||||
isArchivable: true,
|
||||
label: "Teams",
|
||||
labelSingle: "Team",
|
||||
isStandardEntity: true,
|
||||
redirect: true,
|
||||
historyItemHolder: "team",
|
||||
sortColumn: "name",
|
||||
selectWithInformation: "*",
|
||||
filters: [{
|
||||
name: "Archivierte ausblenden",
|
||||
default: true,
|
||||
"filterFunction": function (row) {
|
||||
if(!row.archived) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
}],
|
||||
inputColumns: ["Allgemein"],
|
||||
templateColumns: [
|
||||
{
|
||||
key: "name",
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text",
|
||||
inputColumn: "Allgemein",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "branch",
|
||||
label: "Niederlassung",
|
||||
inputType: "select",
|
||||
inputColumn: "Allgemein",
|
||||
selectDataType: "branches",
|
||||
selectOptionAttribute: "name",
|
||||
component: branch,
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "description",
|
||||
label: "Beschreibung",
|
||||
inputType: "textarea",
|
||||
inputColumn: "Allgemein"
|
||||
}
|
||||
],
|
||||
showTabs: [{label: 'Informationen'},{label: 'Wiki'}]
|
||||
},
|
||||
workingtimes: {
|
||||
isArchivable: true,
|
||||
label: "Anwesenheiten",
|
||||
|
||||
Reference in New Issue
Block a user