CSS fixes
[htsworkflow.git] / htsworkflow / frontend / templates / samples / library_index.html
index cb91b691a2951d9c42545596861a7649177468f9..56c8e79c00634977381388cfb39094646d6397e5 100644 (file)
@@ -1,45 +1,57 @@
-{% load i18n %}
-{% load admin_list %}
+{% extends "base_site.html" %}
+{% load adminmedia admin_list i18n %}
 
-<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" />
+{% block bodyclass %}change-list{% endblock %}
+{% block coltype %}flex{% endblock %}
 
-<div id="content" class="flex>
-  <form action="" method="get">
+{% block content %}
+<div id="library-index-div" class="djangocss">
+  <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
     {% 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 filters %}
+    {% if cl.has_filters %}
+    <div id="changelist-filter">
+      <h2 class="djangocss">{% trans 'Filter' %}</h2>
+      {% for spec in cl.filter_specs %}
+         {% admin_list_filter cl spec %}
+         {% endfor %}
+       </div>
+       {% endif %}
+       {% endblock %}
+
+  
+ {% block pagination %}{% pagination cl %}{% endblock %}
 
 {% block summary_stats %}
-<table>
-  <thead>
-    <tr>
-    <td>Library ID</td>
-    <td>Species</td>
-    <td>Library Name</td>
-    <td>Total Lanes</td>
+<table class="djangocss">
+  <thead class="djangocss">
+    <tr class="djangocss">
+    <td class="djangocss">Parent</td>
+    <td class="djangocss">Library ID</td>
+    <td class="djangocss">Species</td>
+    <td class="djangocss">Library Name</td>
+    <td class="djangocss">Total Lanes</td>
+    <td class="djangocss">HD</td>
     </tr>
   </thead>
-  <tbody>
-    {% for lib in library_list%}
-    <tr>
-      <td><a href="/library/{{ lib.library_id }}">{{ lib.library_id }}</a></td>
-      <td><a href="/library/{{ lib.library_id }}">{{ lib.species_name }}</a></td>
-      <td><a href="/library/{{ lib.library_id }}">{{ lib.library_name }}</a></td>
-      <td>{{ lib.lanes_run }}</td>
+  <tbody class="djangocss">
+    {% for lib in library_list %}
+    <tr class="djangocss">
+      <td class="djangocss"><a href="/library/{{ lib.library_id }}">{{ lib.amplified_from }}</a></td>
+      <td class="djangocss"><a href="/library/{{ lib.library_id }}">{{ lib.library_id }}</a></td>
+      <td class="djangocss"><a href="/library/{{ lib.library_id }}">{{ lib.species_name }}</a></td>
+      <td class="djangocss"><a href="/library/{{ lib.library_id }}">{{ lib.library_name }}</a></td>
+      <td class="djangocss">{{ lib.lanes_run }}</td>
+      {% if lib.is_archived %}
+        <td class="djangocss"><img src="/static/img/hdd_unmount.png" alt="Archived" /></td>
+      {% else %}
+        <td class="djangocss"></td>
+      {% endif %}
     </tr>
     {% endfor %}
   </tbody>
 </table>
 </div>
 {% endblock %}
+{% endblock %}