{% extends "ishtar/sheet.html" %} {% load i18n window_field from_dict link_to_window window_tables window_header humanize %} {% load url from future %} {% block head_title %}{% trans "Treatment request" %}{% endblock %} {% block content %} {% window_nav item window_id 'show-treatmentfile' 'treatmentfile_modify' %}

{{ item.name|default:"" }}

{% if item.internal_reference %}

{{ item.internal_reference }}

{% endif %}

{{ item.year }} - {{ item.index }}

{% if item.external_id %}

{{ item.external_id }}

{% endif %} {% if item.end_date %}

{% trans "Closed" context "Treatment request" %} ({{item.end_date}})

{% else %}

{% trans "Active" context "Treatment request" %}

{% endif %} {% field "Comment" item.comment "
" "
" %} {% if item.applicant %}

{% trans "Applicant" %}

{% field "Contact" item.applicant.address_lbl %} {% endif %} {% if item.applicant_organisation %}

{% trans "Applicant organisation" %}

{% field "Contact" item.applicant.address_lbl %} {% endif %} {% trans "Treatments" as treatments %} {% if item.treatments.count %} {% dynamic_table_document treatments 'treatments' 'file' item.pk '' output '' 'treatment' %} {% endif %} {% endblock %}