Husband & Wife Mailing Label
Imports: 43

A short explanation. . .

Preview

Report Preview


 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
54
55
56
57
58
59
60
61
62
63
64
<!-- Quick Customization

To only print labels for people who have an address, set the below to true
To print labels for every household in the list, set to false
{% assign address_present = true %}

-->
{{ helpers.bootstrap_3 }}
<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 %}
        <!-- Find out if there is a married male in the household -->
        {% assign married = false %}
        {% for adult in household.active_adults %}
          {% if adult.gender == "M" %}
            {% if adult.marital_status == "Married" %}
              {% assign married = true %}
              {% assign married_male = adult %}
            {% endif %}
          {% endif %}
        {% endfor %}
        {% if household.primary_address or address_present == false %}
          {% if married == true %}
            <li>
              <div class="address">
                Mr. and Mrs. {{ married_male.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>