Added hints wherever text fields are optional

This commit is contained in:
2025-10-06 19:45:18 +02:00
parent 7295dfb882
commit 50f2c9a647
2 changed files with 13 additions and 0 deletions

View File

@@ -184,6 +184,12 @@ button:disabled:hover, .button:disabled:hover {
justify-content: center; justify-content: center;
} }
.hint {
color: gray;
font-style: italic;
font-size: 16px;
}
.slide-animation { .slide-animation {
position: relative; position: relative;

7
ui.js
View File

@@ -64,6 +64,9 @@ async function author_info_layout(content, result) {
.finish(); .finish();
content.appendChild(author_name); content.appendChild(author_name);
content.appendChild(new ElementBuilder("div.hint")
.text("Pokud si zatím nejste jisti, můžete ponechat toto pole prázdné.")
.finish());
content.appendChild(new ElementBuilder("div.vertical-spacer").finish()); content.appendChild(new ElementBuilder("div.vertical-spacer").finish());
content.appendChild(new ElementBuilder("div") content.appendChild(new ElementBuilder("div")
.text("Způsob sebeoslovení") .text("Způsob sebeoslovení")
@@ -123,6 +126,10 @@ async function collaborators_layout(content, result) {
.text("Práce má konzultanta")) .text("Práce má konzultanta"))
.finish()); .finish());
content.appendChild(consultant_name); content.appendChild(consultant_name);
content.appendChild(new ElementBuilder("div.vertical-spacer").finish());
content.appendChild(new ElementBuilder("div.hint")
.text("Pokud si zatím nejste jisti jmény svých vedoucích, můžete tato pole ponechat prázdná.")
.finish());
} }
async function run() { async function run() {