diff --git a/anatomy/filters.py b/anatomy/filters.py index 16c1a910..92abd14f 100644 --- a/anatomy/filters.py +++ b/anatomy/filters.py @@ -6,5 +6,5 @@ from .models import AnatomyQuestion class AnatomyQuestionFilter(django_filters.FilterSet): class Meta: model = AnatomyQuestion - fields = ("question_type", "examination", "modality", "region", + fields = ("question_type", "exams", "examination", "modality", "region", "body_part", "created_date", "open_access", "author") diff --git a/anatomy/migrations/0012_exam_publish_results.py b/anatomy/migrations/0012_exam_publish_results.py new file mode 100644 index 00000000..d59828ed --- /dev/null +++ b/anatomy/migrations/0012_exam_publish_results.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.3 on 2020-12-10 23:11 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('anatomy', '0011_anatomyquestion_author'), + ] + + operations = [ + migrations.AddField( + model_name='exam', + name='publish_results', + field=models.BooleanField(default=True, help_text='If an exams results should be available'), + ), + ] diff --git a/anatomy/models.py b/anatomy/models.py index 2a196336..9dd82222 100644 --- a/anatomy/models.py +++ b/anatomy/models.py @@ -258,6 +258,10 @@ class Exam(models.Model): help_text="If an exam should be available", default=True ) + publish_results = models.BooleanField( + help_text="If an exams results should be available", default=True + ) + recreate_json = models.BooleanField( help_text="If the json cache needs updating", default=False ) diff --git a/anatomy/static/css/anatomy.css b/anatomy/static/css/anatomy.css index f1f04b18..65b6f988 100644 --- a/anatomy/static/css/anatomy.css +++ b/anatomy/static/css/anatomy.css @@ -300,4 +300,12 @@ img.uploading:hover { .user-answer-li { padding-top: 10px; +} + +.parent-help:hover .help-text { + opacity: 50%; +} + +.parent-help .help-text { + opacity: 0%; } \ No newline at end of file diff --git a/anatomy/tables.py b/anatomy/tables.py index b041a542..2a262ab4 100644 --- a/anatomy/tables.py +++ b/anatomy/tables.py @@ -21,6 +21,6 @@ class AnatomyQuestionTable(tables.Table): class Meta: model = AnatomyQuestion template_name = "django_tables2/bootstrap4.html" - fields = ("question_type", "description", "examination", "modality", "region", + fields = ("question_type", "exams", "description", "examination", "modality", "region", "body_part", "created_date", "open_access", "author") sequence = ("view", ) \ No newline at end of file diff --git a/anatomy/templates/anatomy/exam_overview.html b/anatomy/templates/anatomy/exam_overview.html index 7870d1cc..b51a1285 100644 --- a/anatomy/templates/anatomy/exam_overview.html +++ b/anatomy/templates/anatomy/exam_overview.html @@ -7,8 +7,11 @@