This commit is contained in:
Ross
2025-11-11 11:12:36 +00:00
parent 9ebcd24938
commit 9a9ce11ccb
4 changed files with 618 additions and 620 deletions
+11 -11
View File
@@ -5,7 +5,7 @@
{% block js %} {% block js %}
<!--<script type="text/javascript" src="/admin/jsi18n/"></script>--> <!--<script type="text/javascript" src="/admin/jsi18n/"></script>-->
<script type="text/javascript"> <script type="text/javascript">
function showEditPopup(url) { function showEditPopup(url) {
var win = window.open(url, "Edit", var win = window.open(url, "Edit",
'height=500,width=800,resizable=yes,scrollbars=yes'); 'height=500,width=800,resizable=yes,scrollbars=yes');
@@ -312,14 +312,14 @@
} }
} }
</script> </script>
{{ form.media }} {{ form.media }}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<h2>Series Form</h2> <h2>Series Form</h2>
This form will create a image set that can be associated with a long question. If the question has already been created it can be linked below. This form will create a image set that can be associated with a long question. If the question has already been created it can be linked below.
<form action="" method="post" enctype="multipart/form-data" id="long-form"> <form action="" method="post" enctype="multipart/form-data" id="long-form">
{% csrf_token %} {% csrf_token %}
<a href="/generic/examination/create" id="add_examination" class="add-popup" <a href="/generic/examination/create" id="add_examination" class="add-popup"
onclick="return showAddPopup(this);"><img src="{% static 'img/icon-addlink.svg' %}"></a> onclick="return showAddPopup(this);"><img src="{% static 'img/icon-addlink.svg' %}"></a>
@@ -344,13 +344,13 @@ This form will create a image set that can be associated with a long question. I
</div> </div>
{{ image_formset.management_form }} {{ image_formset.management_form }}
<input type="submit" class="submit-button" value="Submit" name="submit"> <input type="submit" class="submit-button" value="Submit" name="submit">
</form> </form>
<div id="empty_form" style="display:none"> <div id="empty_form" style="display:none">
<ul class='no_error image-formset'> <ul class='no_error image-formset'>
{{ image_formset.empty_form.as_ul }} {{ image_formset.empty_form.as_ul }}
</ul> </ul>
</div> </div>
<div id="images"> <div id="images">
</div> </div>
{% endblock %} {% endblock %}
+23 -24
View File
@@ -5,7 +5,7 @@
{% block js %} {% block js %}
<!--<script type="text/javascript" src="/admin/jsi18n/"></script>--> <!--<script type="text/javascript" src="/admin/jsi18n/"></script>-->
<script type="text/javascript"> <script type="text/javascript">
let csrf_token = "{{csrf_token}}"; let csrf_token = "{{csrf_token}}";
let hash_url = "{% url 'rapids:rapid_question_by_hash' %}"; let hash_url = "{% url 'rapids:rapid_question_by_hash' %}";
//let monitor_directory_handler = false; //let monitor_directory_handler = false;
@@ -266,8 +266,8 @@
} }
} }
} }
</script> </script>
<script type="text/hyperscript"> <script type="text/hyperscript">
init init
set global $normal to false set global $normal to false
if (#id_normal_0.checked ) if (#id_normal_0.checked )
@@ -307,31 +307,31 @@
</script> </script>
{{ form.media }} {{ form.media }}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% if object %} {% if object %}
{% include "rapids/question_link_header.html" %} {% include "rapids/question_link_header.html" %}
{% endif %} {% endif %}
<h2>Submit Rapid</h2> <h2>Submit Rapid</h2>
<p> <p>
<h3>Instructions</h3> <h3>Instructions</h3>
Abnormality, Region and Laterality are used to categorise within the system (they are not used for marking). String Abnormality, Region and Laterality are used to categorise within the system (they are not used for marking). String
answers that match those added below will be used for automatic marking. Multiple images can be added to a question. answers that match those added below will be used for automatic marking. Multiple images can be added to a question.
If If
the feedback image box is checked they will not be displayed when taking the question. the feedback image box is checked they will not be displayed when taking the question.
</p> </p>
<!-- <div> <!-- <div>
To monitor a directory select it here.<br /> To monitor a directory select it here.<br />
<button id="directory-picker-button">Pick a directory</button> <button id="directory-picker-button">Pick a directory</button>
<span id="directory-picker-display">No directory monitored</span> <span id="directory-picker-display">No directory monitored</span>
</div> --> </div> -->
<form action="" method="post" enctype="multipart/form-data" id="rapid-form"> <form action="" method="post" enctype="multipart/form-data" id="rapid-form">
{% comment %} {% csrf_token %} {% endcomment %} {% comment %} {% csrf_token %} {% endcomment %}
<a href="/rapids/abnormality/create" id="add_abnormality" class="add-popup" <a href="/rapids/abnormality/create" id="add_abnormality" class="add-popup"
onclick="return showAddPopup(this);"><img src="{% static 'img/icon-addlink.svg' %}"></a> onclick="return showAddPopup(this);"><img src="{% static 'img/icon-addlink.svg' %}"></a>
@@ -373,19 +373,19 @@ the feedback image box is checked they will not be displayed when taking the que
</div> </div>
{{ image_formset.management_form }} {{ image_formset.management_form }}
<input type="submit" class="submit-button" value="Submit" name="submit"> <input type="submit" class="submit-button" value="Submit" name="submit">
</form> </form>
<div id="empty_form" style="display:none"> <div id="empty_form" style="display:none">
<ul class='no_error image-formset'> <ul class='no_error image-formset'>
{{ image_formset.empty_form.as_ul }} {{ image_formset.empty_form.as_ul }}
</ul> </ul>
</div> </div>
<div id="answer_empty_form" style="display:none"> <div id="answer_empty_form" style="display:none">
<ul class='no_error answer-formset'> <ul class='no_error answer-formset'>
{{ answer_formset.empty_form.as_ul }} {{ answer_formset.empty_form.as_ul }}
</ul> </ul>
</div> </div>
<div id="single-dicom-viewer" class="rapid-dicom-viewer" data-images="" data-annotations='' style="display:none"></div> <div id="single-dicom-viewer" class="rapid-dicom-viewer" data-images="" data-annotations='' style="display:none"></div>
{% endblock %} {% endblock %}
@@ -395,6 +395,5 @@ the feedback image box is checked they will not be displayed when taking the que
.add-popup { .add-popup {
float: left; float: left;
} }
</style> </style>
{% endblock css %} {% endblock css %}
+21 -22
View File
@@ -5,7 +5,7 @@
{% block js %} {% block js %}
<!--<script type="text/javascript" src="/admin/jsi18n/"></script>--> <!--<script type="text/javascript" src="/admin/jsi18n/"></script>-->
<script type="text/javascript"> <script type="text/javascript">
let csrf_token = "{{csrf_token}}"; let csrf_token = "{{csrf_token}}";
let hash_url = "{% url 'shorts:question_by_hash' %}"; let hash_url = "{% url 'shorts:question_by_hash' %}";
//let monitor_directory_handler = false; //let monitor_directory_handler = false;
@@ -264,31 +264,31 @@
} }
} }
} }
</script> </script>
{{ form.media }} {{ form.media }}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% if object %} {% if object %}
{% include "shorts/question_link_header.html" %} {% include "shorts/question_link_header.html" %}
{% endif %} {% endif %}
<h2>Submit Shorts Question</h2> <h2>Submit Shorts Question</h2>
<h3>Instructions</h3> <h3>Instructions</h3>
<p> <p>
Use this form to create a new short style question/case. Multiple images can be added to a question. Use this form to create a new short style question/case. Multiple images can be added to a question.
If the feedback image box is checked they will not be displayed when taking the question. If the feedback image box is checked they will not be displayed when taking the question.
</p> </p>
<p>Once you have created the question with this form you can add relevant findings. <p>Once you have created the question with this form you can add relevant findings.
</p> </p>
<!-- <div> <!-- <div>
To monitor a directory select it here.<br /> To monitor a directory select it here.<br />
<button id="directory-picker-button">Pick a directory</button> <button id="directory-picker-button">Pick a directory</button>
<span id="directory-picker-display">No directory monitored</span> <span id="directory-picker-display">No directory monitored</span>
</div> --> </div> -->
<form action="" method="post" enctype="multipart/form-data" id="rapid-form"> <form action="" method="post" enctype="multipart/form-data" id="rapid-form">
{% comment %} {% csrf_token %} {% endcomment %} {% comment %} {% csrf_token %} {% endcomment %}
<a href="/rapids/examination/create" id="add_examination" class="add-popup" <a href="/rapids/examination/create" id="add_examination" class="add-popup"
onclick="return showAddPopup(this);"><img src="{% static 'img/icon-addlink.svg' %}"></a> onclick="return showAddPopup(this);"><img src="{% static 'img/icon-addlink.svg' %}"></a>
@@ -312,19 +312,19 @@ If the feedback image box is checked they will not be displayed when taking the
</div> </div>
{{ image_formset.management_form }} {{ image_formset.management_form }}
<input type="submit" class="submit-button" value="Submit" name="submit"> <input type="submit" class="submit-button" value="Submit" name="submit">
</form> </form>
<div id="empty_form" style="display:none"> <div id="empty_form" style="display:none">
<ul class='no_error image-formset'> <ul class='no_error image-formset'>
{{ image_formset.empty_form.as_ul }} {{ image_formset.empty_form.as_ul }}
</ul> </ul>
</div> </div>
<div id="answer_empty_form" style="display:none"> <div id="answer_empty_form" style="display:none">
<ul class='no_error answer-formset'> <ul class='no_error answer-formset'>
{{ answer_formset.empty_form.as_ul }} {{ answer_formset.empty_form.as_ul }}
</ul> </ul>
</div> </div>
<div id="single-dicom-viewer" class="rapid-dicom-viewer" data-images="" data-annotations='' style="display:none"></div> <div id="single-dicom-viewer" class="rapid-dicom-viewer" data-images="" data-annotations='' style="display:none"></div>
{% endblock %} {% endblock %}
@@ -334,6 +334,5 @@ If the feedback image box is checked they will not be displayed when taking the
.add-popup { .add-popup {
float: left; float: left;
} }
</style> </style>
{% endblock css %} {% endblock css %}