-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Tech Team OOS (Condensed).liquid
282 lines (272 loc) · 12 KB
/
Tech Team OOS (Condensed).liquid
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<!--
CUSTOMIZATION:
CATEGORY NAME OF NOTES TO PRINT FOR COLUMN 1
{% assign notes_column_1_category = "Leader" %}
CATEGORY NAME OF NOTES TO PRINT FOR COLUMN 1
{% assign notes_column_2_category = "Video" %}
CATEGORY NAME OF NOTES TO PRINT FOR COLUMN 2
{% assign notes_column_3_category = "Light Cue" %}
TEAMS OF PEOPLE TO PRINT REPORTS FOR
{% array categories_to_print = "Tech Team", "Sound Team" %}
POSITION TO PRINT (if you have one specific position outside of a TEAM you'd also like to print)
{% assign position_to_print = "" %}
NOTES TO PRINT WITH PLAN (any note fields you'd like to print with the whole plan)
{% array notes_categories = "General", "Tech Team" %}
PRINT ITEM TIMES
{% assign print_plan_item_times = false %}
-->
<html>
<head>
<title>{{ plan.ministry.name }}:: {{ plan.dates }}</title>
<style>
* { font-family: Verdana, Arial; padding:0; margin:0; }
body, th, td { font-size: 9pt; }
.item { padding: 5px; }
#plan thead { display: table-header-group; border: solid 4px black; }
#plan { border-collapse: collapse; border: solid 4px black; width: 100%; font-size: 9pt; }
#plan th { background-color: black; color: white; }
.header { background-color: black; color: white; font-size: 11pt; }
#header { width: 100%; }
.times { width: 100%; border: solid 2px #999; }
.times thead th { background-color: #eee; }
.times tbody th { width: 10%; }
.times tbody td { width: 40%; }
.evenpreservice { background-color: #999999; color: #000000; font-style: italic; }
.oddpreservice { background-color: #999999; color: #000000; font-style: italic; }
.even { background-color: #ffffff; color: #000000; }
.odd { background-color: #cccccc; color: #000000; }
.checkbox { text-align:center; color:#cccccc; height: 15px; width: 15px; border: 1px solid #000; background-color: #fff; float:left; margin-right:3px;}
.specific-note { font-size: 1em; color: #000000; font-style: normal; background:#ffcc00; }
</style>
</head>
<body>
<!-- ROSTER -->
{% capture roster_list %}
<table border=0 cellspacing=10 cellpadding=0>
{% for category in categories_to_print %}
{% assign col_count = 0 %}
<tr><td><span style="clear: both; margin-top: 5px; font-weight: bold; font-size: 12pt;">{{ category }}</span></td>
{% for plan_person in plan.plan_people_not_declined %}
{% if (plan_person.category.name == category) or (plan_person.position == position_to_print)%}
{% if col_count > 5 %}
</tr><tr><td> </td>
{% assign col_count = 0 %}
{% endif %}
<td><strong>{{ plan_person.position }}: </strong>{{ plan_person.person.name }}</td>
{% assign col_count = col_count | plus: 1 %}
{% endif %}
{% endfor %}
</tr>
{% endfor %}
</table>
{% endcapture %}
<!-- END ROSTER -->
{% for category in categories_to_print %}
{% for plan_person in plan.plan_people_not_declined %}
{% if (plan_person.category.name == category) or (plan_person.position == position_to_print)%}
<!-- Print specific items for this position -->
<div style="page-break-before: always;"></div>
<table id="header" width="100%">
<tr>
<td rowspan=2 width="70pt" style="background-color: black; color:white; font-weight: bold; text-align: center;">SERVICE ORDER</td>
<td colspan=2 style="background-color: black; color:white; font-size: 20pt; font-weight: bold; text-align: center; padding: 3px;">{{ plan.dates }}</td>
<td rowspan=2 width="200pt" style="background-color: black; color:white; font-weight: bold; text-align: center;">{{ plan_person.position }}:</b> {{ plan_person.person.name }}<br /> <span style="font-size:10px;color:#555;">{{ now | date: "%m/%d/%Y %I:%M%p" }}</span></td>
</tr>
<tr>
<td style="text-align: center; font-size: 12pt;">{{ plan.ministry.name }} {{ plan.plan_title }}</td>
</tr>
</table>
<div style="background-color: black; height: 6pt; margin: 5pt 0;"></div>
<table width="100%;">
<tr>
<td style="width: 150pt; border: solid 1px black; vertical-align: top; font-size: 8pt; padding: 5px; padding-top: 0px;">
<!-- TIMES -->
{% for time in plan.plan_times %}<b>{{ time.starts_at | date: '%I:%M' }}</b> {{ time.name }}<br />{% endfor %}
<br />
<!-- END TIMES -->
<!-- CHECKLIST -->
{% capture checklist_name %}Checklist - {{ plan_person.category.name }} - {{ plan_person.position }}{% endcapture %}
{% assign checklist_rehearsalitems = 0 %}
{% assign checklist_beforeitems = 0 %}
{% assign checklist_afteritems = 0 %}
{% for note in plan.notes %}
{% if note.category_name == checklist_name %}
{% if note.note contains '*' %}
{% assign checklist_rehearsalitems = 1 %}
{% elsif note.note contains '~'%}
{% assign checklist_afteritems = 1 %}
{% else %}
{% assign checklist_beforeitems = 1 %}
{% endif %}
{% endif %}
{% endfor %}
{% if checklist_rehearsalitems == 1 %}
<strong>DURING REHEARSAL:</strong>
<table width="100%">
{% for note in plan.notes %}
{% if note.category_name == checklist_name %}
{% if note.note contains '*' %}
<tr><td>
<div class="checkbox"> </div>
{{ note.note | remove: '*' }}
</td></tr>
{% endif %}
{% endif %}
{% endfor %}
</table>
<br />
{% endif %}
{% if checklist_beforeitems == 1 %}
<strong>BEFORE EACH SERVICE:</strong>
<table width="100%">
{% for note in plan.notes %}
{% if note.category_name == checklist_name %}
{% if note.note contains '*' %}
{% elsif note.note contains '~' %}
{% else %}
<tr><td>
{% for time in plan.plan_times %}
{% if forloop.length == 1 %}
{% assign current_service = " " %}
{% else %}
{% assign current_service = forloop.index %}
{% endif %}
{% for plan_person_time in plan_person.service_times %}
{% if plan_person_time.id == time.id %}
<div class="checkbox">{{ current_service }}</div>
{% endif %}
{% endfor %}
{% endfor %}
{{ note.note | remove: '*' }}
</td></tr>
{% endif %}
{% endif %}
{% endfor %}
</table><br />
{% endif %}
{% if checklist_afteritems == 1 %}
<strong>AFTER EACH SERVICE:</strong><br />
{% for note in plan.notes %}
{% if note.category_name == checklist_name %}
{% if note.note contains '~' %}
<strong>{{ note.note | remove: '~' }}</strong>
{% for time in plan.plan_times %}
{% if forloop.length == 1 %}
{% assign current_service = " " %}
{% else %}
{% assign current_service = forloop.index %}
{% endif %}
<table>
{% for plan_person_time in plan_person.service_times %}
{% if plan_person_time.id == time.id %}
<tr><td><div class="checkbox">{{ current_service }}</div></td>
<td> ______________________________</td></tr>
{% endif %}
{% endfor %}
</table>
{% endfor %}
<br />
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
<!-- END CHECKLIST -->
<!-- PLAN NOTES -->
{% if plan.notes.size > 0 %}
<br/> <b>Notes:</b>
{% endif %}
<!-- PRINT GENERAL NOTES DEFINED IN ARRAY -->
{% for my_note in notes_categories %}
{% for note in plan.notes %}
{% if my_note == note.category_name %}
{% if note.note != "" %}
<strong>{{ my_note }}</strong>:{{ note.note }}<br />
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
<!-- PRINT SPECIFIC POSITION NOTES -->
{% capture plannotes_name %}{{ plan_person.category.name }} - {{ plan_person.position }}{% endcapture %}
{% for note in plan.notes %}
{% if note.category_name contains plannotes_name %}
{% if note.category_name contains "Checklist" %}
{% else %}
{% if note.note != "" %}
<strong>{{ note.category_name}}</strong>: {{ note.note }}<br />
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
<!-- END PLAN NOTES -->
</td>
<td valign="top">
<table id="plan">
<thead>
<tr>
<th></th>
<th></th>
<th>{{ notes_column_1_category }}</th>
<th>{{ notes_column_2_category }}</th>
<th>{{ notes_column_3_category }}</th>
</tr>
</thead>
{% assign current_header_title = "" %}
{% assign encountered_duringservice_item = 0 %}
{% for item in plan.items %}
{% case item.item_type %}
{% when 'Header' %}
{% assign current_header_title = item.title %}
{% assign current_header_printed = 0 %}
{% else %}
{% if item.is_preservice == false and encountered_duringservice_item == 0 %}
{% assign encountered_duringservice_item = 1 %}
<tr><td class="header" colspan="5">START OF SERVICE</td></tr>
{% endif %}
<tr class="{% cycle 'even', 'odd' %}{% if item.is_preservice or item.is_postservice %}preservice{% endif %}">
<td class="item">
{% if item.is_preservice or item.is_postservice %}
{% if print_plan_item_times == true %}
{% for time in plan_person.service_times %}
{% for item_time in item.times %}
{% if item_time.time_id == time.id %}
<span style="background-color:eeeeee;font-size:7pt;">{{ item_time.actual_time | date: '%I:%M%p' | downcase }}<br /></span>
{% endif %}
{% endfor %}
{% endfor %}
{% else %}
<span style="background-color:eeeeee;font-size:7pt;">
{% if item.length != "0:00" %}
{{ item.length }} {% if item.is_preservice %}before service starts{% endif %}{% if item.is_postservice %}after service ends{% endif %}
{% endif %}
</span>
{% endif %}
{% else %}
<span style="background-color:eeeeee;font-size:7pt;font-weight:bold;">
{% if item.length != "0:00" %}
{{ item.length }}
{% endif %}
</span>
{% endif %}
</td>
<td class="item">
{% if current_header_printed == 0 %}
<span style="background-color:eeeeee;font-size:7pt;">{{ current_header_title }}</span>
{% assign current_header_printed = 1 %}
{% endif %}
<strong>{{ item.title }}</strong><br /><span style="font-size:9pt;">{{ item.description }}</span> {% for note in item.notes %}{% if note.category_name == plan_person.position %}<span class="specific-note">{{ note.note }}</span>{% endif %}{% endfor %}</td>
<td class="item">{% for note in item.notes %}{% if note.category_name == notes_column_1_category %}{{ note.note }}{% endif %}{% endfor %}</td>
<td class="item">{% for note in item.notes %}{% if note.category_name == notes_column_2_category %}{{ note.note }}{% endif %}{% endfor %}</td>
<td class="item">{% for note in item.notes %}{% if note.category_name == notes_column_3_category %}{{ note.note }}{% endif %}{% endfor %}</td>
</tr>
{% endcase %}
{% endfor %}
</table>
</td>
</tr>
</table>
{{ roster_list }}
{% endif %}
{% endfor %}
{% endfor %}
</body>
</html>