diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-07 20:01:09 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-07 20:01:09 +0100 |
commit | a675244a70b1721aff0048ebb671480fb40a7f67 (patch) | |
tree | 5377e0e17c0a0f0952d37997aee038803b6ca680 /archaeological_finds/templates | |
parent | 5d8ef415bf5aa64174bd1a13003cc6d530df0d20 (diff) | |
download | Ishtar-a675244a70b1721aff0048ebb671480fb40a7f67.tar.bz2 Ishtar-a675244a70b1721aff0048ebb671480fb40a7f67.zip |
Manage treatment files
Diffstat (limited to 'archaeological_finds/templates')
3 files changed, 51 insertions, 0 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_treatmentfile.html b/archaeological_finds/templates/ishtar/sheet_treatmentfile.html new file mode 100644 index 000000000..f7df59bc4 --- /dev/null +++ b/archaeological_finds/templates/ishtar/sheet_treatmentfile.html @@ -0,0 +1,30 @@ +{% extends "ishtar/sheet.html" %} +{% load i18n window_field from_dict link_to_window window_tables window_header humanize %} +{% load url from future %} + +{% block head_title %}{% trans "Treatment file" %}{% endblock %} +{% block content %} +{% window_nav item window_id 'show-treatmentfile' %} + +<p class="window-refs">{{ item.name|default:"" }}</p> +{% if item.internal_reference %} +<p class="window-refs">{{ item.internal_reference }}</p>{% endif %} +<p class="window-refs">{{ item.year }} - {{ item.index }}</p> +{% if item.external_id %} +<p class="window-refs">{{ item.external_id }}</p>{% endif %} + +<ul class='form-flex'> + {% field_li "Type" item.type %} + {% field_li "Responsible" item.in_charge %} + {% field_li "Creation date" item.creation_date %} + {% field_li "Reception date" item.reception_date %} + {% field_li "End date" item.end_date %} +</ul> +{% field "Comment" item.comment "<pre>" "</pre>" %} + +{% trans "Treatments" as treatments %} +{% if item.treatments.count %} +{% dynamic_table_document treatments 'treatments' 'treatments' item.pk '' output %} +{% endif %} + +{% endblock %} diff --git a/archaeological_finds/templates/ishtar/sheet_treatmentfile_pdf.html b/archaeological_finds/templates/ishtar/sheet_treatmentfile_pdf.html new file mode 100644 index 000000000..be64ff7eb --- /dev/null +++ b/archaeological_finds/templates/ishtar/sheet_treatmentfile_pdf.html @@ -0,0 +1,18 @@ +{% extends "ishtar/sheet_treatmentfile.html" %} +{% block header %} +<link rel="stylesheet" href="{{STATIC_URL}}/media/style_basic.css?ver={{VERSION}}" /> +{% endblock %} +{% block main_head %} +{{ block.super }} +<div id="pdfheader"> + Ishtar – {{APP_NAME}} – {{item}} +</div> +{% endblock %} +{%block head_sheet%}{%endblock%} +{%block main_foot%} +<div id="pdffooter"> + – <pdf:pagenumber/> – +</div> +</body> +</html> +{%endblock%} diff --git a/archaeological_finds/templates/ishtar/sheet_treatmentfile_window.html b/archaeological_finds/templates/ishtar/sheet_treatmentfile_window.html new file mode 100644 index 000000000..ac692c304 --- /dev/null +++ b/archaeological_finds/templates/ishtar/sheet_treatmentfile_window.html @@ -0,0 +1,3 @@ +{% extends "ishtar/sheet_treatmentfile.html" %} +{% block main_head %}{%endblock%} +{% block main_foot %}{%endblock%} |