From b29943865c789c26a6587963c9f31d82d1032e9d Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Thu, 7 Feb 2008 15:59:51 +0000
Subject: [PATCH] add new css class to be able to distinguish first page from
 other ones and and have a different display.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19135 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_pdf_editor/form_render_PDFeForm.xml | 8 +++++---
 bt5/erp5_pdf_editor/bt/revision                           | 2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/bt5/erp5_pdf_editor/SkinTemplateItem/portal_skins/erp5_pdf_editor/form_render_PDFeForm.xml b/bt5/erp5_pdf_editor/SkinTemplateItem/portal_skins/erp5_pdf_editor/form_render_PDFeForm.xml
index 4bfeeed8d9..cc8b1a0400 100644
--- a/bt5/erp5_pdf_editor/SkinTemplateItem/portal_skins/erp5_pdf_editor/form_render_PDFeForm.xml
+++ b/bt5/erp5_pdf_editor/SkinTemplateItem/portal_skins/erp5_pdf_editor/form_render_PDFeForm.xml
@@ -107,8 +107,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\n
               alt="background"\n
               class="page_0_background"\n
               tal:attributes="src string:${object_name}_background_${pagenum};\n
-                              class string:page_${pagenum}_background"\n
-        /><span tal:replace="nothing" >\n
+              class python:\'page_%s_background %s\' % \n
+              (pagenum, test(pagenum == 0,\'first_page\', \'other_page\'))"/>\n
+                              <span tal:replace="nothing" >\n
               page is not empty (there is at least one element) \n
               considering class = \'page_\' + pagenum\n
         </span>\n
@@ -309,7 +310,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\n
   </tal:block>\n
 </tal:block>\n
 </tal:block>\n
-</tal:block>
+</tal:block>\n
+
 
 ]]></string> </value>
         </item>
diff --git a/bt5/erp5_pdf_editor/bt/revision b/bt5/erp5_pdf_editor/bt/revision
index f11c82a4cb..3f10ffe7a4 100644
--- a/bt5/erp5_pdf_editor/bt/revision
+++ b/bt5/erp5_pdf_editor/bt/revision
@@ -1 +1 @@
-9
\ No newline at end of file
+15
\ No newline at end of file
-- 
2.30.9