Source

django-foldable-list-filter /

Filename Size Date modified Message
css
images
js
1.4 KB
759 B
Usage
=====

Add the path of the js and css files in your templates::


    {% extends "admin/base_site.html" %}
    {% load i18n static admin_list %}
    {% load url from future %}
    {% block extrastyle %}
      {{ block.super }}
      <link rel="stylesheet" type="text/css" href="{% static "css/foldable-list-filter.css" %}" />
    {% endblock %}

    {% block extrahead %}
    {{ block.super }}
    <script type="text/javascript" src="{% static "js/jquery-1.x.y.min.js" %}"></script>
    <script type="text/javascript" src="{% static "js/foldable-list-filter.js" %}"></script>
    <script type="text/javascript" src="{% static "js/jquery.cookie.js" %}"></script>
    {% endblock %}



Note
----

You need to add your own copy of jQuery since Django-1.4.