diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-11 19:23:51 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-11 19:23:51 +0100 |
commit | 6275ac4d3388f912a831c3f6178c3832ce9297b5 (patch) | |
tree | f5d133b3456888ccd805fdf5c50b880acab3e502 /archaeological_finds/templates/ishtar/sheet_find.html | |
parent | d68eed24e409cf6b5c15c77fbf1034843eea9acd (diff) | |
download | Ishtar-6275ac4d3388f912a831c3f6178c3832ce9297b5.tar.bz2 Ishtar-6275ac4d3388f912a831c3f6178c3832ce9297b5.zip |
Use JSON for M2M history
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_find.html')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index ac2df607d..a7302d16a 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -19,7 +19,9 @@ {% with permission_view_document=permission_view_document %} {% with permission_view_own_document=permission_view_own_document %} -{% with display_datings=item.integrities.count|or_:item.remarkabilities.count|or_:item.conservatory_state|or_:item.conservatory_comment|or_:item.alterations.count|or_:item.alteration_causes.count|or_:item.preservation_to_considers.count|or_:item.appraisal_date|or_:item.treatment_emergency|or_:item.insurance_value|or_:item.estimated_value|or_:item.historical_datings|or_:item.datings.count|or_:item.dating_comment %} +{% with m2m_listing_datings=item|m2m_listing:'datings' %} + +{% with display_datings=item.integrities.count|or_:item.remarkabilities.count|or_:item.conservatory_state|or_:item.conservatory_comment|or_:item.alterations.count|or_:item.alteration_causes.count|or_:item.preservation_to_considers.count|or_:item.appraisal_date|or_:item.treatment_emergency|or_:item.insurance_value|or_:item.estimated_value|or_:m2m_listing_datings|or_:item.dating_comment %} {% with display_warehouse_treatments=item.container|or_:item.container_ref|or_:item.upstream_treatment|or_:item.downstream_treatment|or_:item.treatments.count %} {% with can_view_documents=permission_view_own_document|or_:permission_view_document %} {% with display_documents=can_view_documents|and_:item.documents.count %} @@ -200,7 +202,7 @@ </div> {% endif %} - {% if item.historical_datings or item.datings.count or item.dating_comment %} + {% if m2m_listing_datings or item.dating_comment %} <h3>{% trans "Dating" %}</h3> <table id='{{window_id}}-datings' class="table table-striped"> <tr> @@ -211,7 +213,7 @@ <th>{% trans "Quality" %}</th> <th>{% trans "Precise dating" %}</th> </tr> - {% for dating in item|m2m_listing:'datings' %} + {% for dating in m2m_listing_datings %} <tr> <td> {{dating.period}} @@ -393,7 +395,7 @@ {% endif %} </div> -{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %} +{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %} {% endblock %} |