{% 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" %}{% endblock %}
{% block content %}
{% window_nav item window_id 'show-treatment' 'treatment_modify' %}
{% if item.image %}
{% endif%}
{{ item.label|default:"" }}
{% if item.other_reference %}{{ item.other_reference }}
{% endif %}{{ item.year }} - {{ item.index }}
{% if item.external_id %}{{ item.external_id }}
{% endif %} {% if item.end_date %}{% trans "Closed" context "Treatment" %} ({{item.end_date}})
{% else %}{% trans "Active" context "Treatment" %}
{% endif %}" "" %} {% field "Description" item.description "
" "" %} {% field "Goal" item.goal "
" "" %} {% endif %} {% trans "Upstream finds" as finds %} {% if item.upstream.count %} {% dynamic_table_document finds 'finds_for_treatment' 'downstream_treatment' item.pk 'TABLE_COLS_FOR_OPE' output %} {% endif %} {% trans "Downstream finds" as finds %} {% if item.downstream.count %} {% dynamic_table_document finds 'finds_for_treatment' 'upstream_treatment' item.pk 'TABLE_COLS_FOR_OPE' output %} {% endif %} {% endblock %}