{% extends 'django_sample_components/pages/master.html' %} {% load sample_tags %} {# Disclaimer: simple_popup depends on Bootstrap JS (bootstrap.bundle.min.js) to function. #} {# The modal open/close behavior is handled entirely by Bootstrap's JavaScript plugin. #} {# Make sure bootstrap.bundle.min.js is loaded before using this component. #} {% block content %}

Popup Page

{% simple_alert type="warning" %} Dependency notice: this component requires Bootstrap JS (bootstrap.bundle.min.js) to open and close modals. Make sure it is loaded in your project before using simple_popup. {% endsimple_alert %}

Default Popup

{% simple_popup name_button="Open Popup" %}

This is the default popup content.

{% endsimple_popup %}

Custom Title

{% simple_popup name_button="Open" title="Custom Title" %}

This popup has a custom title.

{% endsimple_popup %}

Hyperlink Style

{% simple_popup name_button="Click here" title="Hyperlink Popup" use_layout_hiperlink=True %}

Triggered by a hyperlink-styled element instead of a button.

{% endsimple_popup %}

Custom Button Class

{% simple_popup name_button="Danger" title="Warning" class_button="btn btn-danger" %}

This popup uses a custom danger button.

{% endsimple_popup %}

Rich Content

{% simple_popup name_button="Show Details" title="Details" %} {% simple_alert type="info" %} Nested alert inside popup. {% endsimple_alert %} {% endsimple_popup %}
{% endblock %}