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
ea921e02
Commit
ea921e02
authored
Aug 09, 2020
by
Titanium Hocker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: modal in FileAdmin
parent
52662eca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
list.html
flask_admin/templates/bootstrap4/admin/file/list.html
+2
-1
form.html
flask_admin/templates/bootstrap4/admin/file/modals/form.html
+2
-2
No files found.
flask_admin/templates/bootstrap4/admin/file/list.html
View file @
ea921e02
...
...
@@ -143,7 +143,7 @@
{% block toolbar %}
<div
class=
"btn-toolbar"
>
{% if admin_view.can_upload %}
<div
class=
"
mx-1
"
>
<div
class=
"
btn-group
"
>
{%- if admin_view.upload_modal -%}
{{ lib.add_modal_button(url=get_dir_url('.upload', path=dir_path, modal=True),
btn_class="btn btn-secondary",
...
...
@@ -187,4 +187,5 @@
{{ actionslib.script(_gettext('Please select at least one file.'),
actions,
actions_confirmation) }}
<script
src=
"{{ admin_static.url(filename='admin/js/bs4_modal.js', v='1.0.0') }}"
></script>
{% endblock %}
flask_admin/templates/bootstrap4/admin/file/modals/form.html
View file @
ea921e02
...
...
@@ -4,8 +4,8 @@
{% block body %}
{# content added to modal-content #}
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
>
×
</span></button>
{% block header %}
<h3>
{{ header_text }}
</h3>
{% endblock %}
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
>
×
</span></button>
</div>
<div
class=
"modal-body"
>
{% block fa_form %}
...
...
@@ -15,5 +15,5 @@
{% endblock %}
{% block tail %}
<script
src=
"{{ admin_static.url(filename='admin/js/bs
3
_modal.js', v='1.0.0') }}"
></script>
<script
src=
"{{ admin_static.url(filename='admin/js/bs
4
_modal.js', v='1.0.0') }}"
></script>
{% 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