Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
0abd6576
Commit
0abd6576
authored
Dec 28, 2014
by
Paul Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add <hr> and remove btn-cancel to simplify css
parent
0029353c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
lib.html
flask_admin/templates/bootstrap3/admin/lib.html
+11
-10
No files found.
flask_admin/templates/bootstrap3/admin/lib.html
View file @
0abd6576
...
@@ -88,10 +88,10 @@
...
@@ -88,10 +88,10 @@
<div
class=
"{{ kwargs.get('column_class', 'col-md-10') }}"
>
<div
class=
"{{ kwargs.get('column_class', 'col-md-10') }}"
>
{% set _dummy = kwargs.setdefault('class', 'form-control') %}
{% set _dummy = kwargs.setdefault('class', 'form-control') %}
{{ field(**kwargs)|safe }}
{{ field(**kwargs)|safe }}
{% if field.description %}
<p
class=
"help-block"
>
{{ field.description }}
</p>
{% endif %}
</div>
</div>
{% if field.description %}
<span
class=
"help-block"
>
{{ field.description }}
</span>
{% endif %}
{% if direct_error %}
{% if direct_error %}
<ul
{%
if
direct_error
%}
class=
"input-errors"
{%
endif
%}
>
<ul
{%
if
direct_error
%}
class=
"input-errors"
{%
endif
%}
>
{% for e in field.errors if e is string %}
{% for e in field.errors if e is string %}
...
@@ -144,15 +144,16 @@
...
@@ -144,15 +144,16 @@
{% endmacro %}
{% endmacro %}
{% macro render_form_buttons(cancel_url, extra=None) %}
{% macro render_form_buttons(cancel_url, extra=None) %}
<hr>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-offset-2 col-md-10 submit-row"
>
<div
class=
"col-md-offset-2 col-md-10 submit-row"
>
<input
type=
"submit"
class=
"btn btn-primary"
value=
"{{ _gettext('Submit') }}"
/>
<input
type=
"submit"
class=
"btn btn-primary"
value=
"{{ _gettext('Submit') }}"
/>
{% if extra %}
{% if extra %}
{{ extra }}
{{ extra }}
{% endif %}
{% endif %}
{% if cancel_url %}
{% if cancel_url %}
<a
href=
"{{ cancel_url }}"
class=
"btn btn-cancel
"
role=
"button"
>
{{ _gettext('Cancel') }}
</a>
<a
href=
"{{ cancel_url }}"
class=
"btn btn-danger
"
role=
"button"
>
{{ _gettext('Cancel') }}
</a>
{% endif %}
{% endif %}
</div>
</div>
</div>
</div>
{% endmacro %}
{% endmacro %}
...
...
Write
Preview
Markdown
is supported
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