{% load i18n ui %}{% comment %} A check's values table and its selected value side by side (#264, the Quality board), under its charts; also the htmx fragment of stations:qc_table. The table has only the columns the check needs (qc_review.value_columns), 12 rows a page, largest first or by date. Each row's date is a link that selects its value: without JavaScript an address (?show=, _page, _sort, _value), with it the fragment in place (qc.js also lets the whole row be clicked). The selected value: its date and check, a sentence, a 7-day chart (PR bars with the limit dashed, or TX and TN lines with the value ringed; each day's PR, TX and TN read out by pointer and keyboard, #283), the 7-day table (its table view; the day in bold on the warning tint, the check's other values on a lighter one), the rows of a repeated date and its lines in the file. data-ring-x/y move the When chart's ring to it. Parameters: analysis, group, check, page, value (qc_review.Finding), when (the ring), selected_date. {% endcomment %}{% url 'stations:qc_table' analysis.workspace_id analysis.slug check.key as table_src %}{% with tid=check.table_id %}

{% translate "Values" %} {% blocktranslate with first=page.first last=page.last total=check.count|count trimmed %}{{ first }}–{{ last }} of {{ total }}{% endblocktranslate %}

{% translate "Sort:" %} {% translate "Largest first" %} {% translate "Date" %}

{% for label, numeric in check.value_columns %}{% endfor %} {% for row in page.rows %} {% for cell in row.values %}{% endfor %} {% endfor %}
{% if page.sort == "date" %}{% blocktranslate with title=check.title first=page.first last=page.last total=check.count|count trimmed %}{{ title }}: values {{ first }} to {{ last }} of {{ total }}, by date{% endblocktranslate %}{% else %}{% blocktranslate with title=check.title first=page.first last=page.last total=check.count|count trimmed %}{{ title }}: values {{ first }} to {{ last }} of {{ total }}, largest first{% endblocktranslate %}{% endif %}
{% translate "Date" %}{{ label }}
{{ row.date }}{% if cell.missing %}{{ cell.text }}{% else %}{{ cell.text }}{% endif %}
{% if page.pages > 1 %} {% endif %} {% if value %}

{{ value.date }} {{ "·" }} {{ group.title }}

{{ value.text }}

{% if value.chart %}{% with chart=value.chart %}
{% for tick in chart.y_ticks %}{{ tick.text }}{% endfor %} {% for tick in chart.x_ticks %}{{ tick.text }}{% endfor %} {% for bar in chart.bars %}{% endfor %} {% if chart.limit_y is not None %}{% endif %} {% for line in chart.lines %}{% endfor %} {% if chart.ring %}{% endif %} {% include "components/readout.html" with id="qc-value-"|add:tid %}
{% if chart.bars %}{{ value.legend.0.label }}{% if chart.limit_text %}{% blocktranslate with limit=chart.limit_text %}limit {{ limit }}{% endblocktranslate %}{% endif %}{% else %}{% for v in value.legend %}{{ v.label }}{% endfor %}{% if chart.ring %}{{ value.date }}{% endif %}{% endif %}{{ value.month }}
{% endwith %}{% endif %}
{% for day in value.days %}{% for cell in day.cells %}{% endfor %}{% endfor %}
{% blocktranslate with title=group.title date=value.date %}{{ title }}: days around {{ date }}{% endblocktranslate %}
{% translate "Date" %}{% translate "PR mm" %}{% translate "TX °C" %}{% translate "TN °C" %}
{{ day.date }}{% if cell.missing %}{{ cell.text }}{% else %}{{ cell.text }}{% endif %}
{% if value.rows_listed %}{% endif %} {% if value.lines_text and not value.rows_listed %}

{{ value.lines_text }}

{% endif %}
{% endif %} {% endwith %}