diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-09 17:41:26 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-09 17:41:26 +0200 | 
| commit | 8518d2162837444c9ac2b4d1ca67fa5f458db869 (patch) | |
| tree | f84ce92a380fb5eb9e3e75bc6bba12f1444de5ea | |
| parent | 39e3c2257036f6d2e60a54d65031e17d433a3c7c (diff) | |
| download | Ishtar-8518d2162837444c9ac2b4d1ca67fa5f458db869.tar.bz2 Ishtar-8518d2162837444c9ac2b4d1ca67fa5f458db869.zip | |
Sheet person: add collaborator table
| -rw-r--r-- | archaeological_operations/models.py | 1 | ||||
| -rw-r--r-- | ishtar_common/templates/ishtar/sheet_person.html | 6 | 
2 files changed, 7 insertions, 0 deletions
| diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 3be4dd95d..637bbb7be 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -424,6 +424,7 @@ class Operation(ClosedItem, BaseHistorizedItem, OwnPerms, ValueGetter,          'towns_label': 'towns',          'scientist__pk': 'scientist__pk',          'in_charge__pk': 'in_charge__pk', +        'collaborators__pk': 'collaborators__pk',      }      COL_LABELS = { diff --git a/ishtar_common/templates/ishtar/sheet_person.html b/ishtar_common/templates/ishtar/sheet_person.html index ef8bb9064..308739619 100644 --- a/ishtar_common/templates/ishtar/sheet_person.html +++ b/ishtar_common/templates/ishtar/sheet_person.html @@ -83,11 +83,17 @@  {% if item.operation_scientist_responsability.count %}  {% dynamic_table_document ao 'operations' 'scientist__pk' item.pk '' output %}  {% endif %} +  {% trans "Associated operations as responsible" as ao %}  {% if item.operation_responsability.count %}  {% dynamic_table_document ao 'operations' 'in_charge__pk' item.pk '' output %}  {% endif %} +{% trans "Associated operations as collaborator" as colla %} +{% if item.operation_collaborator.count %} +{% dynamic_table_document colla 'operations' 'collaborators__pk' item.pk '' output %} +{% endif %} +  {% trans "In charge of archaeological files" as af %}  {% if item.file_responsability.count %}  {% dynamic_table_document af 'files' 'in_charge__pk' item.pk '' output %} | 
