{% extends "ishtar/sheet.html" %} {% load i18n ishtar_helpers window_field from_dict link_to_window window_tables window_ope_tables window_header humanize %} {% block head_title %}{% trans "Treatment request" %} - {{ item.name|default:"" }}{% endblock %} {% block toolbar %} {% window_nav item window_id 'show-treatmentfile' 'treatmentfile_modify' 'show-historized-treatmentfile' 'revert-treatmentfile' previous next 1 %} {% endblock %} {% block content %} {% with perm_documents=permission_view_own_document|or_:permission_view_document %} {% with has_documents=item|safe_or:"documents.count|documents_list" %} {% with display_documents=perm_documents|and_:has_documents %}
{{ 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 %}" "" %} {% include "ishtar/blocks/sheet_json.html" %}