From 76f81954f09e1988c608a2ef40133b60a1cf60d0 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Mon, 5 Aug 2019 12:32:26 +0200 Subject: [PATCH] Can define and override css class of full_width_form_title --- .../templates/registration/small_form_host.html | 4 +--- setup.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/basetheme_bootstrap/templates/registration/small_form_host.html b/basetheme_bootstrap/templates/registration/small_form_host.html index 0057ebc..cde7df5 100644 --- a/basetheme_bootstrap/templates/registration/small_form_host.html +++ b/basetheme_bootstrap/templates/registration/small_form_host.html @@ -8,9 +8,7 @@ {% block content %} {%if full_width_form_title%} -<div class="col-12 col-xs-12"> -<h2>{{full_width_form_title}}</h2> -</div> +<div class="col-12 col-xs-12 {{full_width_form_title_classes|default:'h2'}}">{{full_width_form_title}}</div> {%endif%} <div class="col-12 col-xs-12 {%if not medium_width%}col-sm-10 col-sm-offset-1 offset-sm-1 col-md-8 col-md-offset-2 offset-md-2 col-lg-6 col-lg-offset-3 offset-lg-3 col-xl-4 col-xl-offset-4 offset-xl-4 col-xxl-2 col-xxl-offset-5{%endif%}{%if medium_width%}col-md-10 col-md-offset-1 offset-md-1 col-lg-8 col-lg-offset-2 offset-lg-2 col-xl-6 col-xl-offset-3 offset-xl-3 col-xxl-4 col-xxl-offset-4 col-xxxl-2 col-xxxl-offset-5{%endif%}"> {%if form_title%}<h2>{{form_title}}</h2>{%endif%} diff --git a/setup.py b/setup.py index e3f70b9..dbebc88 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ readme = open('README.rst').read() setup( name='django-basetheme-bootstrap', - version='0.1.4', + version='0.1.5', description='Django Basetheme Bootstrap', long_description=readme, author='Bryan Brancotte', -- GitLab