1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-14 13:21:51 +02:00
parent 48a36209b5
commit 884f3df7cf
262 changed files with 223207 additions and 2 deletions

View file

@ -0,0 +1,45 @@
class EmployeesEntry{
constructor(){
this.name = "employeesentry";
}
static GetCustomDestination(data, dest){
return (data.employee_id ?? "" != "" ? "employees.view" : "employees.overview");
}
static GetCustomDestID(data, destID){
return data.employee_id ?? destID;
}
static GetColumns(){
return [];
}
static TableDataCreate(row, key){
return `<td>${row[key]}</td>`;
}
static GetEdit(data = {}){
return {
"employee_id": {
"val" : data.employee_id ?? ""
,"type" : "hidden"
,"mandatory":true
}
,"content": {
"val" : data.content ?? ""
,"type" : "textarea"
,"mandatory":true
,"isRow":true
,autogrow: true
}
,"type_of_entry": {
"val" : data.type_of_entry ?? 0
,"type" : "dropdown"
,"mandatory":true
,"isRow":true
,"options":System.getEmployeeEntryTypesOptions()
}
};
}
}