Skip to content
GitLab
Menu
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
42e87b5c
Commit
42e87b5c
authored
Oct 21, 2019
by
Bryan BRANCOTTE
Browse files
Customizable css classes for cancel button
parent
8c05665c
Pipeline
#17337
passed with stage
in 25 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
basetheme_bootstrap/templates/registration/small_form_host.html
View file @
42e87b5c
...
...
@@ -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>
...
...
setup.py
View file @
42e87b5c
...
...
@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup
(
name
=
'django-basetheme-bootstrap'
,
version
=
'0.2.2
5
'
,
version
=
'0.2.2
6
'
,
description
=
'Django Basetheme Bootstrap'
,
long_description
=
readme
,
author
=
'Bryan Brancotte'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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