class ControlCentre{ constructor(){ this.name = "controlcentre"; } static isCustom(){ return true; } static allowTake(){ return userrights.has("controlcentre.take"); } static CreateCustom(data){ let buttons = ``; if(this.allowTake()){ if(data.data.control_centre.is_taken){ buttons = `` buttons += `` } else{ buttons = `` } } document.getElementById("currentpage-content").innerHTML = `
${data.data.control_centre.is_taken ? System.buildEmployeeName(data.data.control_centre.name) : getTranslation("no_control_centre") }