Skip to main content

django-html-utils app

HTML utils app for django.

Linting & Tests pypi Version

Included versions

Usage

Basics

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

<head>
  {% django_html_utils_css %}
  {% django_html_utils_js %}
</head>

Font-Awesome

To add a Font-Awesome icon use {% fa "icon-name" %}. Additional options are tag, for the tag to use, defaults to span and icon_type, for the icon type, defaults to solid.

For example:

{% fa "upload" %}

resolves to:

<span class="fa-solid fa-upload"></span>

iFrame modal

Simple modal with an iFrame, designed for usage with forms.

Add modal with {% iframe_form_modal %}, with options:

  • iframe_min_height: set minimum height of iframe, defaults to None
  • iframe_max_height: set maximum height of iframe, defaults to None
  • iframe_options: set additional iframe options, defaults to None
  • static_backdrop: if the backdrop of the model should be static, defaults to True
  • submit_button_text: the text of the submit button, when None no text will be displayed, defaults to None
  • fa_icon_name: the Font-Awesome icon name on the submit button
  • fa_tag: the Font-Awesome tag to use, defaults to span
  • fa_icon_type: the icon type, defaults to solid

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.

Metadata

Release files for django-html-utils 0.2.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-html-utils 0.2.14
File Size Uploaded Provenance Actions
django_html_utils-0.2.14.tar.gz 758.1 kB Without provenance Details for django_html_utils-0.2.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-html-utils 0.2.14
File Interpreter ABI Platform Actions
django_html_utils-0.2.14-py3-none-any.whl Python 3 none any Details for django_html_utils-0.2.14-py3-none-any.whl

Total release size: 1.6 MB

Release files / django_html_utils-0.2.14.tar.gz

Download URL django_html_utils-0.2.14.tar.gz
Size 758.1 kB
Tags Source
SHA-256 checksum
How to use checksums
712e2223ae4029218e20630df4d4c085a6d70fbabb436707541a76625a3ab404
BLAKE2b-256 checksum
How to use checksums
2125fbfad0eaf61a9e736104fa2ed77c7f5e44308261fded040dedb85dea124d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / django_html_utils-0.2.14-py3-none-any.whl

Download URL django_html_utils-0.2.14-py3-none-any.whl
Size 807.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
edcad6d0c53d90909384ac033434ccdd1340a9fb452903801626d8fa2a42cd92
BLAKE2b-256 checksum
How to use checksums
8081e8adedd6424cdd63cd4c4029119d46e7c159e2f3ed147ff490a668121fdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Security for django-html-utils 0.2.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page