mirror of
https://github.com/Hopiu/djLint.git
synced 2026-04-02 05:30:24 +00:00
15 lines
588 B
HTML
15 lines
588 B
HTML
{% import 'admin/static.html' as admin_static with context %}
|
|
{% import 'admin/lib.html' as lib with context %}
|
|
{% block body %}
|
|
{# content added to modal-content #}
|
|
{% block fa_form %}
|
|
{{ lib.render_form(form, dir_url, action=request.url, is_modal=True) }}
|
|
{% endblock %}
|
|
{% endblock %}
|
|
{% block tail %}
|
|
<script src="{{ admin_static.url(filename='admin/js/bs2_modal.js', v='1.0.0') }}"></script>
|
|
<script>
|
|
// fill the header of modal dynamically
|
|
$('.modal-header h3').html('{% block header %}{{ header_text }}{% endblock %}');
|
|
</script>
|
|
{% endblock %}
|