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

19
data.js
View File

@@ -13,6 +13,23 @@ let steps = {
type: ""
}
},
thesis_title: {
title: "Jak se bude práce jmenovat?",
layout: thesis_title_layout,
result: {
cs: "",
en: ""
},
finalize: (result) => {
if(result.cs === "") {
result.cs = "SEM DOPLŇTE ČESKÝ NÁZEV PRÁCE";
}
if(result.en === "") {
result.en = "SEM DOPLŇTE ANGLICKÝ NÁZEV PRÁCE";
}
}
},
author_info: {
title: "Vaše údaje",
layout: author_info_layout,
@@ -118,7 +135,7 @@ const typst_header = `#import "template/template.typ": *
#show: tultemplate2.with(
faculty: "{faculty.name}",
document: "{thesis_type.type}",
title: (cs: "Návod na použití Typst TUL šablony"),
title: (cs: "{thesis_title.cs}", en: "{thesis_title.en}"),
author: "{author_info.name}",
author_pronouns: "{author_info.pronouns}",
<collaborators.has_supervisor: supervisor: "{collaborators.supervisor_name}",