initial attempt to use django restframework
[htsworkflow.git] / htsworkflow / templates / samples / species_list.html
diff --git a/htsworkflow/templates/samples/species_list.html b/htsworkflow/templates/samples/species_list.html
new file mode 100644 (file)
index 0000000..58727b5
--- /dev/null
@@ -0,0 +1,30 @@
+{% extends "base_site.html" %}
+{% load admin_list i18n %}
+{% load staticfiles %}
+{% block bodyclass %}change-list{% endblock %}
+{% block coltype %}flex{% endblock %}
+
+{% block content %}
+<div id="species-index-div" >
+  <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
+  {% block summary_stats %}
+  <table class="{% if cl.has_filters %} filtered{% endif %}">
+    <thead >
+      <tr >
+        <td >Species</td>
+        <td >Common Name</td>
+      </tr>
+    </thead>
+    <tbody >
+      {% for s in species %}
+      <tr>
+        <td><a href="{{s.url}}">{{ s.scientific_name }}</a></td>
+        <td>{{ s.common_name }}</td>
+      </tr>
+      {% endfor %}
+    </tbody>
+  </table>
+  </div>
+  {% endblock %}
+</div>
+{% endblock %}