From 5a52b18c2cd4fcde86cefb84f90b4bd0df7be5a3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 4 Jun 2018 16:41:41 +0200 Subject: Rebase migrations --- ishtar_common/templates/ishtar/sheet_document.html | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 ishtar_common/templates/ishtar/sheet_document.html (limited to 'ishtar_common/templates/ishtar/sheet_document.html') diff --git a/ishtar_common/templates/ishtar/sheet_document.html b/ishtar_common/templates/ishtar/sheet_document.html new file mode 100644 index 000000000..3d48963a2 --- /dev/null +++ b/ishtar_common/templates/ishtar/sheet_document.html @@ -0,0 +1,61 @@ +{% extends "ishtar/sheet.html" %} +{% load i18n window_field window_header link_to_window %} + +{% block head_title %}{% trans "Document" %} - {{item.title}}{% endblock %} + +{% block content %} +{% block window_nav %} +{# {% window_nav item window_id 'show-document' 'document_modify' %} #} +{% window_nav item window_id 'show-document' %} +{% endblock %} + + +{% block general %} + +{% if item.images.count %} +
+
+
+ {% include "ishtar/blocks/window_image.html" %} +
+
+
+{% endif %} + +
+ {% field_flex "Title" item.title %} + {% field_flex "Index" item.index %} + {% field_flex "Source type" item.source_type %} + {% field_flex "Format type" item.format_type %} + {% field_flex "Scale" item.scale %} + {% trans "Web link" as weblink_label %} + {% field_flex_url weblink_label item.associated_url %} + {% field_flex "Item number" item.item_number %} + {% field_flex "Ref." item.reference %} + {% field_flex "Internal ref." item.internal_reference %} + {% field_flex "Creation date" item.creation_date %} + {% field_flex "Receipt date" item.receipt_date %} + {% field_flex "Receipt date in documentation" item.receipt_date_in_documentation %} + {% field_flex "Has a duplicate" item.duplicate %} + {% field_flex "Description" item.description %} + {% field_flex "Comment" item.comment %} + {% field_flex "Additional information" item.additional_information %} + {% field_flex_full "Authors" item.authors|add_links:'person' %} +
+ +{% block related %} +

{% trans "Related items" %}

+{% if item.operations.count %} +{% field_flex_full "Sites" item.sites|add_links %} +{% field_flex_full "Operations" item.operations|add_links %} +{% field_flex_full "Context records" item.context_records|add_links %} +{% field_flex_full "Finds" item.finds|add_links %} +{% field_flex_full "Treatments" item.treatments|add_links %} +{% field_flex_full "Treatment files" item.treatment_files|add_links %} +{% field_flex_full "Warehouses" item.warehouses|add_links %} +{% endif %} + +{% endblock %} + +{% endblock %} +{% endblock %} -- cgit v1.2.3