.
This commit is contained in:
+2
-2
@@ -127,8 +127,8 @@ class LongSeries(models.Model):
|
||||
modality = models.ForeignKey(Modality, related_name="series_modality", on_delete=models.SET_NULL, null=True)
|
||||
examination = models.ForeignKey(
|
||||
Examination, help_text="Name of the examination", related_name="series_examination", on_delete=models.SET_NULL, null=True)
|
||||
long = models.ForeignKey("Long", related_name="series", on_delete=models.SET_NULL, null=True)
|
||||
description = models.TextField(blank=True, help_text="Description of stack, for admin organisation")
|
||||
long = models.ForeignKey("Long", help_text="The question this series should be associated with", related_name="series", on_delete=models.SET_NULL, null=True)
|
||||
description = models.TextField(blank=True, help_text="Description of stack, for admin organisation, will not be visible when taking")
|
||||
|
||||
def get_examinations(self):
|
||||
"""Returns a comma seperated text list of regions"""
|
||||
|
||||
@@ -20,6 +20,7 @@ Longs:
|
||||
<a href="{% url 'longs:exam_list' %}">Exams</a> /
|
||||
<a href="{% url 'longs:long_view' %}">Questions</a> /
|
||||
<a href="{% url 'longs:long_create' %}" title="Create a new question">Create Question</a>
|
||||
<a href="{% url 'longs:long_series_create' %}" title="Create a new image series">Create Series</a>
|
||||
{% endif %}
|
||||
{% comment %} </br>
|
||||
Questions by:
|
||||
|
||||
@@ -39,9 +39,7 @@
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
$("#add_abnormality").appendTo($("label[for='id_abnormality']"));
|
||||
$("#add_examination").appendTo($("label[for='id_examination']"));
|
||||
$("#add_region").appendTo($("label[for='id_region']"));
|
||||
|
||||
dropContainer = document.getElementById("drop-container");
|
||||
|
||||
@@ -281,9 +279,12 @@
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<h2>Add Series</h2>
|
||||
<a href="{% url 'longs:long_create_defaults' %}">Edit defaults</a>
|
||||
<!-- <a href="{% url 'longs:long_create_defaults' %}">Edit defaults</a> -->
|
||||
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">
|
||||
{% csrf_token %}
|
||||
<a href="/generic/examination/create" id="add_examination" class="add-popup"
|
||||
onclick="return showAddPopup(this);"><img src="{% static '/img/icon-addlink.svg' %}"></a>
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user