Adding variants and labels to entry, not yet done.
This commit is contained in:
@@ -22,12 +22,12 @@ def question(question, current_value):
|
||||
h("input#modal-question", {"props": {"type": "text", "value": current_value}}, "")])]
|
||||
|
||||
|
||||
def generic_list_editor(title, element_list_getter, add_click_message):
|
||||
content = [h("span.list", {}, title)]
|
||||
def generic_list_editor(title, element_list_getter):
|
||||
content = [h("p", {}, title)]
|
||||
for slabel in element_list_getter():
|
||||
content.append(h("label", {}, [
|
||||
h("input.list-adder-input", {"props": {"type": "text", "value": slabel}}, "")]))
|
||||
content.append(h("button", {"on": {"click": add_click_message}}, "+"))
|
||||
content.append(h("button", {"on": {"click": message.msg(message.AddToGenericList(element_list_getter))}}, "+"))
|
||||
return content
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user