[% content_only = 1 # no html wrappers %]
[% # PROCESS dumper.tt dump = packs %]
<!-- BEGIN [% template.name %] -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Outreach Pack Labels</title>
<style type="text/css">
<!--/* <![CDATA[ */
body { margin: 0px; margin-top: 30px }
table {
border-collapse: collapse;
width: 100%;
}
td {
font-family: verdana, sans-serif;
font-size: 9pt;
height: 146px;
padding-left: 3em;
width: 50%;
/* border: dotted 1px; */
/* text-align: center; */
}
div.details { width: 50%; padding: 5px }
/* ]]> */-->
</style>
</head>
<body>
<table>
<tr>
[% FOREACH entry IN addresses %]
<td>
<p>
[% entry.first_name | ucfirst %]
[% entry.last_name | upper %]
</p>
<p>[% entry.address %]</p>
[% IF entry.post_code # part of address for GP practice %]
<p>[% entry.post_code %]</p>
[% END %]
</td>
[% UNLESS loop.last OR loop.count % 2 # creates 2-col table %]
</tr>
<tr>
[% END %]
[% END %]
</tr>
</table>
</body>
</html>