Adding variants and labels to entry, not yet done.

This commit is contained in:
2019-11-18 20:27:11 +01:00
parent a058a50017
commit 4bdb3bfc7f
8 changed files with 68 additions and 19 deletions

View File

@@ -32,10 +32,16 @@ def edit_sense_label(sense):
def edit_example_translation(example):
etl_getter = lambda: example.copy().translations
content = generic_list_editor("Edit example translations", etl_getter, message.msg(message.AddExampleTranslation(example)))
content = generic_list_editor("Edit example translations", etl_getter)
return modal_template(content, "Example Translations", message.EditExampleTranslation(example))
def edit_variants(entry):
vget = lambda: entry.copy().variants
content = generic_list_editor("Variants", vget)
return modal_template(content, "Add or remove variants", message.EditVariants())
def add_sense():
return modal_template(question("Add sense with a label", ""), "Add sense", message.AddSense())