diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-07 14:21:16 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:23:20 +0100 |
commit | dd56c0880afc6a9246d7a598fc3e24c2d89aea83 (patch) | |
tree | 2143564048a644a3975919afe93a049f53e5bea1 /archaeological_finds | |
parent | 30feb698f1d3a5fe91a55451c7a3ac8ffcdab621 (diff) | |
download | Ishtar-dd56c0880afc6a9246d7a598fc3e24c2d89aea83.tar.bz2 Ishtar-dd56c0880afc6a9246d7a598fc3e24c2d89aea83.zip |
Find sheet: do not display container information if no permission
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 1ccfbad8e..45544d415 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -26,6 +26,7 @@ {% with non_modif_treatments_count=item.non_modif_treatments_count %} {% with associated_treatment_files_count=item.associated_treatment_files_count %} +{% with can_view_container=permission_view_own_container|or_:permission_view_container %} {% with display_warehouse_treatments=item.container|or_:item.container_ref|or_:item.upstream_treatment|or_:item.downstream_treatment|or_:non_modif_treatments_count|or_:associated_treatment_files_count %} {% with can_view_documents=permission_view_own_document|or_:permission_view_document %} {% with display_documents=can_view_documents|and_:item.documents_count %} @@ -300,6 +301,7 @@ {% endif %} {% endcomment %} {% if item.container or item.container_ref %} + {% if can_view_container %} <h3>{% trans "Warehouse - container" %}</h3> <div class='row'> {% if item.container_ref != item.container and item.container_ref %} @@ -372,6 +374,15 @@ {% endif %} </div> {% endif %} + + + <div class="alert alert-info" role="alert"> + <i class="fa fa-info-circle" aria-hidden="true"></i> + {% trans "Container information not available." %} + </div> + + + {% endif %} {% if item.upstream_treatment or item.downstream_treatment or non_modif_treatments_count %} {% if non_modif_treatments_count %} <h3>{% trans "Simple treatments"%}</h3> @@ -560,7 +571,7 @@ {% endif %} </div> -{% endwith %} {% endwith %} {% endwith %} {% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %} +{% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %} {% endblock %} |