From f5136dfef703af72c3deb70fc68a84bee8a5ae82 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 17 Apr 2013 00:57:42 +0200 Subject: Add common name to operation sheet --- archaeological_operations/forms.py | 3 ++- archaeological_operations/templates/ishtar/sheet_operation.html | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 72834d8f0..0b2555148 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -111,7 +111,8 @@ ParcelFormSet = formset_factory(ParcelForm, can_delete=True, ParcelFormSet.form_label = _(u"Parcels") class OperationSelect(TableSelect): - common_name = forms.CharField(label=_(u"Name"), max_length=30) + common_name = forms.CharField(label=_(u"Name (full text search)"), + max_length=30) if settings.COUNTRY == 'fr': code_patriarche = forms.IntegerField( widget=widgets.JQueryAutoComplete("/" + settings.URL_PATH + \ diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 491304125..2fab55a39 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -3,14 +3,13 @@ {% block content %}
{%trans "Export as:"%} {%trans "OpenOffice.org file"%}, {%trans "PDF file"%}

{% trans "General"%}

+{% if item.common_name %}

{{ item.common_name }}

{% endif %}

{{ item.year }}

{% if item.operation.operation_code %}

{{ item.operation_code }}

{% endif %} {% if item.code_patriarche %}

{{ item.code_patriarche }}

{%else%}

{%trans "Patriarche OA code not yet recorded!"%}

{%endif%} -{#

{{ item.internal_reference }}

#} -

{{ item.history.all.0.history_date }}

{% if item.start_date %}

{{ item.start_date }}

-- cgit v1.2.3