[% 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>
    <link type="text/css" rel="stylesheet" href="/css/addr_labels.css" />
</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 # already 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>
