This commit is contained in:
Ross
2021-11-23 22:59:43 +00:00
parent 5120a37af9
commit 73ef093f8c
5 changed files with 9 additions and 15 deletions
+2
View File
@@ -97,6 +97,8 @@ class AtlasForm(ModelForm):
fields = [
#"examination",
#"site",
"title",
"subspecialty",
"description",
"history",
"findings",
+2 -2
View File
@@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% block title %}
Longs
Atlas
{% endblock %}
{% block css %}
@@ -15,7 +15,7 @@ Longs
{% block content %}
{% endblock %}
{% block navigation %}
Longs:
Atlas:
{% if request.user.is_authenticated %}
<a href="{% url 'atlas:case_view' %}">Cases</a> /
<a href="{% url 'atlas:series_view' %}">Series</a> /
+3 -3
View File
@@ -6,11 +6,11 @@
<div class="floating-header">
<a href="{% url 'atlas:atlas_update' pk=question.pk %}" title="Edit the Case">Edit</a>
<a href="{% url 'atlas:atlas_clone' pk=question.pk %}" title="Clone the Long (duplicate everything but the images)">Clone</a>
<a href="{% url 'atlas:atlas_delete' pk=question.pk %}" title="Delete the Rapid">Delete</a>
<a href="{% url 'atlas:atlas_clone' pk=question.pk %}" title="Clone the Case (duplicate everything but the images)">Clone</a>
<a href="{% url 'atlas:atlas_delete' pk=question.pk %}" title="Delete the Case">Delete</a>
<a href="#" onclick="return window.create_popup_window('{% url 'feedback_create' question_type='atlas' pk=question.pk %}')"> Add Note</a>
{% if request.user.is_superuser %}
<a href="{% url 'admin:atlas_case_change' question.id %}" title="Edit the Long using the admin interface">Admin Edit</a>
<a href="{% url 'admin:atlas_case_change' question.id %}" title="Edit the Case using the admin interface">Admin Edit</a>
{% endif %}
{% include 'atlas/atlas_display_block.html' %}
{% endblock %}
+2 -2
View File
@@ -28,9 +28,9 @@
function add_input_form() {
var form_idx = $('#id_LongSeries_atlas-TOTAL_FORMS').val();
var form_idx = $('#id_Case_series-TOTAL_FORMS').val();
$('#form_set').append($('#empty_form').html().replace(/__prefix__/g, form_idx));
$('#id_LongSeries_atlas-TOTAL_FORMS').val(parseInt(form_idx) + 1);
$('#id_Case_series-TOTAL_FORMS').val(parseInt(form_idx) + 1);
}
$(document).ready(function () {
-8
View File
@@ -32,12 +32,6 @@
$('#id_images-TOTAL_FORMS').val(parseInt(form_idx) + 1);
}
function add_answers_input_form() {
var form_idx = $('#id_answers-TOTAL_FORMS').val();
$('#answer_form_set').append($('#answer_empty_form').html().replace(/__prefix__/g, form_idx));
$('#id_answers-TOTAL_FORMS').val(parseInt(form_idx) + 1);
}
$(document).ready(function () {
$("#add_examination").appendTo($("label[for='id_examination']"));
@@ -123,8 +117,6 @@
$('#add_more_images').click(() => { add_input_form() });
$('#add_more_answers').click(() => { add_answers_input_form() });
$("input[type=file]").on('change', function () {
$(this).removeClass("image-ident-warning");