upsy daisys

This commit is contained in:
matic_t
2020-07-16 03:46:48 -07:00
parent b010414bfe
commit 9c007f6dd6
4 changed files with 9 additions and 6 deletions

View File

@@ -55,12 +55,13 @@ def homonymy_editor(title, current_labels):
content = [h("p", {}, title)]
for i, feature in enumerate(current_labels()):
name = [h("div")]
value = [h("div")]
name = []
value = []
name.append(h("label", {"attrs": {"for": i}}, "Name:"))
name.append(h("input.name-input", {"props": {"type": "text", "value": feature["name"], "id": i}}, ""))
value.append(h("label", {"attrs": {"for": i + "-value"}}, "Value:"))
value.append(h("input.value-input", {"props": {"type": "text", "value": feature["value"], "id": i + "-value"}}, ""))
content.append(split_line2(name, value))
content.append(h("button", {"on": {"click": message.msg(message.AddToGenericList, current_labels)}}, "+"))