Skip to content
This repository was archived by the owner on Dec 24, 2024. It is now read-only.

jnphilipp/django_bootstrap5

Repository files navigation

django bootstrap5 app

Linting & Tests

Included versions

Usage

Basics

Load with {% load bootstrap %} and include CSS/JS with:

<head>
  {% bootstrap_css %}
  {% bootstrap_js %}
</head>

iFrame modal

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=False static backdrop of the model, defaults to True

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.

About

Django bootstrap 5 app.

Resources

License

Stars

Watchers

Forks

Packages

No packages published