class Fahrzeuge extends Route { static route = "Fahrzeuge"; static array = {}; static groups = {}; static subs = { "Eingewiesene": {color: "chocolate", icon: "person.png", entries: []} }; static selects = {}; static admin = false; // global page admin rights static prints = []; static filter = []; //static selected = []; //static dropzones = {}; static visible = false; constructor(groupName, json) { super( groupName, json, Fahrzeuge.route, Fahrzeuge.array, Fahrzeuge.groups, Fahrzeuge.subs, Fahrzeuge.selects, Fahrzeuge.admin/*, Fahrzeuge.prints, Fahrzeuge.filter, Fahrzeuge.selected, Fahrzeuge.dropzones*/ ); } init(json) { this.Kürzel = json.MAIN.KÜRZEL; this.Name = json.MAIN.NAME; this.Bild = json.MAIN.BILD; } renderEntry(drawEdit) { let html = "
"; if (this.Bild.EXISTIERT) { html+= ""; if (drawEdit) { html+= "
"; } } else { html+= ""; } if (drawEdit) { html+= "
"; } html += "
"; if (drawEdit) { html+= ""; } else { html+= ""; } document.getElementById(this.marker("Main")).innerHTML = html; } static RenderAdd() { let html = "

Fahrzeug hinzufügen

" + "
"; return html; } renderGroup() { return Fahrzeuge.RenderGroup(this.groupName); } static RenderGroup(groupName) { return { begin: "

" + groupName + "

", end: "
" }; } static New(groupName, json) { return new Fahrzeuge(groupName, json); } collect() { return Fahrzeuge.Collect(this.ID); } static Collect(id, contextId = null) { return { ID: id, KÜRZEL: this.Value(id, "Kürzel"), NAME: this.Value(id, "Name") }; } static RenderSelect(selectId, fahrzeugId, nullable = true) { let html = ""; return html; } }