Modified household labels for organizations that name households with adults' full names. For single-person households, prints individuals' names.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!--
This report prints the household name for households with two or more
household members (either active or innactive). For single-member
households, it prints that individual's name.
-->
<html>
<head>
<title>Avery Labels</title>
<style>
@page { margin: 0.5in 0in 0in 0.0825in; size: US-Letter; }
ul { margin: 0; padding: 0; }
ul.labels li {
margin: 0 0 0 0.13in;
padding: 0;
float: left;
width: 2.625in;
height: 1in;
display: block;
font-family: "Lato", Arial, Helvetica, sans-serif;
font-size: 11pt;
}
ul.labels li div.address {
margin-left: 0.125in;
margin-top: 0.1in;
}
</style>
</head>
<body>
<ul class="labels">
{% for household in households %}
{% if household.primary_address %}
{% if household.member_count >= 2 %}
<li>
<div class="address">
{{ household.name }}<br>
{{ household.primary_address.postal_address }}
</div>
</li>
{% else %}
<li>
<div class="address">
{{ household.primary_contact.name }}<br>
{{ household.primary_address.postal_address }}
</div>
</li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
</body>
</html>