-
Notifications
You must be signed in to change notification settings - Fork 0
/
D16-Programm (ohne Beschreibung, doppelt).liquid
195 lines (169 loc) · 7.29 KB
/
D16-Programm (ohne Beschreibung, doppelt).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
<!--
QUICK CUSTOMIZATION:
PLAN NOTE OPTIONS
{% assign print_plan_notes = true %}
TO ONLY PRINT SPECIFIC PLAN NOTE CATEGORIES SET THIS TO false
{% assign all_plan_notes = true %}
SET INDIVIDUAL CATEGORY NAMES OF PLAN NOTES TO PRINT (and set above to false)
{% array my_plan_notes = "Vocals", "Band" %}
PLAN ITEM OPTIONS
{% assign print_plan_items = true %}
{% assign print_plan_item_times = false %}
{% assign print_plan_item_length = true %}
{% assign print_song_key = true %}
{% assign print_arrangement_name = false %}
{% assign print_song_bpm = true %}
{% assign print_song_sequence = true %}
TO ONLY PRINT SPECIFIC ITEM NOTE CATEGORIES SET THIS TO false
{% assign all_item_notes = true %}
CATEGORY NAMES OF ITEM NOTES TO PRINT
{% array my_notes = "Person", "Lights" %}
TO PRINT ITEM NOTES IN COLUMNS SET TO TRUE
{% assign notes_in_columns = false %}
PLAN PEOPLE OPTIONS
{% assign print_plan_people = true %}
TO ONLY PRINT SPECIFIC PEOPLE CATEGORIES SET THIS TO false
{% assign all_categories = true %}
SET INDIVIDUAL CATEGORY NAMES OF PEOPLE TO PRINT (and set above to false)
{% array my_categories = "Vocals", "Band", "Audio/Visual" %}
OTHER OPTIONS
{% assign print_rehearsal_times = true %}
{% assign force_page_break = false %}
INTERNAL CODE
{% if all_item_notes == true %}
{% assign selected_item_notes = plan.ministry.plan_item_note_categories %}
{% else %}
{% assign selected_item_notes = my_notes %}
{% endif %}
-->
<html>
<head>
<title>{{ plan.ministry.name }} - {{ plan.dates }}</title>
<style>
body { font-family:Arial, Helvetica, sans-serif; font-size:10pt; padding: 0; margin:0; }
td, th { font-size:10pt; }
table.plan th { text-align:left; font-weight:normal; }
table.plan td, table.plan th { border: 1px solid black; padding: 2px 4px; vertical-align:top; }
table, tr, th, td { border-collapse:collapse; }
tr.title-head th { border:0 none; background:#CFCFCF; font-weight:bold; }
tr.title-head { border:1px solid #999; }
tr.col-head th, td.plan-header { background:#EFEFEF; font-weight:bold; }
td.aright { text-align:right; }
table#notes { margin-top:10px; border:0 none; }
table#notes, table#notes tr, table#notes td, table#notes th { border:0 none; }
table#notes th { vertical-align:top; font-weight:bold; text-align: left; padding-right: 30px; }
table#notes td { padding-bottom:5px; }
tr.pre-split td { height:5px; background-color:#FAFAFA; }
tr.pre-item td { font-style:italic; }
</style>
</head>
<body>
{% for time in plan.plan_times limit:1 %}
<table class="plan">
<thead>
<tr class="title-head">
<th colspan="3">{{ time.starts_at | date: '%d.%m.%Y' | downcase }}</th><th colspan="3">{% if plan.series_title %}{{plan.series_title}} - {% endif %}{{ plan.plan_title }}</th></tr>
<tr class="col-head"><th>Nr.</th><th>Uhrzeit</th><th>Min</th><th>Programmpunkt</th><th>Verantwortlicher</th><th>Bemerkung</th></tr>
</thead>
<tbody>
{% assign prevIsPre = false %}
{% assign iNumber = 0 %}
{% for item in plan.items %}
{% if item.is_preservice == false and prevIsPre == true %}{% assign iNumber = forloop.index0 %}<tr class="pre-split"><td colspan="6"></td></tr>{% endif %}
{% assign prevIsPre = item.is_preservice %}
<tr class="{% if item.is_preservice %} pre-item {% endif %}">
{% if item.item_type == "Header" %}
<td colspan="6" class="plan-header">{{ item.title }}</td>
{% else %}
<td>{{ forloop.index | minus: iNumber }}.</td>
<td>
{% for item_time in item.times %}{% if item_time.time_id == time.id %}{{ item_time.actual_time | date: '%H:%M' | downcase }} {% endif %}{% endfor %}
</td>
<td class="aright">{{ item.clean_length }}</td>
<td>{% if item.song %}Lied{% else %}{{ item.title }}{% endif %}</td>
<td>
{% for note in item.notes %}
{% if note.category_name == "Verantwortlicher" %}
{{ note.note }}
{% endif %}
{% endfor %}</td>
<td>{% if item.song %}<strong>{{ item.song.title }}</strong><br />{% endif %}
{% for my_note in selected_item_notes %}
{% for note in item.notes %}
{% if note.category_name != "Verantwortlicher" and (note.category_name == my_note.name or note.category_name == my_note) %}
<strong>{{ note.category_name }}:</strong> {{ note.note }}<br/>
{% endif %}
{% endfor %}
{% endfor %}</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
<!-- PLAN PEOPLE -->
{% assign isFirstPerson = true %}
<div class="persons"><strong>Planung: </strong>
{% for plan_person in plan.plan_people_not_declined %}
{% if plan_person.category.name == "Planung" %}
{% if isFirstPerson == false %}<span>, </span>{% endif %}<span>{{ plan_person.person.name }} (<em>{{ plan_person.position }}</em>)</span>
{% assign isFirstPerson = false %}
{% endif %}
{% endfor %}
</div>
<div style="width:100px; height:40px;"></div>
{% for time in plan.plan_times limit:1 %}
<table class="plan">
<thead>
<tr class="title-head">
<th colspan="3">{{ time.starts_at | date: '%d.%m.%Y' | downcase }}</th><th colspan="3">{% if plan.series_title %}{{plan.series_title}} - {% endif %}{{ plan.plan_title }}</th></tr>
<tr class="col-head"><th>Nr.</th><th>Uhrzeit</th><th>Min</th><th>Programmpunkt</th><th>Verantwortlicher</th><th>Bemerkung</th></tr>
</thead>
<tbody>
{% assign prevIsPre = false %}
{% assign iNumber = 0 %}
{% for item in plan.items %}
{% if item.is_preservice == false and prevIsPre == true %}{% assign iNumber = forloop.index0 %}<tr class="pre-split"><td colspan="6"></td></tr>{% endif %}
{% assign prevIsPre = item.is_preservice %}
<tr class="{% if item.is_preservice %} pre-item {% endif %}">
{% if item.item_type == "Header" %}
<td colspan="6" class="plan-header">{{ item.title }}</td>
{% else %}
<td>{{ forloop.index | minus: iNumber }}.</td>
<td>
{% for item_time in item.times %}{% if item_time.time_id == time.id %}{{ item_time.actual_time | date: '%H:%M' | downcase }} {% endif %}{% endfor %}
</td>
<td class="aright">{{ item.clean_length }}</td>
<td>{% if item.song %}Lied{% else %}{{ item.title }}{% endif %}</td>
<td>
{% for note in item.notes %}
{% if note.category_name == "Verantwortlicher" %}
{{ note.note }}
{% endif %}
{% endfor %}</td>
<td>{% if item.song %}<strong>{{ item.song.title }}</strong><br />{% endif %}
{% for my_note in selected_item_notes %}
{% for note in item.notes %}
{% if note.category_name != "Verantwortlicher" and (note.category_name == my_note.name or note.category_name == my_note) %}
<strong>{{ note.category_name }}:</strong> {{ note.note }}<br/>
{% endif %}
{% endfor %}
{% endfor %}</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
<!-- PLAN PEOPLE -->
{% assign isFirstPerson = true %}
<div class="persons"><strong>Planung: </strong>
{% for plan_person in plan.plan_people_not_declined %}
{% if plan_person.category.name == "Planung" %}
{% if isFirstPerson == false %}<span>, </span>{% endif %}<span>{{ plan_person.person.name }} (<em>{{ plan_person.position }}</em>)</span>
{% assign isFirstPerson = false %}
{% endif %}
{% endfor %}
</div>
</body>
</html>