{% extends 'base.html' %}
{% load wnsq_tags %}
{% load i18n %}
{% block content %}

    <h4>
        {% trans 'Matrix' %} {% trans 'round' %} {{ object.number }} // {{ object.measurement.sample }}
        ({{ object.started_at }})
    </h4>
    <table class="table striped bordered">
        <thead>
        <tr>
            <th>{% trans 'Step' %}</th>
            {% for p in panel %}
                <th>{{ p }}</th>
            {% endfor %}
        </tr>
        </thead>

        <tbody>

        {% for step in reply_data %}
            <tr>
                {% for rd in step %}

                    {% if not forloop.first %}
                        <td>
                            <div align="center">
                                    <span>
                                    {{ rd.0|value_or_nothing }}

                                            {{ rd.1|value_or_nothing }}

                                    </span>
                            </div>
                        </td>
                    {% else %}
                        <td>{{ rd }}</td>
                    {% endif %}
                {% endfor %}
            </tr>
        {% endfor %}

        </tbody>
    </table>
    <a href="{% url 'measurement_detail' pk=object.measurement.pk %}"
       class="button primary">{% trans 'back'|capfirst %}</a>
{% endblock %}