From 4c42ccc7d78a191b97ef93a640bc13404ab16e92 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 6 Sep 2019 17:45:59 -0500 Subject: [PATCH] Fix various templates for generating reports, per Buefy also various other tweaks which came up along the way... --- tailbone/static/themes/falafel/css/layout.css | 7 ++- tailbone/templates/deform/select.pt | 1 - tailbone/templates/deform/select_plain.pt | 3 +- tailbone/templates/reports/choose.mako | 54 +++++++++++++++++-- tailbone/templates/reports/generate.mako | 10 ++++ tailbone/templates/themes/falafel/base.mako | 38 ++++++++----- tailbone/views/reports.py | 15 ++++-- 7 files changed, 102 insertions(+), 26 deletions(-) diff --git a/tailbone/static/themes/falafel/css/layout.css b/tailbone/static/themes/falafel/css/layout.css index 5d1264ad..b22b6f97 100644 --- a/tailbone/static/themes/falafel/css/layout.css +++ b/tailbone/static/themes/falafel/css/layout.css @@ -55,8 +55,13 @@ header .level .theme-picker { display: inline-flex; } +#content-title { + padding: 0.3rem; +} + #content-title h1 { - font-size: 2em; + font-size: 2rem; + margin-left: 1rem; } /****************************** diff --git a/tailbone/templates/deform/select.pt b/tailbone/templates/deform/select.pt index 8f8ae171..8bdc0c7d 100644 --- a/tailbone/templates/deform/select.pt +++ b/tailbone/templates/deform/select.pt @@ -66,7 +66,6 @@ placeholder '(please choose)'; class string: form-control ${css_class or ''}; :multiple str(multiple).lower(); - size size; style style; v-model vmodel; @input input_handler;"> diff --git a/tailbone/templates/deform/select_plain.pt b/tailbone/templates/deform/select_plain.pt index 60c283de..3ce4e1af 100644 --- a/tailbone/templates/deform/select_plain.pt +++ b/tailbone/templates/deform/select_plain.pt @@ -17,7 +17,8 @@ class string: form-control ${css_class or ''}; multiple multiple; size size; - style style;"> + style style; + attributes|field.widget.attributes|{};"> diff --git a/tailbone/templates/reports/choose.mako b/tailbone/templates/reports/choose.mako index 35e6d90e..f3caf20c 100644 --- a/tailbone/templates/reports/choose.mako +++ b/tailbone/templates/reports/choose.mako @@ -1,11 +1,13 @@ ## -*- coding: utf-8; -*- -<%inherit file="/page.mako" /> +<%inherit file="/form.mako" /> <%def name="title()">${index_title} <%def name="content_title()"> <%def name="extra_javascript()"> + ${parent.extra_javascript()} + % if not use_buefy: + % endif <%def name="extra_styles()"> + ${parent.extra_styles()}