diff options
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_treatment.html')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_treatment.html | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_treatment.html b/archaeological_finds/templates/ishtar/sheet_treatment.html index 633fa1829..9d6c75425 100644 --- a/archaeological_finds/templates/ishtar/sheet_treatment.html +++ b/archaeological_finds/templates/ishtar/sheet_treatment.html @@ -1,10 +1,10 @@ {% extends "ishtar/sheet.html" %} -{% load i18n window_field from_dict link_to_window window_tables window_header humanize %} +{% load i18n window_field from_dict link_to_window window_tables window_ope_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' %} +{% window_nav item window_id 'show-treatment' 'treatment_modify' 'show-historized-treatment' 'revert-treatment' previous next 1 %} {% if item.image %} <a href='{{item.image.url}}' rel="prettyPhoto" title="{{item.label}}" class='photo'><img src='{{item.thumbnail.url}}'/></a> @@ -56,5 +56,14 @@ {% trans "Related operations" as related_operations %} {% dynamic_table_document related_operations 'operations' 'related_treatment' item.pk 'TABLE_COLS' output %} +{% if item.source.count %} +{% trans "Associated documents" as associated_docs %} +{% dynamic_table_document associated_docs 'treatments_docs' 'treatment' item.pk '' output %} +{% endif %} + +{% if item.administrative_act.count %} +{% trans "Administrative acts" as admact_lbl %} +{% table_administrativact admact_lbl item.administrative_act.all %} +{% endif %} {% endblock %} |