mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
96 lines
5.2 KiB
XML
96 lines
5.2 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
{% load multiply from filters %}
|
|
{% load static %}
|
|
<!DOCTYPE document SYSTEM "rml.dtd">
|
|
|
|
<document filename="Form Print.pdf">
|
|
<docinit>
|
|
<registerTTFont faceName="OpenSans" fileName="{{ fonts.opensans.regular }}"/>
|
|
<registerTTFont faceName="OpenSans-Bold" fileName="{{ fonts.opensans.bold }}"/>
|
|
<registerFontFamily name="OpenSans" bold="OpenSans-Bold" boldItalic="OpenSans-Bold"/>
|
|
</docinit>
|
|
|
|
<stylesheet>
|
|
<initialize>
|
|
<color id="LightGray" RGB="#D3D3D3"/>
|
|
<color id="DarkGray" RGB="#707070"/>
|
|
</initialize>
|
|
|
|
<paraStyle name="style.para" fontName="OpenSans" />
|
|
<paraStyle name="blockPara" spaceAfter="5" spaceBefore="5"/>
|
|
<paraStyle name="style.Heading1" fontName="OpenSans" fontSize="16" leading="18" spaceAfter="0"/>
|
|
<paraStyle name="style.Heading2" fontName="OpenSans-Bold" fontSize="10" spaceAfter="2"/>
|
|
<paraStyle name="style.Heading3" fontName="OpenSans" fontSize="10" spaceAfter="0"/>
|
|
<paraStyle name="center" alignment="center"/>
|
|
|
|
<blockTableStyle id="checkboxTable">
|
|
<!-- <lineStyle cap="default" kind="grid" colorName="black" thickness="1" start="0,0" stop="-1,-1"/> -->
|
|
<blockValign start="0,0" stop="-1,-1" value="top"/>
|
|
<!-- <lineStyle kind="lineabove" start="1,0" stop="-1,-1" colorName="lightgrey"/> -->
|
|
<lineStyle kind="linebelow" start="1,0" stop="-1,-1" colorName="lightgrey"/>
|
|
<blockLeftPadding start="0,0" stop="-1,-1" length="0"/>
|
|
</blockTableStyle>
|
|
|
|
<blockTableStyle id="stringTable">
|
|
<!-- <lineStyle cap="default" kind="grid" colorName="black" thickness="1" start="0,0" stop="-1,-1"/> -->
|
|
<blockValign start="0,0" stop="-1,-1" value="top"/>
|
|
<!-- <blockLeftPadding start="0,0" stop="-1,-1" length="0"/> -->
|
|
<!-- <lineStyle kind="lineabove" start="1,0" stop="-1,-1" colorName="lightgrey"/> -->
|
|
<lineStyle kind="linebelow" start="1,0" stop="-1,-1" colorName="lightgrey"/>
|
|
</blockTableStyle>
|
|
<blockTableStyle id="objectTable">
|
|
<!-- <lineStyle cap="default" kind="grid" colorName="black" thickness="1" start="0,0" stop="-1,-1"/> -->
|
|
<blockValign start="0,0" stop="-1,-1" value="top"/>
|
|
<!-- <blockLeftPadding start="0,0" stop="-1,-1" length="0"/> -->
|
|
<!-- <lineStyle kind="lineabove" start="1,0" stop="-1,-1" colorName="lightgrey"/> -->
|
|
<lineStyle kind="linebelow" start="1,0" stop="-1,-1" colorName="lightgrey"/>
|
|
</blockTableStyle>
|
|
</stylesheet>
|
|
|
|
<template > {# Note: page is 595x842 points (1 point=1/72in) #}
|
|
<pageTemplate id="Headed" >
|
|
<pageGraphics>
|
|
<image file="RIGS/static/imgs/paperwork/corner-tr-su.jpg" x="395" y="642" height="200" width="200"/>
|
|
<image file="RIGS/static/imgs/paperwork/corner-bl.jpg" x="0" y="0" height="200" width="200"/>
|
|
|
|
{# logo positioned 42 from left, 33 from top #}
|
|
<image file="RIGS/static/imgs/paperwork/tec-logo.jpg" x="42" y="719" height="90" width="84"/>
|
|
|
|
<setFont name="OpenSans-Bold" size="22.5" leading="10"/>
|
|
<drawString x="137" y="780">TEC PA & Lighting</drawString>
|
|
|
|
<setFont name="OpenSans" size="9"/>
|
|
<drawString x="137" y="760">Portland Building, University Park, Nottingham, NG7 2RD</drawString>
|
|
<drawString x="137" y="746">www.nottinghamtec.co.uk</drawString>
|
|
<drawString x="265" y="746">info@nottinghamtec.co.uk</drawString>
|
|
<drawString x="137" y="732">Phone: (0115) 846 8720</drawString>
|
|
|
|
|
|
|
|
<setFont name="OpenSans" size="10" />
|
|
{% if copy %}<drawCenteredString x="302.5" y="50">[{{ copy }} Copy]</drawCenteredString>{% endif %}
|
|
<drawCenteredString x="302.5" y="38">[Page <pageNumber/> of <getName id="lastPage" default="0" />]</drawCenteredString>
|
|
</pageGraphics>
|
|
|
|
<frame id="main" x1="50" y1="65" width="495" height="645"/>
|
|
</pageTemplate>
|
|
|
|
<pageTemplate id="Main">
|
|
<pageGraphics>
|
|
<image file="RIGS/static/imgs/paperwork/corner-tr.jpg" x="395" y="642" height="200" width="200"/>
|
|
<image file="RIGS/static/imgs/paperwork/corner-bl.jpg" x="0" y="0" height="200" width="200"/>
|
|
|
|
<setFont name="OpenSans" size="10"/>
|
|
{% if not invoice %}<drawCenteredString x="302.5" y="50">[{{ copy }} Copy]</drawCenteredString>{% endif %}
|
|
<drawCenteredString x="302.5" y="38">[Page <pageNumber/> of <getName id="lastPage" default="0" />]</drawCenteredString>
|
|
</pageGraphics>
|
|
<frame id="main" x1="50" y1="65" width="495" height="727"/>
|
|
</pageTemplate>
|
|
</template>
|
|
|
|
<story firstPageTemplate="Headed">
|
|
Hello this is some text
|
|
{% include "rigForms/form_print_page.xml" %}
|
|
</story>
|
|
|
|
</document> |