From eb6c62736d57d9efb8ba9fc35b16d26b9e88cb03 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 28 Aug 2015 12:11:41 +0200 Subject: Archaeological files: add departments to preventive forms - Wizards manage several many to many in one form --- archaeological_files/templates/ishtar/sheet_file.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archaeological_files/templates') diff --git a/archaeological_files/templates/ishtar/sheet_file.html b/archaeological_files/templates/ishtar/sheet_file.html index 2d7b6262d..fc5ddbe70 100644 --- a/archaeological_files/templates/ishtar/sheet_file.html +++ b/archaeological_files/templates/ishtar/sheet_file.html @@ -57,7 +57,8 @@ {% if item.comment %}

{{ item.comment }}

{%endif%}

{% trans "Localisation"%}

-

{{ item.towns.all|join:", " }}

+{% if item.towns.count %}

{{ item.towns.all|join:", " }}

{% endif %} +{% if item.departments.count %}

{{ item.departments.all|join:", " }}

{% endif %} {% if item.address %}

{{ item.address }}

{% if item.address_complement %}

{{ item.address_complement }}

{%endif%} -- cgit v1.2.3