' +
'
';
html += "" +
"| Stellen-ID: | " + data.ID + " |
" +
"| Einrichtung: | " + data.Facilitie.Designation + " |
" +
"| Kontaktperson: | " + data.ContactPerson.FirstName + " " + data.ContactPerson.LastName + " |
" +
" | " + data.ContactPerson.EMail + " |
" +
" | " + data.ContactPerson.Phone + " |
" +
"| Besetzungsdatum: | " + besetz + " |
" +
"| Bewerbungsfrist: | " + data.ApplicationDeadline.split(" ")[0] + " |
";
if (data.Url !== "") {
html += "| Bewerbung: | Hier geht es zu der Bewerbung |
";
}
if (data.PDFaktive === "true") {
html += "| PDF-Herunterladen: | Hier geht es zum PDF-Download |
";
}
html += "
" + data.Description + "
" + data.ApplicationText + "
";
} else {
let description = data.DescriptionEng === "" ? data.Description : data.DescriptionEng;
let applicationText = data.ApplicationTextEng === "" ? data.ApplicationText : data.ApplicationTextEng;
let besetz = data.CastDate.split(" ")[0];
if (data.IsNextPossibleDate === "true") {
besetz = 'As soon as possible';
}
html += '' +
"
" + data.TitleEng + "
" +
createShareDropdown(lang) +
'' +
'
';
html +=
"" +
"| Stellen-ID: | " + data.ID + " |
" +
"| Facility: | " + data.Facilitie.Designation + " |
" +
"| Contact person: | " + data.ContactPerson.FirstName + " " + data.ContactPerson.LastName + " |
" +
" | " + data.ContactPerson.EMail + " |
" +
" | " + data.ContactPerson.Phone + " |
" +
"| Date of filling: | " + besetz + " |
" +
"| Application deadline: | " + data.ApplicationDeadline.split(" ")[0] + " |
";
if (data.UrlEng !== "") {
html += "| Application: | Click here for the Application |
";
}
if (data.PDFaktive === "true") {
let pdfLink = data.PDFLinkEng === "" ? data.PDFLink : data.PDFLinkEng;
html += "| PDF-Download: | Click here for the PDF-Download |
";
}
html += "
" + description + "
" + applicationText + "
";
}
// Fügen Sie den HTML-Inhalt in das 'conti' Element im neuen Fenster ein
html += "";
html += "