summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ishtar/templates/sheet_context_proto.html115
1 files changed, 115 insertions, 0 deletions
diff --git a/ishtar/templates/sheet_context_proto.html b/ishtar/templates/sheet_context_proto.html
new file mode 100644
index 000000000..365a766b5
--- /dev/null
+++ b/ishtar/templates/sheet_context_proto.html
@@ -0,0 +1,115 @@
+{% extends "sheet.html" %}
+{% load i18n %}
+{% block content %}
+<div class='tool'>{%trans "Export as:"%} <a href='{% url show-file item.operation.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-file item.operation.pk "pdf" %}'>{%trans "PDF file"%}</a></div>
+
+<h3>{% trans "Context Unit"%}</h3>
+
+{% if item.operation.patriarche_code %}<p><label>{%trans "Complete_label:"%}</label> <span class='value'>{{ item.operation.complete_label }}</span></p>{%endif%}<!-- Displayed as Patriarche_code/Context_unit_label -->
+{% if item.operation.patriarche_code_not_recorded %}<p><label>{%trans "Patriarche OA code not yet recorded !"%}</label></p>
+<p><label>{%trans "Temporary_label:"%}</label> <span class='value'>{{ item.operation.temporary_label }}<!-- Displayed as Ope_year/Ope_number/Context_unit_label -->
+{%endif%}
+<p><label>{% trans "Type:" %}</label> <span class='value'>{{ item.unit_type }}</span></p>
+<p><label>{% trans "Chronology:" %}</label> <span class='value'>{{ item.period.all|join:", " }}</span></p>
+<p><label>{% trans "Place:" %}</label> <span class='value'>{{ item.place }}</span></p>
+<p><label>{% trans "Parcel:" %}</label> <span class='value'>{{ item.section_and_parcel }}</span></p>
+
+<h3>{% trans "Description"%}</h3>
+
+<p><label>{% trans "Description:" %}</label> <span class='value'>{{ item.description }}</span></p>
+{% if item.lenght %}<p><label>{% trans "Length (cm):" %}</label> <span class='value'>{{ item.length }}</span></p>{%endif%}
+{% if item.width %}<p><label>{% trans "Width (cm):" %}</label> <span class='value'>{{ item.width }}</span></p>{%endif%}
+{% if item.depth %}<p><label>{% trans "Depth (cm):" %}</label> <span class='value'>{{ item.depth }}</span></p>{%endif%}
+
+<h3>{% trans "Interpretation"%}</h3>
+
+{% if item.activity %}<p><label>{% trans "Activity:" %}</label> <span class='value'>{{ item.activity }}</span></p>{%endif%}
+{% if item.identification %}<p><label>{% trans "Identification:" %}</label> <span class='value'>{{ item.identification }}</span></p>{%endif%}
+{% if item.interpretation %}<p><label>{% trans "Interpretation:" %}</label> <span class='value'>{{ item.interpretation }}</span></p>{%endif%}
+
+{% if item.TAQ or item.TAQ_estimated or item.TPQ or item.TPQ_estimated %}
+<h3>{% trans "Datations"%}</h3>
+{% if item.TAQ %}<p><label>{% trans "TAQ:" %}</label> <span class='value'>{{ item.TAQ }}</span></p>{%endif%}
+{% if item.TAQ_estimated %}<p><label>{% trans "TAQ estimated:" %}</label> <span class='value'>{{ item.TAQ_estimated }}</span></p>{%endif%}
+{% if item.TPQ %}<p><label>{% trans "TPQ:" %}</label> <span class='value'>{{ item.TPQ }}</span></p>{%endif%}
+{% if item.TPQ_estimated %}<p><label>{% trans "TPQ estimated:" %}</label> <span class='value'>{{ item.TPQ_estimated }}</span></p>{%endif%}
+{%endif%}
+
+{% if item.related_operation %}<!-- If an Operation is linked to that context then a resume is displayed -->
+<h3>{% trans "Operation resume"%}</h3>
+<p><label>{%trans "Year:"%}</label> <span class='value'>{{ item.operation.year }}</span></p>
+<p><label>{%trans "Numerical reference:"%}</label> <span class='value'>{{ item.operation.numeric_reference }}</span></p>
+{% if item.operation.patriarche_code %}<p><label>{%trans "Patriarche OA code:"%}</label> <span class='value'>{{ item.operation.patriarche_code }}</span></p>{%endif%}
+{% if item.operation.patriarche_code_not_recorded %}<p><label>{%trans "Patriarche OA code not yet recorded !"%}</label></p>{%endif%}
+<p><label>{%trans "Operation's name:"%}</label> <span class='value'>{{ item.operation.internal_reference }}</span></p>
+<p><label>{%trans "Head scientist:"%}</label> <span class='value'>{{ item.operation.head_scientist.full_label }}</span></p>
+<p><label>{%trans "State:"%}</label> <span class='value'>{% if item.operation.is_active %}{%trans "Active file"%}</span></p>
+{% else %}{%trans "Closed operation"%}</span></p>
+<p><label>{%trans "Closing date:"%}</label> <span class='value'>{{ item.operation.closing.date }} <strong>{%trans "by" %}</strong> {{ item.operation.closing.user }}</span></p>
+{% endif %}
+<p><label>{%trans "Type:"%}</label> <span class='value'>{{ item.operation.operation_type }}</span></p>
+<p><label>{%trans "Remains:"%}</label> <span class='value'>{{ item.operation.remains.all|join:", " }}</span></p>
+<p><label>{%trans "Periods:"%}</label> <span class='value'>{{ item.operation.periods.all|join:", " }}</span></p>
+{% if item.operation.comment %}<p><label>{%trans "Comment:"%}</label> <span class='value'>{{ item.operation.comment }}</span></p>{%endif%}
+<h3>{% trans "Localisation"%}</h3>
+<p><label>{%trans "Towns:"%}</label> <span class='value'>{{ item.operation.towns.all|join:", " }}</span></p>
+<p><label>{%trans "Related operation:"%}</label> <span class='value'><a href='{% url show-operation item.related_operation.pk ''%}'>{{ item.related_operation }}</a></span></p><!-- Displayed as Year/index/Commune/Common_name This should be a link to the file sheet of the related operation -->
+{% else %}<p><label>{%trans "No operation linked to this context unit !"%}</label></p>
+{% endif %}
+
+<h3>{% trans "Documentation"%}</h3>
+<table>
+ <caption>{%trans "Documents"%}</caption>
+ <tr>
+ <th>{% trans "Title" %}</th>
+ <th>{% trans "Type" %}</th>
+ <th>{% trans "Authors" %}</th>
+ <th>{% trans "Localisation" %}</th>
+ </tr>
+ {% for doc in item.operation.doc.all %}
+ <tr>
+ <td>{{ doc.title }}</td>
+ <td class='string'>{{doc.type}}</td>
+ <td>{{ doc.author.all|join:", " }}</td>
+ <td>{{ doc.localisation }}</td>
+ </tr>
+ {% empty %}
+ <tr><td colspan="4" class='no_items'>{% trans "No document associated to this context unit" %}</td></tr>
+ {% endfor %}
+</table>
+
+<h3>{% trans "Finds"%}</h3><!-- The list of finds must be listed here -->
+<table>
+ <caption>{%trans "Finds"%}</caption>
+ <tr>
+ <th>{% trans "Find_complete_Label" %}</th>
+ <th>{% trans "Find_complete_material_type_Label" %}</th>
+ <th>{% trans "Context_record" %}</th>
+ <th>{% trans "Periods" %}</th>
+ <th>{% trans "Description" %}</th>
+ <th>{% trans "Weight" %}</th>
+ <th>{% trans "Numbers" %}</th>
+ <th>{% trans "Parcel" %}</th>
+ <th class='link'>&nbsp;</th>
+ </tr>
+ {% for find in item.find.all %}
+ <tr>
+ {% if item.operation.patriarche_code %}<th>{% trans "item.find.complete_label" %}</th><!-- Displayed as (Patriarche operation code)-(Record unit label)-(Finds label). -->{%endif%}
+ {% if item.operation.patriarche_code_not_recorded %}<th>{% trans "item.find.not_patriarche_complete_label" %}</th><!-- Displayed as (Year)-(index)-(Record unit label)-(Finds label). -->{%endif%}
+ {% if item.operation.patriarche_code %}<th>{% trans "item.find.material_type_complete_label" %}</th><!-- Displayed as (Patriarche operation code)-(Record unit label)-(material code)-(Finds label indexed by material type). -->{%endif%}
+ {% if item.operation.patriarche_code_not_recorded %}<th>{% trans "item.find.material_type_not_patriarche_complete_label" %}</th><!-- Displayed as (Year)-(index)-(Record unit label)-(material code)-(Finds label indexed by material type). -->{%endif%}
+
+ <td class='string'>{{item.find.context_record}}</td>
+ <td>{{ item.find.period.all|join:", " }}</td>
+ <td>{{ item.find.description }}</td>
+ <td>{{ item.find.weight }}</td>
+ <td>{{ item.find.numbers }}</td>
+ <td>{{ item.find.record_unit.section_and_parcel }}</td><!-- Displayed as (Section)-(parcel number). A record unit can be linked to only one parcel. -->
+ <td class='link'><a href="#{#{%url show-find item.find.pk%}#}">{% trans "Details" %}</a></td>
+ </tr>
+ {% empty %}
+ <tr><td colspan="9" class='no_items'>{% trans "No find associated to this operation" %}</td></tr>
+ {% endfor %}
+</table>
+
+{% endblock %}