From 42e87b5cad07a7af397d73f3014b777f618cac9c Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Mon, 21 Oct 2019 14:17:23 +0200 Subject: [PATCH] Customizable css classes for cancel button --- basetheme_bootstrap/templates/registration/small_form_host.html | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basetheme_bootstrap/templates/registration/small_form_host.html b/basetheme_bootstrap/templates/registration/small_form_host.html index 3ecccc3..73a94b1 100644 --- a/basetheme_bootstrap/templates/registration/small_form_host.html +++ b/basetheme_bootstrap/templates/registration/small_form_host.html @@ -22,7 +22,7 @@ <form method="post" enctype="multipart/form-data"> {% csrf_token %} {%if form%}{{ form|crispy }}{%endif%} - {%if cancel_url%}<a role="button" class="btn btn-primary" href="{{cancel_url}}">{{ cancel_text|default:"Cancel" }}</a>{%endif%} + {%if cancel_url%}<a role="button" class="{{btn_cancel_classes|default:'btn btn-primary'}}" href="{{cancel_url}}">{{ cancel_text|default:"Cancel" }}</a>{%endif%} <div class="form-class {{btn_container_classes|default:'pull-right'}}"> <button class="{{btn_classes|default:'btn btn-primary'}}" type="submit">{{ submit_text|default:"OK" }}</button> </div> diff --git a/setup.py b/setup.py index 138243b..a430b6c 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ readme = open('README.rst').read() setup( name='django-basetheme-bootstrap', - version='0.2.25', + version='0.2.26', description='Django Basetheme Bootstrap', long_description=readme, author='Bryan Brancotte', -- GitLab