Birthdays
Imports: 8

Simple Report to format birthdays in your congregation

Preview

Report Preview


{% assign sorted_people = people | sort: "birthday"%}

<html>
  <head>
    <title>Birthdays</title>
    {{ helpers.bootstrap_3 }}
    <style>
      @page { margin: 0.5in; size: US-Letter; }
      body { font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; }
    </style>
  </head>
  <body>
    <h1>
      {{ filter.name }}
    </h1>
    <table class="table table-condensed phone_numbers">
      <thead>
        <tr>
          <th>Name</th>
          <th>Birthdate</th>
          <th>Age</th>
          <th>Email</th>
          <th>Address</th>
        </tr>
      </thead>

      <tbody>
        {% for person in sorted_people %}
          <tr>
            <td>{{ person.name }}</td>
            <td>
              	{{ person.birthdate | date: "%b %d"}} 
            </td>
             <td>
               {{ person.age}}
            </td>
             <td>
               {{ person.primary_email}}
            </td>
            <td>
							{% for address in person.addresses %}
							{{ address.postal_address }} 
    						{% endfor %}            
            <td>
            
        </tr>
        {% endfor %}
      </tbody>
    </table>
  </body>
</html>