kontrastivno type in slovenian and translation explanation now edited in textarea

This commit is contained in:
Ozbolt Menegatti 2020-03-20 18:34:19 +01:00
parent efdbd88434
commit 7d275fe176
2 changed files with 2 additions and 2 deletions

View File

@ -30,6 +30,6 @@ def label_list_getter():
kontrastivno = document.getElementById("kontrastivno-input").checked; kontrastivno = document.getElementById("kontrastivno-input").checked;
if kontrastivno: if kontrastivno:
result.append(("relation", "kontrastivno")) result.append(("razmerje", "kontrastivno"))
return result return result

View File

@ -22,7 +22,7 @@ def edit_translation(translation, parent, cluster_idx, num_clusters, cls):
split_line2("Prevedek:", split_line2("Prevedek:",
h("textarea#etv", {"props": {"value": translation.translation}}, "")), h("textarea#etv", {"props": {"value": translation.translation}}, "")),
split_line2("Razlaga:", split_line2("Razlaga:",
h("input#ete", {"props": {"type": "text", "value": translation.explanation}}, ""))]) h("textarea#ete", {"props": {"value": translation.explanation}}, ""))])
# cluster number # cluster number
options = [h("option", {"props": {"selected": idx == cluster_idx}}, str(idx + 1)) for idx in range(num_clusters + 1)] options = [h("option", {"props": {"selected": idx == cluster_idx}}, str(idx + 1)) for idx in range(num_clusters + 1)]