Skip to main content

django-508-plugins

Installable Django app containing 508-compliant plugins.

Requirements:

  • jQuery 3.6.0+ or jQuery 3.4.1.

Current 508 Compliant packages:

  • select2 v3 [ Docs ]
  • selectcn (select2 V4.1.0-rc.0) [ Docs ]
  • jQuery 1.11.4 Datepicker [ Git | Docs ]

Usage

pip install django-508-plugins

select2

Add plugins.select2 to your INSTALLED_APPS setting. Then, add the following source files to your template::

select2/select2.css
select2/select2-bootstrap.css # Only needed if using Bootstrap 3
select2/select2.js

Note: It is highly recommnded you do not include both plugins.select2 and plugins.selectcn stylesheets in the same template. These stylesheets include rules that will conflict with each other and can cause unexpected results.

selectcn

Add plugins.selectcn to your INSTALLED_APPS setting. Then, add the following source files to your template::

selectcn/css/selectcn.css
selectcn/js/selectcn.js

Note: It is highly recommended you do not include both plugins.selectcn and plugins.select2 stylesheets in the same template. These stylesheets include rules that will conflict with each other and can cause unexpected results.

When using selectcn, make sure the the for attribute of the related <label> tag matches the ID of the select box.

datepicker

Add plugins.datepicker to your INSTALLED_APPS setting. In order for the 508 Compliant datepicker to work, you must include jQuery UI in your template. Add the following source files to your template::

jquery-ui/jquery-ui.css
jquery-ui/jquery-ui.js
datepicker/js/jqueryui_datepicker_508.js

Note This build of jquery-ui only includes the jQuery UI Datepicker. Other jQuery UI components may not be 508 Compliant.

Note This build also contain a yet to be released bug fix on datepicker which caused issues with a datepicker's dropdown widget placement on screen if it was in a popover or modal or there was scrolling. This bugfix has yet to be released on the current stable version of jquery-ui and this build still uses the legacy 1.11.4 build which will likely never get this bugfix. The pull request for this issue is here: https://github.com/jquery/jquery-ui/pull/1935. These changes were built and minified the same way that jquery-ui builder built the source for the original jquery-ui in here, only instead built using a local instance of download.jqueryui.com against the one line change from the bug fix applied to the 1.11 stable branch jquery-ui.ui.datepicker.js file.

Minified versions of datepicker source files are also included in the install.

Release files for django-508-plugins 3.0.2

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-508-plugins 3.0.2
File Size Uploaded
django_508_plugins-3.0.2.tar.gz 377.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-508-plugins 3.0.2
File Interpreter ABI Platform
django_508_plugins-3.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 795.0 kB

Release files / django_508_plugins-3.0.2.tar.gz

Download URL django_508_plugins-3.0.2.tar.gz
Size 377.6 kB
Tags Source
SHA-256 checksum
How to use checksums
86722e16c01933f5651e623829783363d86194537fc0a114afb0f44937685e94
BLAKE2b-256 checksum
How to use checksums
3e9961daa2532123fb789fc9467557c8365c19af08bcd1263cff2b93198681e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.11

Release files / django_508_plugins-3.0.2-py2.py3-none-any.whl

Download URL django_508_plugins-3.0.2-py2.py3-none-any.whl
Size 417.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7a2631bb22c85717f552b7d1114f7b1009c8ddc72bb17d942b39c621da52ba0e
BLAKE2b-256 checksum
How to use checksums
2bb047780bee849e0bdc7202d3d94fcc66d3cc8a420cab54368df8fbaaf6bae5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.11

Release history Release notifications | RSS feed

This release

3.0.2 This release

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

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