{% extends 'detail_view.html' %}
{% load i18n %}
{% load wnsq_tags %}
{% block extra %}
    {% if calib_set %}
        <table class="table striped">
            <thead>
            <tr>
                <th>id</th>
                <th>{% trans 'value'|capfirst %} ({% trans 'single mask' %})</th>
                <th>{% trans 'value'|capfirst %} ({% trans 'dual mask' %})</th>
            </tr>
            </thead>
            <tbody>
            {% for calib in calib_set %}
                <tr>
                    <td>{{ calib.id }}</td>
                    <td style="text-align: center;">
                        {% if calib.value1 < 0 %}
                            {% nothing %}
                        {% else %}
                            {{ calib.value1 }}
                        {% endif %}
                    </td>
                    <td style="text-align: center;">
                        {% if calib.value2 < 0 %}
                            {% nothing %}
                        {% else %}
                            {{ calib.value2 }}
                        {% endif %}
                    </td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% endif %}
{% endblock extra %}