From 149dfdcbfd31bae79e9872e6f465d127d70ad32b Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Wed, 3 Mar 2021 13:05:19 +0100 Subject: Make partition forms inline in setup/ quick_form macro from Flask-Bootstrap creates vertical forms by default, this rendered each partition spanning too much vertical space. Use form_type='inline' from quick_form macro to compact the whole setup form. --- ogcp/templates/actions/setup.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ogcp/templates') diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html index c7c4345..cc26804 100644 --- a/ogcp/templates/actions/setup.html +++ b/ogcp/templates/actions/setup.html @@ -4,10 +4,14 @@ {% block content %} {% for form in forms %} + {{ wtf.quick_form(form, method='post', + form_type='inline', + extra_classes='m-2 p-2', button_map={'modify': 'primary', 'delete': 'danger'}) }} + {% endfor %} {% endblock %} -- cgit v1.2.3-18-g5258