diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-01-29 00:08:22 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-01-29 00:08:22 +0100 |
| commit | baf7f6d5da382877425a526e3a2044e9bf5fad56 (patch) | |
| tree | aab855539a05f8b9c3dec8df43a7bd01b1adbed4 /archaeological_operations/templates | |
| parent | 9859c31976a88c63baf36a66839d13eb3fdd3b88 (diff) | |
| download | Ishtar-baf7f6d5da382877425a526e3a2044e9bf5fad56.tar.bz2 Ishtar-baf7f6d5da382877425a526e3a2044e9bf5fad56.zip | |
Fix display of operations - fix bibracte import of operations
Diffstat (limited to 'archaeological_operations/templates')
| -rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 138a94d14..5f0626a02 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -27,7 +27,7 @@ <h3>{% trans "General"%}</h3> {% if item.common_name %}<p><label>{%trans "Name:"%}</label> <span class='value'>{{ item.common_name }}</span></p>{% endif %} -<p><label>{%trans "Year:"%}</label> <span class='value strong'>{{ item.year }}</span></p> +{% if item.year %}<p><label>{%trans "Year:"%}</label> <span class='value strong'>{{ item.year }}</span></p>{% endif %} {% if item.operation_code %}<p><label>{%trans "Numerical reference:"%}</label> <span class='value strong'>{{ item.operation_code }}</span></p>{% endif %} {% if item.code_patriarche %}<p><label>{%trans "Patriarche OA code:"%}</label> <span class='value'>{{ item.code_patriarche }}</span></p>{%else%} @@ -90,7 +90,12 @@ {% endif %} {% trans "Document from this operation" as operation_docs %} -{% if item.source.count %} {% table_document operation_docs item.source.all %}{% endif %} +{% if item.source.count %} +{% table_document operation_docs item.source.all|slice:":15" %} +{% if item.source.count > 15 %} +<em>Seuls les 15 premiers éléments ont été affichés sur un total de {{item.source.count}}.</em> +{% endif %} +{% endif %} <table> <caption>{%trans "Context records"%}</caption> @@ -102,7 +107,7 @@ <th>{% trans "Parcel" %}</th> <th class='link'> </th> </tr> - {% for context_record in item.context_record.all %} + {% for context_record in item.context_record.all|slice:"15" %} <tr> <td class='string'>{{ context_record.label }}</td> <td class='string'>{{context_record.unit|default:""}}</td> @@ -115,9 +120,12 @@ <tr><td colspan="6" class='no_items'>{% trans "No context record associated to this operation" %}</td></tr> {% endfor %} </table> +{% if item.context_record.count > 15 %} +<em>Seuls les 15 premiers éléments ont été affichés sur un total de {{item.context_record.count}}.</em> +{% endif %} {% trans "Documents from associated context records" as cr_docs %} -{% if item.context_record_docs_q.count %} {% table_document cr_docs item.context_record_docs_q.all %}{% endif %} +{% if item.context_record_docs_q.count %} {% table_document cr_docs item.context_record_docs_q.all|slice:"15" %}{% endif %} <div class='table'> <table> @@ -136,8 +144,8 @@ <th>{% trans "Warehouse" %}</th> <th class='link'> </th> </tr> - {% for context_record in item.context_record.all %} - {% for find in context_record.base_finds.all %} + {% for context_record in item.context_record.all|slice:"5" %} + {% for find in context_record.base_finds.all|slice:"15" %} <tr> {# OPE|MAT.CODE|UE|FIND_index #} <td class="ref">{{ find.complete_id|default:""}}</td> @@ -163,8 +171,11 @@ {% endfor %} </table> </div> +<em>Seuls les 15 premiers éléments des 5 premières UEs sont affichées</em> +{% comment %} {% trans "Documents from associated finds" as find_docs %} {% if item.find_docs_q.count %} {% table_document find_docs item.find_docs_q.all %}{% endif %} +{% endcomment %} {% endblock %} |
