Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bryan BRANCOTTE
django-basetheme-bootstrap
Commits
7625f99d
Commit
7625f99d
authored
Dec 01, 2020
by
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
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
basetheme_bootstrap/templates/registration/small_form_host.html
View file @
7625f99d
...
...
@@ -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>
...
...
setup.py
View file @
7625f99d
...
...
@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup
(
name
=
'django-basetheme-bootstrap'
,
version
=
'0.2.4
7
'
,
version
=
'0.2.4
8
'
,
description
=
'Django Basetheme Bootstrap'
,
long_description
=
readme
,
author
=
'Bryan Brancotte'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment