Commit 7625f99d authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

use the helper when provided (must use helper.form_tag = False)

parent 8e18865f
Pipeline #42548 passed with stage
in 33 seconds
......@@ -25,7 +25,7 @@
{% block form %}
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{%if form%}{{ form|crispy }}{%endif%}
{%if form%}{%if form.helper%}{% crispy form %}{%else%}{{ form|crispy }}{%endif%}{%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 float-right'}}">
<button class="{{btn_classes|default:'btn btn-primary'}}" type="submit">{{ submit_text|default:"OK" }}</button>
......
......@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup(
name='django-basetheme-bootstrap',
version='0.2.47',
version='0.2.48',
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