Make the public library browsing page support several features from
[htsworkflow.git] / htsworkflow / frontend / templates / samples / library_index.html
index 19e30c7f1cbe56ea3038a6bc9085c01bb961fe4f..cb91b691a2951d9c42545596861a7649177468f9 100644 (file)
@@ -1,26 +1,24 @@
-<style type="text/css">
-  /* <![CDATA[ */
-  table, td {
-    border-style: solid;
-  }
-  table {
-    border-width: 0 0 1px 1px;
-    border-spacing: 0;
-    border-collapse: collapse;
-  }
-  thead {
-    text-align: center;
-  }
-  td {
-    margin: 0;
-    padding: 4px;
-    border-width: 1px 1px 0 0;
-  }
-  td a {
-    display: block;
-  }
-  /* ]]> */
-</style>
+{% load i18n %}
+{% load admin_list %}
+
+<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL}}css/changelists.css" />
+<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL}}css/click-table.css" />
+
+<div id="content" class="flex>
+  <form action="" method="get">
+    {% block search %}{% search_form cl %}{% endblock %}
+    {% block pagination %}{% pagination cl %}{% endblock %}
+  </form>
+  {% block filters %}
+  {% if cl.has_filters %}
+  <div id="changelist-filter">
+    <h2>{% trans 'Filter' %}</h2>
+    {% for spec in cl.filter_specs %}
+       {% admin_list_filter cl spec %}
+    {% endfor %}
+  </div>
+  {% endif %}
+  {% endblock %}
 
 {% block summary_stats %}
 <table>
@@ -43,4 +41,5 @@
     {% endfor %}
   </tbody>
 </table>
+</div>
 {% endblock %}