From fe44fa23a3af796414eb40f6299028eb468c58ad Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 28 Apr 2025 23:13:29 +0100 Subject: [PATCH] . --- atlas/templates/atlas/collection_detail.html | 11 +++++++- atlas/templates/atlas/schema_table_view.html | 28 ++++++++++++++++++++ atlas/views.py | 2 +- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100755 atlas/templates/atlas/schema_table_view.html diff --git a/atlas/templates/atlas/collection_detail.html b/atlas/templates/atlas/collection_detail.html index 6212d01b..e8425cf2 100644 --- a/atlas/templates/atlas/collection_detail.html +++ b/atlas/templates/atlas/collection_detail.html @@ -19,7 +19,16 @@ : {{casedetail.case.title}} {% if collection.collection_type == "QUE" %} - (edit questions) + (edit questions +   + {% if casedetail.question_schema %} + + {% else %} + + {% endif %} + + + ) {% endif %} (manage priors) diff --git a/atlas/templates/atlas/schema_table_view.html b/atlas/templates/atlas/schema_table_view.html new file mode 100755 index 00000000..65d872ca --- /dev/null +++ b/atlas/templates/atlas/schema_table_view.html @@ -0,0 +1,28 @@ +{% extends 'atlas/base.html' %} + +{% load render_table from django_tables2 %} +{% block css %} +{% endblock %} + +{% block content %} + +
+

Schemas

+ Create a new schema here. +
+ +

Filter

+
+
+
+ {{ filter.form }} + +
+
+ View my cases. +
+ {% render_table table %} +
+ +
+{% endblock %} diff --git a/atlas/views.py b/atlas/views.py index 895b5177..ea9a6b85 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -1240,7 +1240,7 @@ class ConditionView(LoginRequiredMixin, SingleTableMixin, FilterView): class QuestionSchemaView(LoginRequiredMixin, SingleTableMixin, FilterView): model = QuestionSchema table_class = QuestionSchemaTable - template_name = "atlas/view.html" + template_name = "atlas/schema_table_view.html" filterset_class = QuestionSchemaFilter