An open API service indexing awesome lists of open source software.

https://github.com/imsweb/django-508-plugins

Installable Django app containing 508-compliant plugins.
https://github.com/imsweb/django-508-plugins

Last synced: 5 months ago
JSON representation

Installable Django app containing 508-compliant plugins.

Awesome Lists containing this project

README

          

# django-508-plugins
Installable Django app containing 508-compliant plugins.

## Requirements:

* jQuery 1.6+

## Current 508 Compliant packages:

* select2 v3 [ [Docs](https://select2.github.io/select2/) ]
* selectWoo (select2 V4) [ [Git](https://github.com/woocommerce/selectWoo) | [Docs](https://select2.org/) | [Bootstrap 3 Theme](https://github.com/select2/select2-bootstrap-theme) ]
* jQuery 1.11.4 Datepicker [ [Git](https://github.com/jquery/jquery-ui) | [Docs](https://api.jqueryui.com/datepicker/) ]

## 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.selectWoo` stylesheets in the same template. These stylesheets include rules that will conflict with each other and can cause unexpected results.

### selectWoo

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

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

**Note**: It is **highly** recommnded you do not include both `plugins.selectWoo` 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 selectWoo, make sure the the `for` attribute of the related `` tag matches the ID of the select box.

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

### 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.

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