From bcb27ee5d77a8d60e25443f9aef59c395b4cee06 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 16 Jan 2014 20:49:57 +0100 Subject: Improve layout of administrativ acts in tables and record carts (refs #1621) --- .../blocks/window_tables/administrativacts.html | 18 +++++++++++++++++ .../templates/ishtar/sheet_operation.html | 23 +++------------------- 2 files changed, 21 insertions(+), 20 deletions(-) create mode 100644 archaeological_operations/templates/ishtar/blocks/window_tables/administrativacts.html (limited to 'archaeological_operations/templates') diff --git a/archaeological_operations/templates/ishtar/blocks/window_tables/administrativacts.html b/archaeological_operations/templates/ishtar/blocks/window_tables/administrativacts.html new file mode 100644 index 000000000..9feb51e72 --- /dev/null +++ b/archaeological_operations/templates/ishtar/blocks/window_tables/administrativacts.html @@ -0,0 +1,18 @@ +{% load i18n %} + + + + + + + + {% for act in data %} + + + + + + {% empty %} + + {% endfor %} +
{{caption}}
{% trans "Ref." %}{% trans "Type" %}{% trans "Date" %}
{{act.full_ref}}{{act.act_type}}{{act.signature_date}}
{% trans "No administrative act associated" %}
diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 9d9b845e3..77e4f1f1d 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -1,5 +1,5 @@ {% extends "ishtar/sheet.html" %} -{% load i18n window_tables %} +{% load i18n window_tables window_ope_tables %} {% block head_sheet %} {{block.super}} @@ -100,25 +100,8 @@ {% endfor %} - - - - - - - - - {% for act in item.administrative_act.all %} - - - - - - - {% empty %} - - {% endfor %} -
{%trans "Administrative acts"%}
{% trans "Year" %}{% trans "Ref." %}{% trans "Type" %}{% trans "Date" %}
{{act.signature_date.year}}{% if act.ref_sra %}{{act.ref_sra}}{% endif %}{{act.act_type}}{{act.signature_date}}
{% trans "No acts associated to this operation" %}
+{% trans "Administrativ acts" as administrativeacts_label %} +{% table_administrativact administrativeacts_label item.administrative_act.all %} {% trans "Document from this operation" as operation_docs %} {% if item.source.count %} {% table_document operation_docs item.source.all %}{% endif %} -- cgit v1.2.3