summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-19 17:14:15 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-19 17:14:15 +0100
commit441ece7a95039679455eb45b029b8a84a4be508d (patch)
treefe3214e91d2c747b7c5195125cefaaaf9c0c66ad
parent9c6cdedf75efc289f9b12d2d2eb1798f8cd9c171 (diff)
downloadIshtar-441ece7a95039679455eb45b029b8a84a4be508d.tar.bz2
Ishtar-441ece7a95039679455eb45b029b8a84a4be508d.zip
Treatments/Treatment files sheets: add administrative act list (refs #3403)
-rw-r--r--archaeological_finds/templates/ishtar/sheet_treatment.html6
-rw-r--r--archaeological_finds/templates/ishtar/sheet_treatmentfile.html7
2 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..eeaa95dff 100644
--- a/archaeological_finds/templates/ishtar/sheet_treatment.html
+++ b/archaeological_finds/templates/ishtar/sheet_treatment.html
@@ -1,5 +1,5 @@
{% 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 %}
@@ -56,5 +56,9 @@
{% trans "Related operations" as related_operations %}
{% dynamic_table_document related_operations 'operations' 'related_treatment' item.pk 'TABLE_COLS' output %}
+{% if item.administrative_act.count %}
+{% trans "Administrative acts" as admact_lbl %}
+{% table_administrativact admact_lbl item.administrative_act.all %}
+{% endif %}
{% endblock %}
diff --git a/archaeological_finds/templates/ishtar/sheet_treatmentfile.html b/archaeological_finds/templates/ishtar/sheet_treatmentfile.html
index 097f5defd..4b7405192 100644
--- a/archaeological_finds/templates/ishtar/sheet_treatmentfile.html
+++ b/archaeological_finds/templates/ishtar/sheet_treatmentfile.html
@@ -1,5 +1,5 @@
{% 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 request" %}{% endblock %}
@@ -47,4 +47,9 @@
{% dynamic_table_document treatments 'treatments' 'file' item.pk '' output '' 'treatment' %}
{% endif %}
+{% if item.administrative_act.count %}
+{% trans "Administrative acts" as admact_lbl %}
+{% table_administrativact admact_lbl item.administrative_act.all %}
+{% endif %}
+
{% endblock %}