cql query option

This commit is contained in:
2020-09-15 08:38:44 +02:00
parent 37980d56e5
commit 300f90822c
3 changed files with 36 additions and 8 deletions

View File

@@ -181,6 +181,10 @@ def ske_list(search_term, data, page_num, senses, ske_kinds):
"type": "number",
"min": 1,
"step": 1}}, "")]),
h("label.fourth.ske-mid-input", {}, [
h("select#ske-pos-query", {}, [h("option", {}, "{}".format(pos)) for pos in ["simple", "samostalnik", "glagol", "pridevnik", "prislov", "zaimek"]])
]),
h("span.fourth.button.ske-right-button",
{"on": {"click": message.msg(message.SearchInSkeModal)}}, "Isci")]),
h("div.ske-list",

View File

@@ -58,7 +58,7 @@ class View:
def view_ske_button(model):
return h(
"span#ske-button.button.toggle",
{ "on": {"click": msg(ShowSkeModal, 1, model.entry.headword, 0)} },
{ "on": {"click": msg(ShowSkeModal, 1, model.entry.headword, 0, "simple")} },
h("svg#ske-img", {
"attrs": {
"xmlns": "http://www.w3.org/2000/svg",