67 lines
2.6 KiB
HTML
67 lines
2.6 KiB
HTML
{% extends "details.html" %}
|
|
{% if not child %}
|
|
|
|
<head>
|
|
{% block head %}
|
|
{{ super() }}
|
|
<title>Procedure Details for {{ procedure['name'] }}</title>
|
|
{% endblock %}
|
|
</head>
|
|
<body>
|
|
{% endif %}
|
|
{% block body %}
|
|
<h2><u>Procedure Details for {{ procedure['name'] }}</u></h2>
|
|
{{ super() }}
|
|
<p>{% for key, value in procedure.items() if key not in procedure['excluded'] %}
|
|
<b>{{ key | replace("_", " ") | title | replace("Pcr", "PCR") }}: {{ value }}</b><br>
|
|
{% endfor %}</p>
|
|
{% if procedure['reagent'] %}
|
|
<button type="button"><h3><u>Reagents:</u></h3></button>
|
|
<table style="border: 1px solid black; width: 100%; text-align: center">
|
|
<tr>
|
|
<th style="border: 1px solid black;">Reagent Role</th>
|
|
<th style="border: 1px solid black;">Reagent Name</th>
|
|
<th style="border: 1px solid black;">Lot</th>
|
|
<th style="border: 1px solid black;">Expiry</th>
|
|
</tr>
|
|
{% for reg in procedure['reagent'] %}
|
|
{% with reagent=reg, child=True %}
|
|
{% include "support/reagent_list.html" %}
|
|
{% endwith %}
|
|
{% endfor %}</p>
|
|
</table><br/>
|
|
{% endif %}
|
|
{% if procedure['equipment'] %}
|
|
<button type="button"><h3><u>Equipment:</u></h3></button>
|
|
<table style="border: 1px solid black; width: 100%; text-align: center">
|
|
<tr>
|
|
<th style="border: 1px solid black;">Equipment Role</th>
|
|
<th style="border: 1px solid black;">Equipment Name</th>
|
|
<th style="border: 1px solid black;">Process</th>
|
|
<th style="border: 1px solid black;">Tips</th>
|
|
</tr>
|
|
{% for eq in procedure['equipment'] %}
|
|
{% with equipment=eq, child=True %}
|
|
{% include "support/equipment_list.html" %}
|
|
{% endwith %}
|
|
{% endfor %}
|
|
</table><br/>
|
|
{% endif %}
|
|
{% if procedure['results'] %}
|
|
<button type="button"><h3><u>Results:</u></h3></button>
|
|
{% for result in procedure['results'] %}
|
|
<p>{% for k, v in result['result'].items() %}
|
|
<b>{{ key | replace("_", " ") | title | replace("Rsl", "RSL") }}:</b> {{ value }}<br>
|
|
{% endfor %}</p>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% if procedure['sample'] %}
|
|
<button type="button"><h3><u>Procedure Samples:</u></h3></button>
|
|
<p>{% for sample in procedure['sample'] %}
|
|
<a class="{% if sample['active'] %}data-link {% else %}unused {% endif %}sample" id="{{ sample['sample_id'] }}">{{ sample['sample_id']}}</a><br>
|
|
{% endfor %}</p>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
</body>
|