class EmployeesTraining{ constructor(){ this.name = "employeestraining"; } static GetCustomDestination(data, dest){ return (data.employee_id ?? "" != "" ? "employees.view" : "employees.overview"); } static GetCustomDestID(data, destID){ return data.employee_id ?? destID; } static isCustom(){ return true; } static GetColumns(){ return ["name","action","passed","id"] } static CreateCustom(data){ document.getElementById("currentpage-content").innerHTML=Form.BackEditBtn("employees.view", "", -1, false, data.data.employee_id); document.getElementById("currentpage-content").innerHTML+=System.GetTable(this, data.data.trainings); Form.initViewModeTopButtons(); } static TableDataCreate(row, key){ if(key == "id"){ if(row.passed > -1){ return `