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
5ad16b1e
Commit
5ad16b1e
authored
Nov 28, 2013
by
Davide Silvestri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed examples/layout for bootstrap v3
parent
129e9a28
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
21 deletions
+23
-21
layout.css
examples/layout/static/layout.css
+10
-7
index.html
examples/layout/templates/admin/index.html
+2
-2
layout.html
examples/layout/templates/layout.html
+11
-12
No files found.
examples/layout/static/layout.css
View file @
5ad16b1e
...
...
@@ -5,16 +5,14 @@ body {
#content
{
background
:
white
;
border
:
1px
solid
#CCC
;
padding
:
12px
;
overflow
:
scroll
;
padding
:
5px
20px
30px
35px
;
}
#brand
{
float
:
left
;
font-weight
:
300
;
margin
:
0
;
html
,
body
,
.container
,
.row
,
.col-md-2
,
.col-md-10
,
#content
{
height
:
100%
;
}
.search-form
{
margin
:
0
5px
;
}
...
...
@@ -30,7 +28,8 @@ body {
.btn-menu
a
,
.btn-menu
input
{
padding
:
7px
16px
!important
;
border-radius
:
0
!important
;
border-radius
:
1px
!important
;
border-color
:
#ccc
;
}
.btn
,
textarea
,
input
[
type
],
button
,
.model-list
{
...
...
@@ -47,4 +46,8 @@ body {
.select2-container
.select2-choice
{
border-radius
:
0
;
}
a
.dropdown-toggle
b
.caret
{
margin-left
:
5px
;
}
\ No newline at end of file
examples/layout/templates/admin/index.html
View file @
5ad16b1e
{% extends 'admin/master.html' %}
{% block body %}
{{ super() }}
<div
class=
"row
-fluid
"
>
<div
class=
"row"
>
<h1>
Flask-Admin example
</h1>
<p
class=
"lead"
>
Customize the layout
...
...
@@ -14,4 +14,4 @@
</p>
<a
class=
"btn btn-primary"
href=
"/"
><i
class=
"icon-arrow-left icon-white"
></i>
Back
</a>
</div>
{% endblock body %}
\ No newline at end of file
{% endblock body %}
examples/layout/templates/layout.html
View file @
5ad16b1e
...
...
@@ -9,22 +9,21 @@
{% block page_body %}
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"
span2
"
>
<div
class=
"
col-md-2"
role=
"navigation
"
>
<ul
class=
"nav nav-pills nav-stacked"
>
{{ layout.menu() }}
{{ layout.menu_links() }}
{{ layout.menu() }}
{{ layout.menu_links() }}
</ul>
</div>
<div
class=
"span10"
>
<div
id=
"content"
>
{% block brand %}
<h2
id=
"brand"
>
{{ admin_view.name|capitalize }}
</h2>
<div
class=
"clearfix"
></div>
{% endblock %}
{{ layout.messages() }}
{% block body %}{% endblock %}
<div
class=
"col-md-10"
>
<div
id=
"content"
class=
"row"
>
{% block brand %}
<h2
id=
"brand"
>
{{ admin_view.name|capitalize }}
</h2>
{% endblock %}
{{ layout.messages() }}
{% block body %}{% endblock %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}
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