From e39c4cef5dc46f53c0a69a324fa219d210276cc7 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Wed, 29 Mar 2023 09:21:01 +0200 Subject: [PATCH] allows extra css --- .../templates/registration/small_form_host.html | 10 ++++++++++ setup.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/basetheme_bootstrap/templates/registration/small_form_host.html b/basetheme_bootstrap/templates/registration/small_form_host.html index fb5df9f..f682ac7 100644 --- a/basetheme_bootstrap/templates/registration/small_form_host.html +++ b/basetheme_bootstrap/templates/registration/small_form_host.html @@ -13,6 +13,16 @@ {% endfor%} {% endblock %} +{% block extra_css %} +{{block.super}} +{% if extra_css_file %} +<link rel="stylesheet" href="{% sstatic extra_css_file %}"/> +{% endif%} +{% for extra_css_file in extra_css_files %} +<link rel="stylesheet" href="{% sstatic extra_css_file %}"/> +{% endfor%} +{% endblock %} + {% block title %}{{ title }}{% endblock %} {% block page_title %}{{ page_title|default:title }}{% endblock %} diff --git a/setup.py b/setup.py index 7a608e8..50745e9 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ readme = open('README.rst').read() setup( name='django-basetheme-bootstrap', - version='1.2', + version='1.3', description='Django Basetheme Bootstrap', long_description=readme, author='Bryan Brancotte', -- GitLab