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 %}, with options:
- iframe_min_height:
iframe_min_height="500px"set minimum height of iframe - iframe_max_height:
iframe_max_height="500px"set maximum height of iframe - static_backdrop:
static_backdrop=Falsestatic 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.