Commit 42e87b5c authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE

Customizable css classes for cancel button

parent 8c05665c
Pipeline #17337 passed with stage
in 25 seconds
......@@ -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>
......
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment