Household Name Mailing Labels - Avery 5160
Imports: 21

Modified household labels for organizations that name households with adults' full names. For single-person households, prints individuals' names.

Preview

Report Preview


<!-- 

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>