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

{% block content %}
<div class="question">
<a href="#" onclick="return window.create_popup_window('{% url 'feedback_create' question_type='physics' pk=question.pk %}')"> Add Note</a>
<a href="{% url 'admin:physics_question_change' question.id %}" title="Edit the Question using the admin interface">Admin Edit</a>
    <div class="date">
        Created: {{ question.created_date|date:"d/m/Y" }}
    </div>
    {% autoescape off %}
    <h2>{{question.stem}}</h2>
    <div>
        <ol>
            <li>{{ question.a }}: {{ question.a_answer }}</li>
            <li>{{ question.b }}: {{ question.b_answer }}</li>
            <li>{{ question.c }}: {{ question.c_answer }}</li>
            <li>{{ question.d }}: {{ question.d_answer }}</li>
            <li>{{ question.e }}: {{ question.e_answer }}</li>
        </ol>
    </div>
    {% endautoescape %}
    <div>
        Examinations: {% for exam in question.exams.all %}
        <a href="{% url 'physics:exam_overview' pk=exam.pk %}">{{ exam }}</a>
        {% endfor %}
    </div>
    <div>
        Category: {{ question.category }}
    </div>

    <div>
        Author: {% for user in question.author.all %}
    {{ author }}, 
    {% endfor %}
    </div>
    {% include 'question_notes.html' %}
</div>
{% endblock %}