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
a252b9cf
Commit
a252b9cf
authored
Aug 08, 2020
by
Michael Bukachi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Correct export tab alignment
parent
8ec3b8ad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
app.py
examples/bootstrap4/app.py
+2
-0
layout.html
flask_admin/templates/bootstrap4/admin/model/layout.html
+1
-1
No files found.
examples/bootstrap4/app.py
View file @
a252b9cf
...
...
@@ -48,6 +48,8 @@ class CustomView(ModelView):
class
UserAdmin
(
CustomView
):
column_searchable_list
=
(
'name'
,)
column_filters
=
(
'name'
,
'email'
)
can_export
=
True
export_types
=
[
'csv'
,
'xlsx'
]
# Flask views
...
...
flask_admin/templates/bootstrap4/admin/model/layout.html
View file @
a252b9cf
...
...
@@ -22,7 +22,7 @@
</li>
{% else %}
<li>
<a
href=
"{{ get_url('.export', export_type=admin_view.export_types[0], **request.args) }}"
<a
class=
"nav-link"
href=
"{{ get_url('.export', export_type=admin_view.export_types[0], **request.args) }}"
title=
"{{ _gettext('Export') }}"
>
{{ _gettext('Export') }}
</a>
</li>
{% endif %}
...
...
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