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

{% block content %}
  <h2>Collection requires completion of another collection</h2>
  <p>{{ message }}</p>
  {% if prereq %}
    <p>
      You must complete the collection:
      {% if cid and passcode %}
        <a href="{% url 'atlas:collection_take_start' prereq.pk %}?cid={{ cid }}&passcode={{ passcode }}">{{ prereq.name }}</a>
      {% else %}
        <a href="{% url 'atlas:collection_take_start' prereq.pk %}">{{ prereq.name }}</a>
      {% endif %}
    </p>
  {% endif %}
  <p>
    If you think this is an error, contact the course administrator.
  </p>
{% endblock %}
