{% extends 'rcr/base.html' %}
{% load markdownify %}
{% block content %}
    <h2>Item: {{object.name}}</h2>
    {% include "rcr/item_rcr_details.html" %}

    <p>Radiology Categories:
        {% for category in object.radiology_categories.all %}
            {{category}}
        {% endfor %}
    </p>
    <p>Radiology Condition:
        {% for condition in object.radiology_condition.all %}
            {{condition}}
        {% endfor %}
    </p>

    <p>Oncology Category: {{object.oncology_category}}</p>

    <p>
        Level(s):
        {% for level in object.level.all %}
            {{level}},
        {% endfor %}
    </p>

    <p>
        Outcome: {{object.outcome}}
    </p>
    <p>
        Outcome reason: {{object.reason}}
    </p>

    <p>
        Date assessed: {{object.assessed_date}}
    </p>
    <p>
        Assigned to (radiology): {{object.assigned_to_radiology}}
    </p>
    <p>
        Assigned to (oncology): {{object.assigned_to_oncology}}
    </p>

    <p>
        Assessor(s):
        {% for ass in object.assessed_by.all %}
            {{ass}},
        {% endfor %}
    </p>
    <p>
        Completed (radiology): {{object.completed_radiology}}
    </p>
    <p>
        Completed (oncology): {{object.completed_oncology}}
    </p>


    <p><a href='{% url "rcr:radiology_update_view" object.pk %}'>Edit</a></p>

    <details><summary> </summary>
    </details>
{% endblock %}
{% block css %}
    <style>
        pre {
            white-space: pre-wrap;
        }
    </style>
{% endblock css %}
