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
612e951b
Commit
612e951b
authored
Aug 09, 2020
by
Titanium Hocker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: button toolbar in FileAdmin
parent
b8a6615e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
list.html
flask_admin/templates/bootstrap4/admin/file/list.html
+8
-8
No files found.
flask_admin/templates/bootstrap4/admin/file/list.html
View file @
612e951b
...
@@ -143,30 +143,30 @@
...
@@ -143,30 +143,30 @@
{% block toolbar %}
{% block toolbar %}
<div
class=
"btn-toolbar"
>
<div
class=
"btn-toolbar"
>
{% if admin_view.can_upload %}
{% if admin_view.can_upload %}
<div
class=
"
btn-group
"
>
<div
class=
"
mx-1
"
>
{%- if admin_view.upload_modal -%}
{%- if admin_view.upload_modal -%}
{{ lib.add_modal_button(url=get_dir_url('.upload', path=dir_path, modal=True),
{{ lib.add_modal_button(url=get_dir_url('.upload', path=dir_path, modal=True),
btn_class="btn btn-
default btn-large
",
btn_class="btn btn-
secondary
",
content=_gettext('Upload File')) }}
content=_gettext('Upload File')) }}
{% else %}
{% else %}
<a
class=
"btn btn-
default btn-large
"
href=
"{{ get_dir_url('.upload', path=dir_path) }}"
>
{{ _gettext('Upload File') }}
</a>
<a
class=
"btn btn-
secondary
"
href=
"{{ get_dir_url('.upload', path=dir_path) }}"
>
{{ _gettext('Upload File') }}
</a>
{%- endif -%}
{%- endif -%}
</div>
</div>
{% endif %}
{% endif %}
{% if admin_view.can_mkdir %}
{% if admin_view.can_mkdir %}
<div
class=
"
btn-group
"
>
<div
class=
"
mx-1
"
>
{%- if admin_view.mkdir_modal -%}
{%- if admin_view.mkdir_modal -%}
{{ lib.add_modal_button(url=get_dir_url('.mkdir', path=dir_path, modal=True),
{{ lib.add_modal_button(url=get_dir_url('.mkdir', path=dir_path, modal=True),
btn_class="btn btn-
default btn-large
",
btn_class="btn btn-
secondary
",
content=_gettext('Create Directory')) }}
content=_gettext('Create Directory')) }}
{% else %}
{% else %}
<a
class=
"btn btn-
default btn-large
"
href=
"{{ get_dir_url('.mkdir', path=dir_path) }}"
>
{{ _gettext('Create Directory') }}
</a>
<a
class=
"btn btn-
secondary
"
href=
"{{ get_dir_url('.mkdir', path=dir_path) }}"
>
{{ _gettext('Create Directory') }}
</a>
{%- endif -%}
{%- endif -%}
</div>
</div>
{% endif %}
{% endif %}
{% if actions %}
{% if actions %}
<div
class=
"
btn-group
"
>
<div
class=
"
mx-1
"
>
{{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-
default btn-large
') }}
{{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-
secondary
') }}
</div>
</div>
{% endif %}
{% endif %}
</div>
</div>
...
...
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