Future Schedule
Imports: 10

test

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
<!--
QUICK CUSTOMIZATION:

{% assign print_picture = "true" %}
{% assign print_email = "false" %}
{% assign print_phone = "false" %}
{% assign print_address = "false" %}
{% assign print_birthday = "false" %}
{% assign print_anniversary = "false" %}
{% assign print_notes = "true" %}
{% assign print_people_positions = "false" %} (setting this to true will cause your report to run MUCH slower)


ONLY PRINT FROM SPECIFIC SERVICE TYPES

STEP 1: SET THE BELOW TO 'TRUE'
{% assign print_select_services = "false" %}

STEP 2: ENTER THE NAMES OF THE SERVICE TYPES YOU WOULD LIKE TO PRINT, REPLACING THE EXAMPLES BELOW
{% array my_services = "Contemporary", "Traditional", "Wednesday Night", %} (The more services you add here, the slower your report will be)

{% assign picture_width = "50" %}

SORTING:
{% assign sorted_people = people | sort: "first_name" %}
You can sort on:
	- last_name
	- first_name
	- updated_at
	- last_scheduled
	- created_at
	- logged_in_at
-->

<html>
    <head>
        <title>People</title>
        <style>
            * { font-family: Verdana, Arial; font-size: 10pt; }
            body { padding:0; margin:0; }

.container { width: ; margin: 0 auto; }

.people { border-collapse: collapse; border: solid 1px black; width: 100%; font-size: 0.9em;  }

.people th {
background-color: #DDD;
font-size: 12pt;
text-align: left;
padding: 2px;
vertical-align: center;
border: solid 1px black;
}

.people td {
padding: 2px;
vertical-align: top;
border: solid 1px black;
} 

.address {
align: left;
border-collapse: collapse;
margin: 0;
padding: 0;
}

.address td {
border: none;
margin: 0;
padding: 0;
}

H1 {
font-size: 26pt;
text-align: center;
padding: 0;
margin: 0;
}

H2 {
font-size: 16pt;
text-align: center;
padding: 0;
margin: 0;
}

#schedule { border-collapse: collapse; border: none; width: 100%; }
#schedule td { width: 33%; border: none; border-bottom: solid 1px lightgray; }
#schedule tr:last-child td { border: none; }
        </style>
    </head>
    <body>
    <div class="container">
        <h1>{{ organization.name }}</h1>
        </br>
	<table class="people">
              <tr>
                 {% if print_picture == "true"%}<th></th>{% endif %}
        	 <th>Name</th>
        		 {% if print_select_services == "false"%}<th>Future Schedule</th>{% endif %}
                 {% if print_select_services == "true"%}{% for service in my_services %}<th>{{ service }}</th>{% endfor %}{% endif %}
                 {% if print_email == "true"%}<th>Email</th>{% endif %}
                 {% if print_phone == "true"%}<th>Phone</th>{% endif %}
                 {% if print_address == "true"%}<th>Address</th>{% endif %}
                 {% if print_birthday == "true"%}<th>Birthday</th>{% endif %}
                 {% if print_anniversary == "true"%}<th>Anniversary</th>{% endif %}
                 {% if print_notes == "true"%}<th>Notes</th>{% endif %}

              </tr>
            {% for person in sorted_people %}
			<tr>
                 		{% if print_picture == "true"%}<td style="padding: 0; width:{{ picture_width }}px; height:{{ picture_width }}px;">{% if person.photo_thumbnail_url != "/assets/no_photo_thumbnail.gif" %}<img src="{{ person.photo_thumbnail_url }}" width={{ picture_width }} />{% endif %}</td>{% endif %}
	        	    	<td>{{ person.name }}</td>

       {% if print_select_services == "false" %}
			<td>
	 			<table id="schedule">
               		{% for future_plan in person.future_plan_people %}
                  		{% if future_plan_person.status != 'D'%}
                  			{% if current_plan_id != future_plan.plan.id %}
                   		<tr>
                           <td>{{ future_plan.plan.dates }}</td>
                           <td>{{ future_plan.plan.ministry.name }}</td>
                            	{% if print_people_positions == "true" %}
                                	<td>
										<div>{{ future_plan_person.position }}</div>
                               	 	</td>
                        		{% endif %}
                   		</tr>
                  			{% endif %}
                  		{% endif %}
                  		{% assign current_plan_id = future_plan.plan.id %}
               		{% endfor %}
           				{% assign current_plan_dates = "" %}
           				{% assign current_plan_id = "" %}
	 				</table>
				</td>
        {% else %}
        	{% for service in my_services %}
            	<td>
                  <table id="schedule">
                    {% for future_plan in person.future_plan_people %}
                      {% if future_plan_person.status != 'D'%}
                        {% if current_plan_id != future_plan.plan.id %}
                          {% if service contains future_plan.plan.ministry.name %}
                            <tr>
                              <td>{{ future_plan.plan.dates }}</td>
                                  {% if print_people_positions == "true" %}
                                    <td>
                                    	<div>{{ future_plan_person.position }}</div>
                                    </td>
                                  {% endif %}
                            </tr>
                          {% endif %}
                        {% endif %}
                      {% endif %}
                    {% endfor %}
                    	{% assign current_plan_dates = "" %}
           				{% assign current_plan_id = "" %}
                  </table>
              	</td>
            {% endfor %}
		{% endif %}
                		{% if print_email == "true" %}<td>
					{% for email in person.emails %}
						<div>{{ email.address }}</div>
					{% endfor %} 
				</td>{% endif %}
                		{% if print_phone == "true" %}<td>
                			{% for phone_number in person.phone_numbers %}
						<div>{{ phone_number.type_name }}: {{ phone_number.number }} {{ phone_number.extension }}</div>
					{% endfor %}
				</td>{% endif %}
                		{% if print_address == "true" %}<td>
                			{% for address in person.addresses %}
						<div><table class="address"><tr><td>{{ address.type_name }}:  </td><td>{{ address.line_1 }}</br>{{ address.city }}, {{ address.state }} {{ address.zip }}</td></tr></table></div>
					{% endfor %}
				</td>{% endif %}
                		{% if print_birthday == "true" %}<td>
					<div>{{ person.birthdate | date: '%m/%d/%y' | downcase }}</div>
				</td>{% endif %}
                		{% if print_anniversary == "true" %}<td>
					<div>{{ person.anniversary | date: '%m/%d/%y' | downcase }}</div>
				</td>{% endif %}
                		{% if print_notes == "true" %}<td>
					<div>{{ person.notes }}</div>
				</td>{% endif %}
			</tr>
	     {% endfor %}
        </table>
    </div>
    </body>
</html>