Load with {% load bootstrap %}
and include CSS/JS with:
<head>
{% bootstrap_css %}
{% bootstrap_js %}
</head>
Simple modal with an iFrame, designed for usage with forms.
Add modal with {% iframe_form_modal iframe_min_height="500px" %}
, with options:
- iframe_min_height:
iframe_min_height="500px"
set minimum height of iframe - static_backdrop:
static_backdrop=False
static backdrop of the model, defaults toTrue
Open link with:
<a href="{% url SOME_FORM %}" title="{% trans "Modal title" %}" data-bs-toggle="modal" data-bs-target="#iframeFormModal">open modal form</a>
The URL will be loaded in the iFrame and the title will be set as the modal title.