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
0ac14567
Commit
0ac14567
authored
May 07, 2014
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bootstrap 3 adjustments.
parent
c8a4cc93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
admin.css
flask_admin/static/admin/css/bootstrap3/admin.css
+1
-1
layout.html
flask_admin/templates/bootstrap3/admin/layout.html
+3
-2
lib.html
flask_admin/templates/bootstrap3/admin/lib.html
+4
-4
No files found.
flask_admin/static/admin/css/bootstrap3/admin.css
View file @
0ac14567
...
...
@@ -129,7 +129,7 @@ table.flters tr td:nth-child(2){
}
.submit-row
{
margin-top
:
3
5px
;
margin-top
:
5px
;
}
td
>
span
.glyphicon
{
...
...
flask_admin/templates/bootstrap3/admin/layout.html
View file @
0ac14567
...
...
@@ -39,11 +39,12 @@
{% if messages %}
{% for category, m in messages %}
{% if category %}
<div
class=
"alert alert-{{ category }} alert-dismissable"
>
{% set mapping = {'message': 'info', 'error': 'danger'} %}
<div
class=
"alert alert-{{ mapping.get(category, 'warning') }} alert-dismissable"
>
{% else %}
<div
class=
"alert alert-dismissable"
>
{% endif %}
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-hidden=
"true"
>
×
</button>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-hidden=
"true"
>
×
</button>
{{ m }}
</div>
{% endfor %}
...
...
flask_admin/templates/bootstrap3/admin/lib.html
View file @
0ac14567
...
...
@@ -132,8 +132,8 @@
{% endif %}
{% endmacro %}
{% macro form_tag(form=None) %}
<form
action=
""
method=
"POST"
role=
"form"
class=
"form-horizontal"
enctype=
"multipart/form-data"
>
{% macro form_tag(form=None
, action=None
) %}
<form
action=
"
{{ action or '' }}
"
method=
"POST"
role=
"form"
class=
"form-horizontal"
enctype=
"multipart/form-data"
>
{{ caller() }}
</form>
{% endmacro %}
...
...
@@ -152,8 +152,8 @@
</div>
{% endmacro %}
{% macro render_form(form, cancel_url, extra=None, form_opts=None) -%}
{% call form_tag() %}
{% macro render_form(form, cancel_url, extra=None, form_opts=None
, action=None
) -%}
{% call form_tag(
action=action
) %}
{{ render_form_fields(form, form_opts=form_opts) }}
{{ render_form_buttons(cancel_url, extra) }}
{% endcall %}
...
...
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