Adding variants and labels to entry, not yet done.
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user