initial attempt to use django restframework
[htsworkflow.git] / experiments / templates / experiments / flowcell_header.html
index f0cb470102ce3932bbfbe17fbec315a51f152202..3964192f148ca6d754b510f23377f60c2af1a93d 100644 (file)
@@ -2,23 +2,23 @@
 <div class="flowcell_identity" typeof="libns:IlluminaFlowcell" resource="{{flowcell.get_absolute_url}}">
   <h2>About this Flowcell</h2>
   <b>Flowcell</b>:
-    <a href="{{flowcell.get_absolute_url}}"><span property="libns:flowcell_id">{{flowcell.flowcell_id}}</span></a>{% if user.is_staff %}<a href="{{flowcell.get_admin_url}}"><img class="icon_button" src="{% static "admin/img/icon_changelink.gif" %}" alt="Edit"/></a>{% endif%}
+    <a href="{{url}}"><span property="libns:flowcell_id">{{flowcell_id}}</span></a>{% if user.is_staff %}<a href="{{flowcell.get_admin_url}}"><img class="icon_button" src="{% static "admin/img/icon_changelink.gif" %}" alt="Edit"/></a>{% endif%}
   <br/>
   <div rel="libns:sequenced_by">
   <div typeof="libns:Sequencer"
-       about="{{flowcell.sequencer.get_absolute_url}}">
+       about="{{ sequencer.url }}">
   <b>Instrument</b>:
-    <span property="libns:sequencer_name">{{ flowcell.sequencer.name }}</span>
-    {% if flowcell.sequencer.instrument_name %}
-    (<span property="libns:sequencer_instrument">{{ flowcell.sequencer.instrument_name}}</span>)
+    <span property="libns:sequencer_name">{{ sequencer.name }}</span>
+    {% if sequencer.instrument_name %}
+    (<span property="libns:sequencer_instrument">{{ sequencer.instrument_name}}</span>)
     {% endif %}
     <br/>
   <b>Instrument Model</b>:
-    <span property="libns:sequencer_model">{{flowcell.sequencer.model}}</span>
+    <span property="libns:sequencer_model">{{sequencer.model}}</span>
     <br/>
   </div>
   </div>
-  {% for datarun in flowcell.datarun_set.all %}
+  {% for datarun in datarun_set.all %}
   <b>Image Analysis</b>:
     <span property="libns:image_software">{{datarun.image_software}}</span>
     <span property="libns:image_version">{{datarun.image_version}}</span><br/>
     <span property="libns:alignment_version">{{datarun.alignment_version}}</span><br/>
   {% endfor %}
   <b>Run Date</b>:
-    <span property="libns:date" content="{{flowcell.run_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ flowcell.run_date }}</span><br/>
+    <span property="libns:date" content="{{flowcell.run_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ run_date }}</span><br/>
   <b>Type</b>:
-    <span property="libns:flowcell_type">{{flowcell.flowcell_type}}</span><br/>
+    <span property="libns:flowcell_type">{{flowcell_type}}</span><br/>
   <b>Read Length</b>:
-    <span property="libns:read_length" datatype="xsd:integer">{{flowcell.read_length}}</span><br/>
+    <span property="libns:read_length" datatype="xsd:integer">{{read_length}}</span><br/>
   <b>Control Lane</b>:
-    <span property="libns:control_lane">{{flowcell.control_lane}}</span><br/>
+    <span property="libns:control_lane">{{control_lane}}</span><br/>
 
   <b>Notes</b>:
-    <pre property="libns:flowcell_notes">{{flowcell.notes}}</pre>
+    <pre property="libns:flowcell_notes">{{notes}}</pre>
  </div>