.
This commit is contained in:
@@ -19,7 +19,16 @@
|
||||
: {{casedetail.case.title}}
|
||||
|
||||
{% if collection.collection_type == "QUE" %}
|
||||
(<a href='{% url "atlas:collection_case_details" casedetail.collection.pk casedetail.case.pk %}'>edit questions</a>)
|
||||
(<a href='{% url "atlas:collection_case_details" casedetail.collection.pk casedetail.case.pk %}'>edit questions</a>
|
||||
|
||||
{% if casedetail.question_schema %}
|
||||
<i class="bi bi-question-square text-success"></i>
|
||||
{% else %}
|
||||
<i class="bi bi-question-square text-danger"></i>
|
||||
{% endif %}
|
||||
|
||||
|
||||
)
|
||||
{% endif %}
|
||||
|
||||
(<a href='{% url "atlas:collection_case_priors" casedetail.collection.pk casedetail.case.pk %}'>manage priors</a>)
|
||||
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
{% extends 'atlas/base.html' %}
|
||||
|
||||
{% load render_table from django_tables2 %}
|
||||
{% block css %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="container-fluid">
|
||||
<h2>Schemas</h2>
|
||||
Create a new schema <a href="{% url 'atlas:question_schema_create' %}">here</a>.
|
||||
<details>
|
||||
<summary>
|
||||
<h4>Filter</h4>
|
||||
</summary>
|
||||
<div id="view-filter-options">
|
||||
<form action="" method="get">
|
||||
{{ filter.form }}
|
||||
<input class="btn btn-primary btn-sm mt-1 mb-1" type="submit" />
|
||||
</form>
|
||||
</div>
|
||||
View my <a href='{% url "atlas:case_view" %}?author={{request.user.id}}'>cases</a>.
|
||||
</details>
|
||||
{% render_table table %}
|
||||
</div>
|
||||
|
||||
<div id="exam-options"></div>
|
||||
{% endblock %}
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user