From 55d923431d45e1388227d45ecd11c01ab8a7a824 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Tue, 16 Feb 2021 13:21:24 +0000 Subject: Add some minor cosmetic changes This commit may serve for future reference as to how some cosmetic changes have been applied to the web. Primarily using bootstrap classes in order to adjust margin or padding, there are mechanisms that allow modifying the class of an underlying html element in WTForms. Bootstrap classes are written directly in html templates for Flask. Also add a Soleta branded footer. --- ogcp/templates/actions/wol.html | 3 ++- ogcp/templates/base.html | 13 +++++++++---- ogcp/templates/scopes.html | 4 ++-- 3 files changed, 13 insertions(+), 7 deletions(-) (limited to 'ogcp/templates') diff --git a/ogcp/templates/actions/wol.html b/ogcp/templates/actions/wol.html index 27bb3d3..61494f9 100644 --- a/ogcp/templates/actions/wol.html +++ b/ogcp/templates/actions/wol.html @@ -6,6 +6,7 @@ {{ wtf.quick_form(form, action=url_for('action_wol'), method='post', - button_map={'submit': 'primary'}) }} + button_map={'submit': 'primary'}, + extra_classes='m-5')}} {% endblock %} diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html index 4304e42..5f07fe7 100644 --- a/ogcp/templates/base.html +++ b/ogcp/templates/base.html @@ -5,7 +5,6 @@ - {% block title %}{% endblock %} - OpenGnsys {% endblock %} @@ -28,8 +27,14 @@ {% endblock %}
{% block content %}{% endblock %}
- + + {% block footer %} + + {% endblock %} diff --git a/ogcp/templates/scopes.html b/ogcp/templates/scopes.html index d810b2a..8eba78c 100644 --- a/ogcp/templates/scopes.html +++ b/ogcp/templates/scopes.html @@ -2,7 +2,7 @@ {% macro print_scopes_tree(scopes) -%} -