diff --git a/atlas/forms.py b/atlas/forms.py index f96fd7ca..f95a9a18 100755 --- a/atlas/forms.py +++ b/atlas/forms.py @@ -97,6 +97,8 @@ class AtlasForm(ModelForm): fields = [ #"examination", #"site", + "title", + "subspecialty", "description", "history", "findings", diff --git a/atlas/templates/atlas/base.html b/atlas/templates/atlas/base.html index 0ae55420..5080f9fd 100755 --- a/atlas/templates/atlas/base.html +++ b/atlas/templates/atlas/base.html @@ -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 %} Cases / Series / diff --git a/atlas/templates/atlas/case_detail.html b/atlas/templates/atlas/case_detail.html index c5be316f..2288a517 100755 --- a/atlas/templates/atlas/case_detail.html +++ b/atlas/templates/atlas/case_detail.html @@ -6,11 +6,11 @@
Edit -Clone -Delete +Clone +Delete Add Note {% if request.user.is_superuser %} -Admin Edit +Admin Edit {% endif %} {% include 'atlas/atlas_display_block.html' %} {% endblock %} diff --git a/atlas/templates/atlas/case_form.html b/atlas/templates/atlas/case_form.html index 2740f3dc..9e382aff 100755 --- a/atlas/templates/atlas/case_form.html +++ b/atlas/templates/atlas/case_form.html @@ -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 () { diff --git a/atlas/templates/atlas/series_form.html b/atlas/templates/atlas/series_form.html index ee9486f3..61ad33cf 100755 --- a/atlas/templates/atlas/series_form.html +++ b/atlas/templates/atlas/series_form.html @@ -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");