Commit ea921e02 authored by Titanium Hocker's avatar Titanium Hocker

Fix: modal in FileAdmin

parent 52662eca
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
{% block toolbar %} {% block toolbar %}
<div class="btn-toolbar"> <div class="btn-toolbar">
{% if admin_view.can_upload %} {% if admin_view.can_upload %}
<div class="mx-1"> <div class="btn-group">
{%- 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-secondary", btn_class="btn btn-secondary",
...@@ -187,4 +187,5 @@ ...@@ -187,4 +187,5 @@
{{ actionslib.script(_gettext('Please select at least one file.'), {{ actionslib.script(_gettext('Please select at least one file.'),
actions, actions,
actions_confirmation) }} actions_confirmation) }}
<script src="{{ admin_static.url(filename='admin/js/bs4_modal.js', v='1.0.0') }}"></script>
{% endblock %} {% endblock %}
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
{% block body %} {% block body %}
{# content added to modal-content #} {# content added to modal-content #}
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
{% block header %}<h3>{{ header_text }}</h3>{% endblock %} {% block header %}<h3>{{ header_text }}</h3>{% endblock %}
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
{% block fa_form %} {% block fa_form %}
...@@ -15,5 +15,5 @@ ...@@ -15,5 +15,5 @@
{% endblock %} {% endblock %}
{% block tail %} {% block tail %}
<script src="{{ admin_static.url(filename='admin/js/bs3_modal.js', v='1.0.0') }}"></script> <script src="{{ admin_static.url(filename='admin/js/bs4_modal.js', v='1.0.0') }}"></script>
{% endblock %} {% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment