explanationList
This commit is contained in:
@@ -19,10 +19,9 @@ def edit_translation(translation, parent, cluster_idx, num_clusters, cls):
|
||||
|
||||
# first line: transalation itself
|
||||
content.extend([
|
||||
split_line2("Prevedek:",
|
||||
h("textarea#etv", {"props": {"value": translation.translation}}, "")),
|
||||
split_line2("Razlaga:",
|
||||
h("textarea#ete", {"props": {"value": translation.explanation}}, ""))])
|
||||
split_line2("Prevedek:", h("textarea#etv", {"props": {"value": translation.translation}}, ""))])
|
||||
|
||||
content.extend(generic_list_editor("Razlage:", lambda: translation.explanationList))
|
||||
|
||||
# cluster number
|
||||
options = [h("option", {"props": {"selected": idx == cluster_idx}}, str(idx + 1)) for idx in range(num_clusters + 1)]
|
||||
|
||||
Reference in New Issue
Block a user