From 2737939d424da36ccca95fbf6e48c49f9bd4b7df Mon Sep 17 00:00:00 2001 From: Pawan Verma <31195143+pxwxnvermx@users.noreply.github.com> Date: Thu, 16 Nov 2023 13:21:44 +0530 Subject: [PATCH] Add modal template and tests (#151) --- CHANGELOG.md | 1 + .../templates/bootstrap5/layout/modal.html | 13 +++++++++++++ tests/results/modal.html | 15 +++++++++++++++ tests/test_layout_objects.py | 15 +++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 crispy_bootstrap5/templates/bootstrap5/layout/modal.html create mode 100644 tests/results/modal.html diff --git a/CHANGELOG.md b/CHANGELOG.md index 514b234..5abc625 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Next Release * Added support for [Switches](https://getbootstrap.com/docs/5.2/forms/checks-radios/#switches). (#162) +* Added modal template ## 2023.10 (2023-10-2023) * Added Django 5.0 and 4.2 support diff --git a/crispy_bootstrap5/templates/bootstrap5/layout/modal.html b/crispy_bootstrap5/templates/bootstrap5/layout/modal.html new file mode 100644 index 0000000..ec2b061 --- /dev/null +++ b/crispy_bootstrap5/templates/bootstrap5/layout/modal.html @@ -0,0 +1,13 @@ +