From 53caa6183befecb4396c61d28abc33aee6367e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 26 Apr 2007 17:41:17 +0000 Subject: [PATCH] Only put a spacer if the report contains fields. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14251 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_pdf_style/report_view.xml | 5 +++-- bt5/erp5_pdf_style/bt/revision | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/report_view.xml b/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/report_view.xml index 039407bb4f..fdcde7d400 100644 --- a/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/report_view.xml +++ b/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/report_view.xml @@ -74,8 +74,8 @@ </action>\n \n <para tal:content="python: here.Localizer.erp5_ui.gettext(form.getProperty(\'title\', \'\')).encode(\'utf-8\')" style=\'Title\'> report title </para>\n - <spacer height="100"/>\n \n + <spacer height="100" tal:condition="form/get_fields"/>\n \n <tal:block tal:repeat="group python: group_list[:3]">\n <tal:block tal:define="field_list python: form.get_fields_in_group(group)">\n @@ -168,7 +168,8 @@ </tal:block>\n \n </content>\n -</document> +</document>\n + ]]></string> </value> </item> diff --git a/bt5/erp5_pdf_style/bt/revision b/bt5/erp5_pdf_style/bt/revision index dc7b54ad01..3e932fe8f1 100644 --- a/bt5/erp5_pdf_style/bt/revision +++ b/bt5/erp5_pdf_style/bt/revision @@ -1 +1 @@ -33 \ No newline at end of file +34 \ No newline at end of file -- 2.30.9