From 8b84654ee3c7f88e3d27f4c09ab2999b65b43a6e Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 14 Oct 2024 10:08:54 +0100 Subject: [PATCH] fix some anatomy question creation bugs --- .../anatomy/anatomyquestion_form.html | 2 + .../anatomy/anatomyquestionanswer_form.html | 7 +++- anatomy/views.py | 35 ++++++++++------- atlas/urls.py | 2 +- generic/forms.py | 38 +++++++++++++++++-- manage.py | 1 + rad/static/css/anatomy.css | 8 ++++ 7 files changed, 72 insertions(+), 21 deletions(-) diff --git a/anatomy/templates/anatomy/anatomyquestion_form.html b/anatomy/templates/anatomy/anatomyquestion_form.html index 46436df7..133a5950 100644 --- a/anatomy/templates/anatomy/anatomyquestion_form.html +++ b/anatomy/templates/anatomy/anatomyquestion_form.html @@ -231,6 +231,8 @@

This form can be used to create an Anatomy question.

Question type can be selected from a predefined list. If you require a more please contact ross.kruger@nhs.net.

+ +

Correct and incorrect answers can be defined once the question has been created.

{% csrf_token %} diff --git a/anatomy/templates/anatomy/anatomyquestionanswer_form.html b/anatomy/templates/anatomy/anatomyquestionanswer_form.html index d404f612..39b9f683 100644 --- a/anatomy/templates/anatomy/anatomyquestionanswer_form.html +++ b/anatomy/templates/anatomy/anatomyquestionanswer_form.html @@ -29,7 +29,10 @@ {% include 'anatomy/question_link_header.html' %} {% endif %}

Question Answers

-This page can be used to add and modify answers associated with a question. Answers in here will be used for automarking submitted answers so it is best not to remove. Updating an answer here will not automatically update a submitted answers (scores cache would need to be refreshed) +
+ Help +

This page can be used to add and modify answers associated with a question. Answers in here will be used for automarking submitted answers so it is best not to remove. Updating an answer here will not automatically update a submitted answers (scores cache would need to be refreshed)

+
{% csrf_token %}

Answers:

@@ -45,7 +48,7 @@ This page can be used to add and modify answers associated with a question. Answ {{ answer_formset.management_form }}

- +