.
This commit is contained in:
@@ -4,6 +4,12 @@
|
|||||||
<h1>{{ entry.name }}</h1>
|
<h1>{{ entry.name }}</h1>
|
||||||
<a href="{% url 'oef:entry_update' entry.pk %}">Edit</a>
|
<a href="{% url 'oef:entry_update' entry.pk %}">Edit</a>
|
||||||
|
|
||||||
|
{% if entry.inactive %}
|
||||||
|
<div class="alert alert-warning" role="alert">
|
||||||
|
This entry is inactive.
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<p>Modality: {{ entry.modality }}</p>
|
<p>Modality: {{ entry.modality }}</p>
|
||||||
<p>Exam code: {{ entry.exam_code }}</p>
|
<p>Exam code: {{ entry.exam_code }}</p>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -162,7 +162,7 @@ def questions_sym(request):
|
|||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
question = request.POST.get("question")
|
question = request.POST.get("question")
|
||||||
|
|
||||||
questions = set(Entry.objects.all().values_list("questions", flat=True))
|
questions = set(Entry.objects.filter(inactive=False).values_list("questions", flat=True))
|
||||||
|
|
||||||
|
|
||||||
output = []
|
output = []
|
||||||
|
|||||||
Reference in New Issue
Block a user