diff options
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_find.html')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index ff0ccb2b0..1af09b030 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -20,9 +20,10 @@ {% with permission_view_own_document=permission_view_own_document %} {% with m2m_listing_datings=item|m2m_listing:'datings' %} +{% with non_modif_treatments_count=item.non_modif_treatments_count %} {% 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 display_warehouse_treatments=item.container|or_:item.container_ref|or_:item.upstream_treatment|or_:item.downstream_treatment|or_:non_modif_treatments_count %} {% with can_view_documents=permission_view_own_document|or_:permission_view_document %} {% with display_documents=can_view_documents|and_:item.documents.count %} @@ -263,9 +264,9 @@ {% field_flex "Precise localisation" item.container.cached_division %} </div> {% endif %} - {% if item.upstream_treatment or item.downstream_treatment or item.treatments.count %} - {% if item.treatments.all %} - <h3>{% trans "Treatments"%}</h3> + {% if item.upstream_treatment or item.downstream_treatment or non_modif_treatments_count %} + {% if non_modif_treatments_count %} + <h3>{% trans "Simple treatments"%}</h3> <table id='{{window_id}}-treatments' class="table table-striped"> <tr> <th> </th> @@ -279,7 +280,8 @@ <th>{% trans "Start date" %}</th> <th>{% trans "End date" %}</th> </tr> - {% for treatment in item.treatments.all %} + {# {% for treatment in item.treatments.all %} #} + {% for items, treatment in item.non_modif_treatments %} <tr> <td> <a class="display_details" href="#" @@ -291,7 +293,7 @@ <td class='string'>{{ treatment.label|default_if_none:"-" }}</td> <td class='string'>{{ treatment.treatment_types_lbl }}</td> <td class='string'>{{ treatment.treatment_state|default_if_none:"-" }}</td> - <td class='item-list'>{% for it in treatment.limited_finds %}<span>{{it}} {{it|link_to_window:request}}</span>{% endfor %}</td> + <td class='item-list'>{% for it in items %}<span>{{it}} {{it|link_to_window:request}}</span>{% endfor %}</td> <td class='string'>{{ treatment.person|default_if_none:"-" }}</td> <td class='string'>{{ treatment.container|default_if_none:"-" }}</td> <td class='string'>{{ treatment.start_date|default_if_none:"-" }}</td> @@ -395,7 +397,7 @@ {% endif %} </div> -{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %} +{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %}{% endwith %} {% endblock %} |