From 82ab6ce460319f86d0a6c34eb8677d1f9f2b1767 Mon Sep 17 00:00:00 2001 From: Johannes Englisch Date: Fri, 3 Mar 2023 14:15:51 +0100 Subject: [PATCH 1/2] add button for feature combinations --- grambank/templates/parameter/detail_html.mako | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/grambank/templates/parameter/detail_html.mako b/grambank/templates/parameter/detail_html.mako index 73eb512..f9cbdcc 100644 --- a/grambank/templates/parameter/detail_html.mako +++ b/grambank/templates/parameter/detail_html.mako @@ -1,5 +1,7 @@ <%inherit file="../${context.get('request').registry.settings.get('clld.app_template', 'app.mako')}"/> <%namespace name="util" file="../util.mako"/> +<% from clld.db.meta import DBSession %> +<% from grambank import models %> <%! active_menu_item = "parameters" %> <%block name="title">Feature ${ctx.id}: ${ctx.name} @@ -59,6 +61,25 @@ ${u.process_markdown(ctx.description, req)|n}
+
+

+ You may combine this variable with a different variable by selecting on in the list below + and clicking "Submit". +

+
+ + + +
+
+

Map From e2a45df8f12903d6a27688d5abaf6ec55fb0eb95 Mon Sep 17 00:00:00 2001 From: Johannes Englisch Date: Mon, 6 Mar 2023 13:01:54 +0100 Subject: [PATCH 2/2] more idiomatic database access --- grambank/templates/parameter/detail_html.mako | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/grambank/templates/parameter/detail_html.mako b/grambank/templates/parameter/detail_html.mako index f9cbdcc..65eee10 100644 --- a/grambank/templates/parameter/detail_html.mako +++ b/grambank/templates/parameter/detail_html.mako @@ -1,6 +1,5 @@ <%inherit file="../${context.get('request').registry.settings.get('clld.app_template', 'app.mako')}"/> <%namespace name="util" file="../util.mako"/> -<% from clld.db.meta import DBSession %> <% from grambank import models %> <%! active_menu_item = "parameters" %> @@ -72,7 +71,7 @@ ${u.process_markdown(ctx.description, req)|n}