{% extends 'atlas/base.html' %}

{% block content %}
    <h2>Collection: {{exam}}</h2>

{% comment %}     <ul>
        {% for case in collection.cases.all %}
            <li><a href="{% url 'atlas:collection_case_view_take_user' pk=collection.id case_number=forloop.counter0 %}">Case {{forloop.counter}}</a></li>
        {% endfor %}
    </ul> {% endcomment %}

    User: {{request.user}}<br/>

    {% if cid_exam %}
        Started: {{cid_exam.start_time}} <br/>
        {% if cid_exam.completed %}
            Ended: {{cid_exam.end_time}} <br/>
        {% endif %}
    {% endif %}

    <a href="{% url 'atlas:collection_case_view_take_user' pk=collection.pk case_number=0 %}">
        {% if cid_exam.completed %}
            <button>Review</button>
        {% else %}
            <button>Start</button>
        {% endif %}
    </a>
{% endblock %}
