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 +-- ishtar_common/locale/fr/LC_MESSAGES/django.po | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) 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 }}

diff --git a/ishtar_common/locale/fr/LC_MESSAGES/django.po b/ishtar_common/locale/fr/LC_MESSAGES/django.po index 96a467273..d6cd9f86d 100644 --- a/ishtar_common/locale/fr/LC_MESSAGES/django.po +++ b/ishtar_common/locale/fr/LC_MESSAGES/django.po @@ -447,9 +447,8 @@ msgid "Localisation" msgstr "Localisation" #: views.py:79 -#, fuzzy msgid "New person" -msgstr "Peut voir les Personnes" +msgstr "Nouvelle personne" #: views.py:86 msgid "Person modification" @@ -632,7 +631,7 @@ msgstr "Identifiant complet :" #: templates/sheet_contextrecord.html:11 templates/sheet_contextrecord.html:54 #: templates/sheet_operation.html:10 msgid "Patriarche OA code not yet recorded!" -msgstr "Code Patriarche pas encore enregistré !" +msgstr "Code d'opération Patriarche non renseigné !" #: templates/sheet_contextrecord.html:12 msgid "Temporary ID:" -- cgit v1.2.3