.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -19,9 +19,6 @@ Atlas:
|
||||
{% if request.user.is_authenticated %}
|
||||
<a href="{% url 'atlas:case_view' %}">Cases</a> /
|
||||
<a href="{% url 'atlas:series_view' %}">Series</a> /
|
||||
<a href="{% url 'atlas:condition_view' %}">Conditions</a> /
|
||||
<a href="{% url 'atlas:finding_view' %}">Findings</a> /
|
||||
<a href="{% url 'atlas:structure_view' %}">Structures</a> /
|
||||
<a href="{% url 'atlas:create' %}" title="Create a new atlas case">Create Case</a> /
|
||||
<a href="{% url 'atlas:series_create' %}" title="Create a new image series">Create Series</a>
|
||||
{% endif %}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{% extends 'atlas/base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<ul>
|
||||
<li><a href="{% url 'atlas:condition_view' %}">Conditions</a></li>
|
||||
<li><a href="{% url 'atlas:finding_view' %}">Findings</a></li>
|
||||
<li><a href="{% url 'atlas:structure_view' %}">Structures</li></a>
|
||||
<li><a href="{% url 'atlas:subspecialty_view' %}">Subspecialties</li></a>
|
||||
<li><a href="{% url 'atlas:presentation_view' %}">Presentations</li></a>
|
||||
<li><a href="{% url 'atlas:pathological_process_view' %}">Pathological Process</li></a>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
@@ -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/<int:pk>", views.condition_detail, name="condition_detail"),
|
||||
path(
|
||||
"condition/<int:pk>/delete",
|
||||
|
||||
@@ -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,
|
||||
#},
|
||||
)
|
||||
Reference in New Issue
Block a user