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
66e07292
Unverified
Commit
66e07292
authored
Jun 28, 2019
by
Petrus Janse van Rensburg
Committed by
GitHub
Jun 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1870 from waylonwang/bootstrap4
display modal form in the bootstrap4 theme
parents
91a60fbb
61f6588e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
bs4_modal.js
flask_admin/static/admin/js/bs4_modal.js
+4
-0
base.html
flask_admin/templates/bootstrap4/admin/base.html
+1
-1
list.html
flask_admin/templates/bootstrap4/admin/model/list.html
+1
-0
No files found.
flask_admin/static/admin/js/bs4_modal.js
0 → 100644
View file @
66e07292
// fixes "content does not load remote modal on clicked modal button"
$
(
'body'
).
on
(
'click.modal.data-api'
,
'[data-toggle="modal"]'
,
function
()
{
$
(
$
(
this
).
data
(
"target"
)
+
' .modal-content'
).
load
(
$
(
this
).
attr
(
'href'
));
});
flask_admin/templates/bootstrap4/admin/base.html
View file @
66e07292
...
...
@@ -67,7 +67,7 @@
{% endblock %}
{% block tail_js %}
<script
src=
"{{ admin_static.url(filename='vendor/jquery
-3.3.1.slim
.min.js', v='2.1.4') }}"
type=
"text/javascript"
></script>
<script
src=
"{{ admin_static.url(filename='vendor/jquery.min.js', v='2.1.4') }}"
type=
"text/javascript"
></script>
<script
src=
"{{ admin_static.url(filename='bootstrap/bootstrap4/popper.min.js') }}"
type=
"text/javascript"
></script>
<script
src=
"{{ admin_static.url(filename='bootstrap/bootstrap4/bootstrap.min.js', v='4.1.2') }}"
type=
"text/javascript"
></script>
<script
src=
"{{ admin_static.url(filename='vendor/moment.min.js', v='2.9.0') }}"
type=
"text/javascript"
></script>
...
...
flask_admin/templates/bootstrap4/admin/model/list.html
View file @
66e07292
...
...
@@ -180,6 +180,7 @@
{% block tail %}
{{ super() }}
<script
src=
"{{ admin_static.url(filename='admin/js/bs4_modal.js', v='1.0.0') }}"
></script>
<script
src=
"{{ admin_static.url(filename='admin/js/filters.js', v='1.0.0') }}"
></script>
{{ lib.form_js() }}
...
...
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