{% extends "generic/base.html" %}
<!-- {% load static from static %} -->

{% load crispy_forms_tags %}

{% block css %}
{% endblock %}
{% block js %}
<!--<script type="text/javascript" src="/admin/jsi18n/"></script>-->
{{form.media}}

<script type="text/javascript">
</script>

<!-- {{ form.media }} -->
{% endblock %}
{% block content %}


<h2>Clone Exam Collection {{object.name}}</h2>
Clones the collection. This will maintain the collection name but will create clones of all of the associated exams.
<form action="" method="post" enctype="multipart/form-data" id="examcollection-form">
    {% csrf_token %}
        {{ form|crispy }}


    <p>The following exams will be cloned<br/>
    <h3>Anatomy Exams:</h3>
    <ul>
        {% for exam in view.initial_object.anatomy_exams.all %}
            <li>{{ exam }}</li>
        {% endfor %}
    </ul>

    <h3>Longs Exams:</h3>
    <ul>
        {% for exam in view.initial_object.longs_exams.all %}
            <li>{{ exam }}</li>
        {% endfor %}
    </ul>

    <h3>SBAs Exams:</h3>
    <ul>
        {% for exam in view.initial_object.sbas_exams.all %}
            <li>{{ exam }}</li>
        {% endfor %}
    </ul>

    <h3>Physics Exams:</h3>
    <ul>
        {% for exam in view.initial_object.physics_exams.all %}
            <li>{{ exam }}</li>
        {% endfor %}
    </ul>

    <h3>Rapids Exams:</h3>
    <ul>
        {% for exam in view.initial_object.rapids_exams.all %}
            <li>{{ exam }}</li>
        {% endfor %}
    </ul>
    </p>
    <input type="submit" class="submit-button" value="Submit" name="submit">
</form>
{% endblock %}