09-29-23 pcochef: Birthdays: lanscape
Imports: 4

This is my first attempt to edit a recipe, I noticed one of our small group leaders was using a list to send birthday cards, emails and call members. I started with one I downloaded here and made the following changes: Changed Paper orientation to lanscape in order to add extra data field (Phone) sorted the list to put in alpahbetical order.

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
{% assign sorted_people = people | sort: "birthday"%}

<html>
  <head>
    <title>Birthdays</title>
    {{ helpers.bootstrap_3 }}
   <style>
      @page { margin: 0.5in; size: US-Letter landscape; }
      Body  { font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif; }
           table th {font-weight: bold; text-align:center;}
           table th {border-top:solid 2px #000;border-bottom:solid 2px #000;}
           table tr td { border-top:solid 1px #000; padding: 10px; vertical-align: top; }
           table tr td { border-bottom:solid 1px #000; padding: 10px; vertical-align: top; }
    </style>
      </head>
  <body>
    <h1>
      {{ filter.name }}
      {% assign sorted_people = people | sort: 'last_name' %}
    </h1>
    <table class="table table-condensed phone_numbers">
      <thead>
        <tr>
          <th>Name</th>
          <th>Birthday</th>
          <th>Email</th>
          <th>Phone</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.primary_email}}
            </td> 
            <td>{{ person.primary_phone_number }} 
            </td>  
						<td>{% for address in person.addresses %}
							{{ address.postal_address }} 
    						{% endfor %}            
            <td>
            
        </tr>
        {% endfor %}
      </tbody>
    </table>
  </body>
</html>