.
This commit is contained in:
@@ -97,6 +97,8 @@ class AtlasForm(ModelForm):
|
|||||||
fields = [
|
fields = [
|
||||||
#"examination",
|
#"examination",
|
||||||
#"site",
|
#"site",
|
||||||
|
"title",
|
||||||
|
"subspecialty",
|
||||||
"description",
|
"description",
|
||||||
"history",
|
"history",
|
||||||
"findings",
|
"findings",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
Longs
|
Atlas
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block css %}
|
{% block css %}
|
||||||
@@ -15,7 +15,7 @@ Longs
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block navigation %}
|
{% block navigation %}
|
||||||
Longs:
|
Atlas:
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<a href="{% url 'atlas:case_view' %}">Cases</a> /
|
<a href="{% url 'atlas:case_view' %}">Cases</a> /
|
||||||
<a href="{% url 'atlas:series_view' %}">Series</a> /
|
<a href="{% url 'atlas:series_view' %}">Series</a> /
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
<div class="floating-header">
|
<div class="floating-header">
|
||||||
<a href="{% url 'atlas:atlas_update' pk=question.pk %}" title="Edit the Case">Edit</a>
|
<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_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 Rapid">Delete</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>
|
<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 %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% include 'atlas/atlas_display_block.html' %}
|
{% include 'atlas/atlas_display_block.html' %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -28,9 +28,9 @@
|
|||||||
|
|
||||||
|
|
||||||
function add_input_form() {
|
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));
|
$('#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 () {
|
$(document).ready(function () {
|
||||||
|
|||||||
@@ -32,12 +32,6 @@
|
|||||||
$('#id_images-TOTAL_FORMS').val(parseInt(form_idx) + 1);
|
$('#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 () {
|
$(document).ready(function () {
|
||||||
$("#add_examination").appendTo($("label[for='id_examination']"));
|
$("#add_examination").appendTo($("label[for='id_examination']"));
|
||||||
@@ -123,8 +117,6 @@
|
|||||||
|
|
||||||
|
|
||||||
$('#add_more_images').click(() => { add_input_form() });
|
$('#add_more_images').click(() => { add_input_form() });
|
||||||
$('#add_more_answers').click(() => { add_answers_input_form() });
|
|
||||||
|
|
||||||
|
|
||||||
$("input[type=file]").on('change', function () {
|
$("input[type=file]").on('change', function () {
|
||||||
$(this).removeClass("image-ident-warning");
|
$(this).removeClass("image-ident-warning");
|
||||||
|
|||||||
Reference in New Issue
Block a user