Fountain Directory Listing
Imports: 13

This is the report that we use for our "directory"... a lists of all members and regular attenders (or other, as list rules apply). /*-- This report is provided free of charge --*/ /*-- No warranty expressed or implied --*/ /*-- Free to modify and share as you see fit --*/ /*-- Used at your own risk --*/

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
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE html>

   /*-- This report is provided free of charge         --*/
    /*-- No warranty expressed or implied               --*/
    /*-- Free to modify and share as you see fit      --*/
    /*-- Use at your own risk                                   --*/

<html lang="en">
<head>
  <meta charset="utf-8">
  <style>
    html, * {font-family: lato, sans-serif; line-height:1.1em;}
    @page 	{margin: .5in 0;}   /*-- PDF margin reset --*/
    body 		{margin: 0;}
    
    /*-- Baseline Fonts --*/
    h1 			{font-size: 9pt; font-weight: bold;} 		/*-- Report Title --*/
    h2 			{font-size: 9pt; font-weight: bold;} 		/*-- Household Name --*/
    h3 			{font-size: 9pt; font-weight: normal;}  /*-- Household Address --*/
    li 			{font-size: 9pt;} 											/*-- List Info, Person's Info --*/
    li.name	{font-size: 9pt;} 											/*-- Person's Name --*/
    .btn		{font-size: 9pt; font-weight: bold;} 		/*-- Print Button --*/
    
    /*-- Baseline Spacing --*/
    .header h1 	{margin: 0 0 0.1em;} 								/*-- Report Title --*/
    .main h2 		{margin: 0 0.1em 0 0;} 							/*-- Household Name --*/
    .main h3 		{margin: 0;} 												/*-- Household Address --*/
    li.name			{margin-bottom: .1em;}							/*-- Person's Name --*/
    
    .household-item 			{margin-bottom: 1em; page-break-inside: avoid;}
    .household-details:after 	{content: "";display: table;clear: both;}
    
    .item-header 				{background: rgb(0, 83, 148); color: white; border: 1px solid #eeeeee; clear: both; padding:0.25em 0.5em;}
    .item-header:after 	{content: "";display: table;clear: both;}
    .item-header h2 		{float:left;}
    .item-header h3 		{float:right;}
    ul.list-info 				{list-style:none; margin: 0 0 0.5em 0; padding: 0;}
    
    .adults 					{clear:both; padding: 0.5em 0 0 0; width: 100%;}
    .children 					{border-top: 0px dashed rgb(200,200,200); clear:both; padding:0.5em 0 0; width:100%;}
    
    .entry 						{float:left; margin:0 0 0.5em 0; padding-left: 0.5em; width: 250px;}
    .entry:after 			{content: "";display: table;clear: both;}
    .children .entry 	{margin: 0 0 0.5em 0; padding-left: 0.5em;} 
    .avatar 					{border: 0px solid rgb(221, 221, 221); float:left; margin-right: 1em; width: 3em;}
    .avatar 					{display: none;}
    .entry ul 				{float:left; list-style:none; margin:0; padding:0;}
    li.email					{overflow-wrap: break-word; width: 200px; word-wrap: break-word;} /*-- allows long emails to break into multiple lines --*/
    
    /*----- Font size equivalents for screen. This provides a more accurate preview of print sizes on a monitor ----*/
    @media screen {
	 		h1 				{font-size: 10px; font-weight: bold; margin-top:0;}
      h2 				{font-size: 10px;}
      h3 				{font-size: 10px; font-weight:normal;}
      h4 				{font-size: 10px font-weight: bold;}
      li 				{font-size: 10px;}
      li.name		{font-size: 10px; font-weight: bold; margin-bottom: 4px;}
      .btn			{font-size: 10px;}
      
      /*----- The wrapper class controls the preview frame in the HTML generated report. ----*/
      /*----- Please note that PDFs are generated in portrait orientation. To print in landscape, generate the report in HTML and print from your browser -----*/ 
      /*----- Portrait view = max-width: 720px; Landscape view = max-width: 1000px ----*/
			.wrapper 	{padding: 0.5em; border: 1px solid rgb(204,204,204); margin:1.5em auto; max-width:1000px;}
      
      .alert {background-color: #eff4fd; color: #8a6d3b; display: flex; flex-direction: row-reverse; list-style: none; margin-bottom: 0.5em; margin-top: 0; padding: 1em; text-align:right;}
      .alert li {margin-left: 32px;}
      .alert a.btn {background: #5282e5; border-radius: 3px; color: #fff; padding: 0.7em; text-decoration: none;}
      .alert a.btn:hover {background: #6283c1;}
    }
    
    
    @media print {
      .no-print {display: none;}		/*----- Apply this class to any element you do not want on the print view ----*/
      body {margin: .5in;}				/*----- Adjust this to change the page margins for printing ----*/
    }
    
  </style>
</head>

<body>
    <div class="container">
      <div class="pull-right">
        <div class="well well-sm text-right">
			     <table>
             <tr>
            	<td width="100" align="left" style="border:none;font-size:9px;"><img src="LINK TO YOUR CHURCH LOGO HERE" height="75"></td>
            	<td align="left" style="border:none;font-size:14px;"><strong>YOUR CHURCH NAME HERE<br>{{ report.name }}</strong><br>Print Date:  {{ list.updated_at | date: "%B %e, %Y"  }} ({{ people.size }} {{ people.size | pluralize: "person", "people" }})</td>
             </tr>
           </table>
        </div>
      </div>

  <!------   print to PDF bar   ---->
  <div class="no-print">
      <ul class="alert" role="alert">
        <li>
        	<a href="https://people.planningcenteronline.com/reports/{{ report.id }}.pdf?list_id={{list.id}}" class="btn">Print to PDF</a>
    		</li>
    	</ul>    
    </div>
  <!----- END print to PDF bar ----->
  
  <div class="wrapper">
    <div class="main">
    {% assign sorted_households = households | sort: 'name' %}
    {% for household in sorted_households %}

      <div class="household-item">
        
        <div class="item-header">
          <h2>{{ household.name }}</h2>
          {% if household.primary_address.postal_address.size > 0 %}
            <h3>{{ household.primary_address.postal_address }}</h3>
          {% endif %}
        </div>
        

        <div class="household-details">  
          
            {% if household.active_adults.size > 0 %}
            <div class="adults">
              <!--- List Primary Contact First -->
              
              {% for adult in household.active_adults %}
              {% if adult.id == household.primary_contact.id %}
              <div class="entry">
                <img class="avatar" src="{{ adult.photo_url}}">
                <ul>
                  <li class="name">                  
                    {{ adult.first_name }} {{ adult.last_name }}
                  </li>
                  <li>{{ adult.primary_phone_number }}</li>
                  <li class="email">{{ adult.primary_email }}</li>
                  <li>{% if adult.birthdate.date|strip|size != 0 %}
                    {{ adult.birthdate | date: "%B %d" | prepend: "Birthday: " }}
                    {% endif %}
                  </li>
                </ul>
              </div>
              {% endif %}    
              {% endfor %}

              <!-- End Listing the primary contact -->

              <!-- List all adults with the exception of the primary -->
                {% for adult in household.active_adults %}
                {% unless adult.id == household.primary_contact.id %}
              <div class="entry">
                <img class="avatar" src="{{ adult.photo_url}}">
                <ul>
                  <li class="name">                  
                    {{ adult.first_name }} {{ adult.last_name }}
                  </li>
                  <li>{{ adult.primary_phone_number }}</li>
                  <li class="email">{{ adult.primary_email }}</li>
                  <li>{% if adult.birthdate.date|strip|size != 0 %}
                    {{ adult.birthdate | date: "%B %d" | prepend: "Birthday: " }}
                    {% endif %}
                  </li>
                </ul>
              </div> 
              {% endunless %}   
              {% endfor %}
              <!-- End Listing all adults with the exception of the primary -->
            </div>
            {% endif %}

            {% if household.active_children.size > 0 %}
            <div class="children">            
              {% for child in household.active_children %}
              <div class="entry">
                <img class="avatar" src="{{ child.photo_url}}">
                <ul>
                  <li class="name">
                    {{ child.first_name }}
                    {% if child.last_name != household.primary_contact.last_name %}{{ child.last_name }}{% endif %}
                  </li>
                  <li>{{ child.primary_phone_number }}</li>
                  <li class="email">{{ child.primary_email }}</li>
                  <li>{{ child.age }}</li>
                  <li>{{ child.grade_name }}</li>
                  <li>{% if child.birthdate.date|strip|size != 0 %}{{ child.birthdate | date: "%B %d" | prepend: "Birthday: " }}{% endif %}</li>
                </ul>
              </div>
              {% endfor %}
            </div>
            {% endif %}

    		</div>
       </div>

    {% endfor %}
    </div>      
  </div>  
</body>
</html>