tidy up some longs related stuff
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
{% extends 'generic/exam_scores_base.html' %}
|
||||
|
||||
{% block table_answers %}
|
||||
aoeu
|
||||
eu
|
||||
{% for question in questions %}
|
||||
<tr>
|
||||
<td><a href="{% url 'anatomy:mark' exam_pk=exam.pk sk=forloop.counter0 %}">Question {{forloop.counter}}</a>
|
||||
|
||||
@@ -16,10 +16,14 @@
|
||||
<div>
|
||||
{% comment %} <h4>Answers</h4> {% endcomment %}
|
||||
<ul class="score-answer-list">
|
||||
{% for ans, score, correct_answer in answers_and_marks %}
|
||||
<li class="user-answer-li" data-question-number="{{forloop.counter}}"><b>Question {{forloop.counter}}</b> <span class="view-question-link-longs"
|
||||
{% for ans, score, correct_answer, feedback in answers_and_marks %}
|
||||
<li class="user-answer-li
|
||||
{% if ans.0 == 'Not answered' %}
|
||||
not-answered
|
||||
{% endif %}
|
||||
" data-question-number="{{forloop.counter}}"><b>Question {{forloop.counter}}</b> <span class="view-question-link-longs"
|
||||
data-qn={{forloop.counter0}}>View</span>
|
||||
<ul>
|
||||
<ul class="">
|
||||
<li class="Observations" data-qidn="1">Observations</br>
|
||||
<pre>{{ans.0}}</pre>
|
||||
</li>
|
||||
@@ -35,8 +39,14 @@
|
||||
<li class="Management" data-qidn="5">Management</br>
|
||||
<pre>{{ans.4}}</pre>
|
||||
</li>
|
||||
{% if exam.publish_results %}
|
||||
<span class="answer-score">{{score}}</span>
|
||||
{% if view_all_results or exam.publish_results %}
|
||||
Question score: <span class="answer-score">{{score}}</span>
|
||||
|
||||
|
||||
{% if feedback %}
|
||||
<p>Question feedback: {{feedback}}</p>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
</ul>
|
||||
</li>
|
||||
@@ -47,6 +57,13 @@
|
||||
{% include 'user_scores_footer.html' %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block css %}
|
||||
<style>
|
||||
.not-answered {
|
||||
opacity: 0.5;
|
||||
}
|
||||
</style>
|
||||
{% endblock css %}
|
||||
{% block js %}
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% extends 'longs/exams.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block content %}
|
||||
<a href="{% url 'longs:exam_question_detail' exam.id question_details.current %}" title="View the Question">View</a>
|
||||
@@ -111,7 +112,7 @@
|
||||
<div class="marking">
|
||||
<form method="POST" class="post-form">{% csrf_token %}
|
||||
<input type="hidden" name="form_id" value="mark_form">
|
||||
{{ form.as_p }}
|
||||
{{ form|crispy }}
|
||||
<button type="submit" name="save" class="save btn btn-default" title="Save answer">Save</button>
|
||||
{% if next_unmarked_id %}
|
||||
<button type="submit" name="next" class="save btn btn-default"
|
||||
|
||||
Reference in New Issue
Block a user