Refactor collection case navigation and question handling

- Updated links in collection_case_priors.html to point to the new collection_case_questions view.
- Modified collection_case_view_take.html to display case history using the new method.
- Changed collection_detail.html to include links to the new collection_case_questions view.
- Added new URL pattern for collection_case_questions in urls.py.
- Refactored collection_case_details view to handle question-related logic and rendering.
- Introduced new CaseQuestionForm for handling question submissions.
- Created new migration to add override_history and redact_history fields to CaseDetail model.
- Added new templates for collection_case_details.html and collection_case_questions.html to manage case questions.
- Enhanced JavaScript functionality for dynamic question management in collection_case_questions.html.
- Updated useranswer model fields in shorts app to improve feedback and scoring.
This commit is contained in:
Ross
2025-09-15 11:17:57 +01:00
parent 779559997e
commit b9f6b7c837
11 changed files with 231 additions and 23 deletions
@@ -0,0 +1,23 @@
# Generated by Django 5.1.4 on 2025-09-15 09:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('atlas', '0074_alter_seriesimage_image_md5_hash'),
]
operations = [
migrations.AddField(
model_name='casedetail',
name='override_history',
field=models.TextField(blank=True, help_text='This will override the case history for the purpose of the exam/collection.', null=True),
),
migrations.AddField(
model_name='casedetail',
name='redact_history',
field=models.BooleanField(default=False, help_text='Set to true if the history should be redacted whilst taking the case.'),
),
]