Make the public library browsing page support several features from
authorDiane Trout <diane@caltech.edu>
Fri, 6 Mar 2009 02:09:26 +0000 (02:09 +0000)
committerDiane Trout <diane@caltech.edu>
Fri, 6 Mar 2009 02:09:26 +0000 (02:09 +0000)
commite09f213d6c9c30ebb4740a6eaea0b307865cd336
treefe2014944560c30f8c02476f76800db89699c2fe
parent1c7e3facaf8b9ac4fe0154a0b440f3c0d18ced5f
Make the public library browsing page support several features from
django admin pages.

  * Search bar
  * Pagination
  * Filters

This took grabbing the "ChangeSet" class from django.contrib.admin and
slightly modifying, in addition to the css files.

To provide the css files I had to add the ability to serve static
files from the app level. I followed the django pattern that the
internal static pages would only be served by django when debug is true.

And because it's hard to split it out, I also added a new field
'hidden' to the library table. This allows hiding libraries from
the public library page (which is useful since a number of libraries
have a gel isolate pair, which many end users find rather confusing).
14 files changed:
docs/conv_caltech_v0.1_to_htsw.py
htsworkflow/frontend/samples/admin.py
htsworkflow/frontend/samples/changelist.py [new file with mode: 0644]
htsworkflow/frontend/samples/models.py
htsworkflow/frontend/samples/views.py
htsworkflow/frontend/settings.py
htsworkflow/frontend/static/css/base.css [new file with mode: 0644]
htsworkflow/frontend/static/css/changelists.css [new file with mode: 0644]
htsworkflow/frontend/static/css/click-table.css [new file with mode: 0644]
htsworkflow/frontend/static/css/global.css [new file with mode: 0644]
htsworkflow/frontend/static/css/layout.css [new file with mode: 0644]
htsworkflow/frontend/static/img/icon_searchbox.png [new file with mode: 0644]
htsworkflow/frontend/templates/samples/library_index.html
htsworkflow/frontend/urls.py