summaryrefslogtreecommitdiff
path: root/ishtar/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-07-08 00:56:55 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-07-08 00:56:55 +0200
commit3586f706b1ea5e36009e5db59a8db7eb71ca50a4 (patch)
treef7b0823f41f8ffbed93e018bda8526c0f7b34283 /ishtar/templates
parent31b7b29906d8534ccc6318793750ad51650c12a2 (diff)
downloadIshtar-3586f706b1ea5e36009e5db59a8db7eb71ca50a4.tar.bz2
Ishtar-3586f706b1ea5e36009e5db59a8db7eb71ca50a4.zip
Add Open/Close criteria for Operations (refs #429)
Diffstat (limited to 'ishtar/templates')
-rw-r--r--ishtar/templates/sheet_operation.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar/templates/sheet_operation.html b/ishtar/templates/sheet_operation.html
index 1b6755385..0005ca82c 100644
--- a/ishtar/templates/sheet_operation.html
+++ b/ishtar/templates/sheet_operation.html
@@ -13,8 +13,8 @@
<p><label>{%trans "Edition date:"%}</label> <span class='value'>{{ item.history.all.0.history_date }}</span></p> <!-- date = now -->
-<p><label>{%trans "Begining date:"%}</label> <span class='value'>{{ item.start_date }}</span></p>
-<p><label>{%trans "Field work end date:"%}</label> <span class='value'>{{ item.end_date|default:"-" }}</span></p>
+{% if item.start_date %}<p><label>{%trans "Begining date:"%}</label> <span class='value'>{{ item.start_date }}</span></p>{%endif%}
+{% if item.end_date %}<p><label>{%trans "Field work end date:"%}</label> <span class='value'>{{ item.end_date|default:"-" }}</span></p>{%endif%}
<p><label>{%trans "Head scientist:"%}</label> <span class='value'>{{ item.in_charge.full_label }}</span></p>
<p><label>{%trans "State:"%}</label> <span class='value'>{% if item.is_active %}{%trans "Active file"%}</span></p>