Verified Commit 93b9ed58 authored by Raphael Fetzer's avatar Raphael Fetzer 👷
Browse files

Generische Funktion zum Hinzufügen von Variablen

parent bc2102a5
......@@ -22,6 +22,17 @@ function BuildZIP() {
});
}
function addFieldToTemplateIfChecked(fieldname, fieldtitle = "") {
if (document.getElementById(fieldname).checked) {
if (fieldtitle != "") {
fieldtitle = "<strong>" + fieldtitle + ":</strong> ";
}
return "\n\n\ <div class=\"left block\">" + fieldtitle + "$" + fieldname + "</div>";
} else {
return "";
}
}
var zertifikat = "\
<!--\n\
Zweck: Vorlage für Leistungsnachweise/Zertifikate in OpenOLAT\n\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment