|
|
|
@ -29,10 +29,12 @@ def edit_sense_label(sense):
|
|
|
|
|
return modal_template(content, "Translation", message.EditSenseLabel(sense))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def edit_example_translation(example):
|
|
|
|
|
def edit_example(example):
|
|
|
|
|
content = question("Edit example", example.text)
|
|
|
|
|
etl_getter = lambda: example.copy().translations
|
|
|
|
|
content = generic_list_editor("Edit example translations", etl_getter)
|
|
|
|
|
return modal_template(content, "Example Translations", message.EditExampleTranslation(example))
|
|
|
|
|
content.extend(generic_list_editor("Edit example translations", etl_getter))
|
|
|
|
|
|
|
|
|
|
return modal_template(content, "Edit Example", message.EditExampleTranslation(example))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def edit_variants(entry):
|
|
|
|
@ -54,10 +56,6 @@ def edit_comment(comment):
|
|
|
|
|
return modal_template(question("Edit comment", comment), "Comment", message.EditComment())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def edit_example(example):
|
|
|
|
|
return modal_template(question("Edit exmample", example.example), "Example", message.EditExample(example))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def do_chosen_examples(example_list, entry):
|
|
|
|
|
options = [h("p", {}, "Choose sense for examples")]
|
|
|
|
|
for idx, sense in enumerate(entry.senses):
|
|
|
|
|