diff --git a/atlas/tables.py b/atlas/tables.py index 3170ab4f..09a8d727 100755 --- a/atlas/tables.py +++ b/atlas/tables.py @@ -251,7 +251,7 @@ class PresentationTable(tables.Table): #) selection = tables.CheckBoxColumn(accessor="pk", orderable=False) - subspecialty = tables.ManyToManyColumn(verbose_name="Parents") + subspecialty = tables.ManyToManyColumn(verbose_name="Subspecialty") class Meta: model = Presentation diff --git a/atlas/templates/atlas/base.html b/atlas/templates/atlas/base.html index 9650cede..5080f9fd 100755 --- a/atlas/templates/atlas/base.html +++ b/atlas/templates/atlas/base.html @@ -19,9 +19,6 @@ Atlas: {% if request.user.is_authenticated %} Cases / Series / -Conditions / -Findings / -Structures / Create Case / Create Series {% endif %} diff --git a/atlas/templates/atlas/categories_list.html b/atlas/templates/atlas/categories_list.html new file mode 100644 index 00000000..bbf4c385 --- /dev/null +++ b/atlas/templates/atlas/categories_list.html @@ -0,0 +1,12 @@ +{% extends 'atlas/base.html' %} + +{% block content %} + +{% endblock %} \ No newline at end of file diff --git a/atlas/urls.py b/atlas/urls.py index 9a7114e6..b40cd517 100755 --- a/atlas/urls.py +++ b/atlas/urls.py @@ -11,6 +11,7 @@ urlpatterns = [ path("author/", views.author_list, name="author_list"), path("case/", views.CaseView.as_view(), name="case_view"), path("condition/", views.ConditionView.as_view(), name="condition_view"), + path("categories/", views.categories_list, name="categories_list"), path("condition/", views.condition_detail, name="condition_detail"), path( "condition//delete", diff --git a/atlas/views.py b/atlas/views.py index 1cbf0cec..8d36f437 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -836,3 +836,18 @@ class StructureAutocomplete(autocomplete.Select2QuerySetView): return Structure.objects.none() return qs + + +@login_required +@user_is_atlas_checker +def categories_list(request, pk): + #condition = get_object_or_404(Condition, pk=pk) + + # logging.debug(atlas.subspecialty.first().name.all()) + return render( + request, + "atlas/categories_list.html", + #{ + # "condition": condition, + #}, + ) \ No newline at end of file