summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/templates')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index 34c442542..6b557bc55 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -29,6 +29,7 @@
{% 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 can_change=permission_change_own_find|or_:permission_change_find %}
{% with has_documents=item|safe_or:"documents.count|documents_list"|safe_and_not:"documents_not_available" %}
{% with display_documents=can_view_documents|and_:has_documents %}
{% with has_image=item.images_number %}
@@ -252,7 +253,7 @@
{% endif %}
{% with dating_list=item|m2m_listing:"datings" %}
- {% if dating_list or item.dating_comment or item.cultural_attributions_count or item.periods_count %}
+ {% if can_change or dating_list or item.dating_comment or item.cultural_attributions_count or item.periods_count %}
<h3>{% trans "Periods / Datings" %}</h3>
{% if item.cultural_attributions_count or item.periods_count %}
<div class='row'>
@@ -260,8 +261,10 @@
{% field_flex_multiple_obj "Cultural attributions" item 'cultural_attributions' %}
</div>
{% endif %}
- {% if dating_list %}
+ {% if can_change or dating_list %}
+ {% with url_dating="find-dating" %}
{% include "ishtar/blocks/sheet_dating_list.html" %}
+ {% endwith %}
{% endif %}
<div class='row'>
{% field_flex_full "Comment on dating" item.dating_comment "<pre>" "</pre>" %}
@@ -321,7 +324,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 %}{% endwith %}{% endwith %}{% endwith %} {% endwith %}
{% endblock %}