Added thesis title

This commit is contained in:
2025-10-06 19:54:10 +02:00
parent 50f2c9a647
commit 1e03405ebc
2 changed files with 39 additions and 1 deletions

21
ui.js
View File

@@ -43,6 +43,27 @@ async function thesis_layout(content, result) {
}
}
async function thesis_title_layout(content, result) {
let cs_name = new ElementBuilder("input")
.type("text")
.placeholder("Název práce (v češtině)")
.on_input((e) => result.cs = e.target.value)
.finish();
let en_name = new ElementBuilder("input")
.type("text")
.placeholder("Název práce (v angličtině)")
.on_input((e) => result.en = e.target.value)
.finish();
content.appendChild(cs_name);
content.appendChild(en_name);
content.appendChild(new ElementBuilder("div.vertical-spacer").finish());
content.appendChild(new ElementBuilder("div.hint")
.text("Pokud si zatím nejste jisti, můžete tato pole ponechat prázdná.")
.finish());
}
async function author_info_layout(content, result) {
let author_name = new ElementBuilder("input")
.type("text")