kontrastivno type in slovenian and translation explanation now edited in textarea

pull/1/head
Ozbolt Menegatti 4 years ago
parent efdbd88434
commit 7d275fe176

@ -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

@ -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)]

Loading…
Cancel
Save