-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a408e74
commit b485bc4
Showing
6 changed files
with
130 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{% extends "base.html" %} | ||
{% load static %} | ||
{% block title %}Tests{% endblock %} | ||
{% block header %} | ||
<h2> | ||
Test | ||
</h2> | ||
<h3>{{ test }}</h3> | ||
{% endblock %} | ||
{% block content %} | ||
<div class="row-fluid"> | ||
<div class="span6"> | ||
<dl> | ||
<dt>Measures</dt> | ||
<dd>{{ test.parameter }}</dd> | ||
<dt>Unit</dt> | ||
<dd>{{ test.unit }}</dd> | ||
</dl> | ||
</div> | ||
<div class="span6"> | ||
<dl> | ||
<dt>Test vendor/authority</dt> | ||
<dd>{{ test.vendor_or_authority }}</dd> | ||
<dt>Test type</dt> | ||
<dd>{{ test.get_test_type_display }}</dd> | ||
</dl> | ||
</div> | ||
</div> | ||
<div class="row-fluid"> | ||
<div class="span6"> | ||
<h4>Additional info</h4> | ||
<div class="well"> | ||
<dl> | ||
{% for key, value in test.meta.items %} | ||
<dt>{{ key }}</dt> | ||
<dd>{{ value }}</dd> | ||
{% endfor %} | ||
</dl> | ||
</div> | ||
</div> | ||
<div class="span6"> | ||
<h4>Stats</h4> | ||
<div class="well"> | ||
<dl> | ||
{% for key, value in test.get_stats.items %} | ||
<dt>{{ key|title }}</dt> | ||
<dd>{{ value }}</dd> | ||
{% endfor %} | ||
</dl> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% extends "base.html" %} | ||
{% load static %} | ||
{% block title %}Tests{% endblock %} | ||
{% block header %} | ||
<h2> | ||
Tests | ||
</h2> | ||
<h3>How are measurements made?</h3> | ||
{% endblock %} | ||
{% block content %} | ||
<div class="row-fluid"> | ||
<p>Tests are what you use to get measurements of quality. Some tests | ||
are really rigorous and give very high-accuracy values, others can | ||
simply tell you if a chemical is present or not above a certain level. | ||
Check below to find a test for some quality parameter.</p> | ||
</div> | ||
<div class="row-fluid"> | ||
<div class="span6"> | ||
<h4>Tests for…</h4> | ||
{% regroup object_list by parameter as param_list %} | ||
<ul> | ||
{% for param in param_list %} | ||
<li><a href="#test{{ param.grouper.id }}">{{ param.grouper }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
<div class="span6"> | ||
{% for param in param_list %} | ||
<div id="test{{ param.grouper.id }}" data-param="{{ param.grouper.id }}"> | ||
<h3>{{ param.grouper }}</h3> | ||
<ul> | ||
{% for test in param.list %} | ||
<li><a href="{% url "observations-test-detail" test.id %}"> | ||
{{ test }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters