From 7d275fe17607c1403e6ab5a2e9812ea61d243d8f Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Fri, 20 Mar 2020 18:34:19 +0100 Subject: [PATCH] kontrastivno type in slovenian and translation explanation now edited in textarea --- src/message/common_accessors.py | 2 +- src/view/modals.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message/common_accessors.py b/src/message/common_accessors.py index 200c186..67259af 100644 --- a/src/message/common_accessors.py +++ b/src/message/common_accessors.py @@ -30,6 +30,6 @@ def label_list_getter(): kontrastivno = document.getElementById("kontrastivno-input").checked; if kontrastivno: - result.append(("relation", "kontrastivno")) + result.append(("razmerje", "kontrastivno")) return result diff --git a/src/view/modals.py b/src/view/modals.py index a52cfbf..e50f9f4 100644 --- a/src/view/modals.py +++ b/src/view/modals.py @@ -22,7 +22,7 @@ def edit_translation(translation, parent, cluster_idx, num_clusters, cls): split_line2("Prevedek:", h("textarea#etv", {"props": {"value": translation.translation}}, "")), split_line2("Razlaga:", - h("input#ete", {"props": {"type": "text", "value": translation.explanation}}, ""))]) + h("textarea#ete", {"props": {"value": translation.explanation}}, ""))]) # cluster number options = [h("option", {"props": {"selected": idx == cluster_idx}}, str(idx + 1)) for idx in range(num_clusters + 1)]