From bdfa16bbb41ddfcef83c139d0eddfd17ed9589c0 Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 5 Oct 2025 22:41:49 +0100 Subject: [PATCH] Refactor example answers form and remove unused iframe in collection view --- atlas/templates/atlas/_rendered_example_form.html | 12 ++---------- atlas/templates/atlas/collection_viva.html | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/atlas/templates/atlas/_rendered_example_form.html b/atlas/templates/atlas/_rendered_example_form.html index 69bde385..b26f1127 100644 --- a/atlas/templates/atlas/_rendered_example_form.html +++ b/atlas/templates/atlas/_rendered_example_form.html @@ -1,17 +1,9 @@ -{% load static %} {# Render a small example answers form for a given CaseDetail - expects a context variable `form` (JsonAnswerForm) #}
{% csrf_token %} {# Include any media the field needs (json-editor) #} - {% if form.media %} - {{ form.media }} - {% endif %}
- {{ form.json_answer }} + {{ form.as_p}}
- -
- -
-
+ \ No newline at end of file diff --git a/atlas/templates/atlas/collection_viva.html b/atlas/templates/atlas/collection_viva.html index 41447f10..14e7ab74 100644 --- a/atlas/templates/atlas/collection_viva.html +++ b/atlas/templates/atlas/collection_viva.html @@ -118,8 +118,6 @@
- - {% endblock %} @@ -368,4 +366,6 @@ vertical-align: middle; } + + {% endblock css %} \ No newline at end of file