From a619df8e668825eede3ace3b84a6eab5c25eb855 Mon Sep 17 00:00:00 2001 From: Edward Betts <edward@4angle.com> Date: Thu, 31 May 2018 17:00:08 +0100 Subject: [PATCH] Allow override of top-level container class. --- sourcing/templates/base.html | 3 +-- sourcing/templates/form/simple.html | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sourcing/templates/base.html b/sourcing/templates/base.html index ec37206..c82a101 100644 --- a/sourcing/templates/base.html +++ b/sourcing/templates/base.html @@ -18,7 +18,7 @@ {% include "navbar.html" %} {% block dialogs %} {% endblock %} -<div class="container-fluid mt-3"> +<div class="{% block container_class %}container-fluid{% endblock %} mt-3"> {% include "flash_msg.html" %} {% block content %} @@ -29,7 +29,6 @@ </div> <script src="{{ url_for('static', filename='jquery/jquery.js') }}"></script> -<script src="https://npmcdn.com/tether@1.2.4/dist/js/tether.min.js"></script> <script src="{{ url_for('static', filename='bootstrap4/js/bootstrap.js') }}"></script> {% block scripts %} diff --git a/sourcing/templates/form/simple.html b/sourcing/templates/form/simple.html index 9b168cd..c0c7470 100644 --- a/sourcing/templates/form/simple.html +++ b/sourcing/templates/form/simple.html @@ -1,5 +1,7 @@ {% extends "base.html" %} +{% block container_class %}container{% endblock %} + {% block content %} <h1>{{ self.title() }}</h1> {% include "form/main.html" %}