From 8585f7b99bd43670a7be676b23d3ef37149982c9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 6 Jun 2016 18:42:38 +0200 Subject: Improvement on find sheet --- .../templates/ishtar/sheet_find.html | 62 +++++++++------------- 1 file changed, 26 insertions(+), 36 deletions(-) (limited to 'archaeological_finds') diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 370f4bb37..b37a9957c 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -10,7 +10,7 @@ {% if previous or next %}
-{%if previous%} +{% if previous %} {%trans "Previous version"%} ({{previous}}) {% endif %} {% if previous and next %} - {% endif %} @@ -68,16 +68,18 @@ {% trans "Type" %} {% trans "Related find" %} {% trans "Person" %} + {% trans "Container" %} {% trans "Start date" %} {% trans "End date" %} {% for items, treatment in item.upstream_treatments %} {{ treatment.treatment_type }} - {% for item in items %}{% if not forloop.first %} ; {% endif %} {{item}} {{ item|link_to_window}}{% endfor %} - {{ treatment.person|default_if_none:"" }} - {{ treatment.start_date|default_if_none:"" }} - {{ treatment.end_date|default_if_none:"" }} + {% for item in items %}{{item}} {{ item|link_to_window}}{% endfor %} + {{ treatment.person|default_if_none:"-" }} + {{ treatment.container|default_if_none:"-" }} + {{ treatment.start_date|default_if_none:"-" }} + {{ treatment.end_date|default_if_none:"-" }} {% endfor %} @@ -96,7 +98,7 @@ {% for items, treatment in item.downstream_treatments %} {{ treatment.treatment_type }} - {% for item in items %}{% if not forloop.first %} ; {% endif %} {{item}} {{ item|link_to_window}}{% endfor %} + {% for item in items %}{{item}} {{ item|link_to_window}}{% endfor %} {{ treatment.person|default_if_none:"" }} {{ treatment.start_date|default_if_none:"" }} {{ treatment.end_date|default_if_none:"" }} @@ -108,44 +110,31 @@

{% trans "Associated base finds"%}

{% for base_find in item.base_finds.all %} -

-{{base_find.complete_id}}

- -{% field "Short ID" base_find.short_id %} + -

-{{ base_find.context_record }}

-

-{{base_find.context_record.parcel}}

-

-{{ base_find.context_record.operation }}

+{% field "Description" base_find.description "
" "
" %} +{% field "Comment" base_find.comment "
" "
" %} {% if forloop.counter0 %}
{% endif %} {% endfor %} -{% if not item.source.count %} - {% trans "No document associated to this find" %} -{% else %} - +{% if item.source.count %} +

{% trans "Documents"%}

+
@@ -165,7 +154,8 @@
{%trans "Documents"%}
{% trans "Title" %}
{% endif %} -- cgit v1.2.3