add suggested answers to anatomy

This commit is contained in:
Ross
2024-01-11 22:14:58 +00:00
parent fe2920ca39
commit 5aa81cf7c1
7 changed files with 47 additions and 1 deletions
+9 -1
View File
@@ -23,7 +23,12 @@
Unmarked:
<ul id="new-answer-list" class="answer-list">
{% for answer in user_answers %}
<li><pre><span class="answer not-marked" title="{{answer}}" data-answerurl="{% url 'anatomy:question_user_answers_by_compare' question.pk answer %}">{{ answer }}</span></pre></li>
{% if answer in answer_suggest_incorrect %}
<li><pre><span class="answer incorrect suggest" title="{{answer}}" data-answerurl="{% url 'anatomy:question_user_answers_by_compare' question.pk answer %}">{{ answer }}</span></pre></li>
{% else %}
<li><pre><span class="answer not-marked" title="{{answer}}" data-answerurl="{% url 'anatomy:question_user_answers_by_compare' question.pk answer %}">{{ answer }}</span></pre></li>
{% endif %}
{% endfor %}
</ul>
Marked:
@@ -112,6 +117,9 @@
{% block css %}
<style>
.suggest {
border: 1px dashed;
}
#primary-answer {
font-weight: strong;
color: white;
@@ -62,6 +62,9 @@
<div>
Answer help: {{ question.answer_help|safe }}
</div>
<div>
Answer suggest incorrect: {{ question.answer_suggest_incorrect }}
</div>
<div>
Description: {{ question.description }}
</div>