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
730aca07
Commit
730aca07
authored
Jun 14, 2015
by
Petrus J.v.Rensburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 'GeoAlchemy' example to use Bootstrap 3.
parent
8c4b988d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
app.py
examples/geo-alchemy/app.py
+1
-1
index.html
examples/geo-alchemy/templates/admin/index.html
+13
-11
No files found.
examples/geo-alchemy/app.py
View file @
730aca07
...
...
@@ -62,7 +62,7 @@ def index():
return
'<a href="/admin/">Click me to get to Admin!</a>'
# Create admin
admin
=
admin
.
Admin
(
app
,
name
=
'Example: GeoAlchemy'
)
admin
=
admin
.
Admin
(
app
,
name
=
'Example: GeoAlchemy'
,
template_mode
=
'bootstrap3'
)
# Add views
admin
.
add_view
(
ModelView
(
Point
,
db
.
session
,
category
=
'Points'
))
...
...
examples/geo-alchemy/templates/admin/index.html
View file @
730aca07
{% extends 'admin/master.html' %}
{% block body %}
{{ super() }}
<div
class=
"row"
>
<div
class=
"span10 offset1"
>
<h1>
Flask-Admin example
</h1>
<p
class=
"lead"
>
GeoAlchemy model view.
</p>
<p>
This example shows how to manage spatial information in a GIS database.
</p>
<a
class=
"btn btn-primary"
href=
"/"
><i
class=
"icon-arrow-left icon-white"
></i>
Back
</a>
</div>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-sm-10 col-sm-offset-1"
>
<h1>
Flask-Admin example
</h1>
<p
class=
"lead"
>
GeoAlchemy model view.
</p>
<p>
This example shows how to manage spatial information in a GIS database.
</p>
<a
class=
"btn btn-primary"
href=
"/"
><i
class=
"glyphicon glyphicon-chevron-left"
></i>
Back
</a>
</div>
</div>
</div>
{% endblock body %}
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