Commit 4a67eb4b authored by Jérome Perrin's avatar Jérome Perrin

The header "Printed by user at date" can be hidden by passing no_header=1 in REQUEST



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14237 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7bba30dd
...@@ -64,7 +64,8 @@ ...@@ -64,7 +64,8 @@
topmargin="1cm"\n topmargin="1cm"\n
bottommargin="1cm"\n bottommargin="1cm"\n
allowsplitting="1"\n allowsplitting="1"\n
tal:define="landscape python: int(request.get(\'landscape\', 0) or 0)"\n tal:define="landscape python: int(request.get(\'landscape\', 0) or 0);\n
header python: not int(request.get(\'no_header\', 0) or 0)"\n
tal:attributes="landscape landscape">\n tal:attributes="landscape landscape">\n
\n \n
<stylesheet>\n <stylesheet>\n
...@@ -168,7 +169,7 @@ ...@@ -168,7 +169,7 @@
\n \n
<pagetemplate tal:condition="landscape" id="FirstPage" nextid="FirstPage" startframe="content">\n <pagetemplate tal:condition="landscape" id="FirstPage" nextid="FirstPage" startframe="content">\n
<static>\n <static>\n
<infostring align="left" x="1cm" y= "20cm" size="8" font="Helvetica" color="(0,0,0)"\n <infostring tal:condition="header" align="left" x="1cm" y= "20cm" size="8" font="Helvetica" color="(0,0,0)"\n
tal:content="python: here.Localizer.erp5_ui.gettext(\'Printed by %(user)s at %(date)s\') % {\'user\':user.getUserName(), \'date\':DateTime()}" >Printed by</infostring>\n tal:content="python: here.Localizer.erp5_ui.gettext(\'Printed by %(user)s at %(date)s\') % {\'user\':user.getUserName(), \'date\':DateTime()}" >Printed by</infostring>\n
<infostring align="left" x="26.5cm" y= "0.5cm" size="10" font="Helvetica" color="(0,0,0)" >Page %(page)s</infostring>\n <infostring align="left" x="26.5cm" y= "0.5cm" size="10" font="Helvetica" color="(0,0,0)" >Page %(page)s</infostring>\n
</static>\n </static>\n
...@@ -187,7 +188,7 @@ ...@@ -187,7 +188,7 @@
\n \n
<pagetemplate tal:condition="not: landscape" id="FirstPage" nextid="FirstPage" startframe="content">\n <pagetemplate tal:condition="not: landscape" id="FirstPage" nextid="FirstPage" startframe="content">\n
<static>\n <static>\n
<infostring align="left" x="1cm" y= "29cm" size="8" font="Helvetica" color="(0,0,0)"\n <infostring tal:condition="header" align="left" x="1cm" y= "29cm" size="8" font="Helvetica" color="(0,0,0)"\n
tal:content="python: here.Localizer.erp5_ui.gettext(\'Printed by %(user)s at %(date)s\') % {\'user\':user.getUserName(), \'date\':DateTime()}" >Printed by</infostring>\n tal:content="python: here.Localizer.erp5_ui.gettext(\'Printed by %(user)s at %(date)s\') % {\'user\':user.getUserName(), \'date\':DateTime()}" >Printed by</infostring>\n
<infostring align="left" x="18cm" y= "0.5cm" size="10" font="Helvetica" color="(0,0,0)" >Page %(page)s</infostring>\n <infostring align="left" x="18cm" y= "0.5cm" size="10" font="Helvetica" color="(0,0,0)" >Page %(page)s</infostring>\n
</static>\n </static>\n
......
29 30
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment