One Page Month View
Imports: 150

This report makes a one-month calendar grid planned for tabloid landscape. It has to printed from the web view. It can take up to 15 -20 events per day and has abbreviated title, color-coded status (green, yellow, red). I know PC is trying to get people away from grid views but most of us still like an overview with the month in front of us.

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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html>
	<head>
		<title>{{ report.title }}</title>
		<link rel="stylesheet" type="text/css" media="all" href="{{ report.stylesheet_href }}">
	<style>
		.level-1 {
			width:14%;
			display:inline-block;
			text-align:center;
			height:160px;
			vertical-align:top;	
			border:2px solid black;
			overflow:hidden;
		}
		.header-large {
		    font-size: 120%;
		}
		
		.level-2, .level-3, .level-4, .level-5 {
			padding-left: 0px;
		}
		.times {
			font-size:11px;
			margin:0px;
		}
		.gutter-bottom-medium {
			margin-bottom: 0px;
		}
		
		.gutter-bottom-large {
		    margin-bottom:.5em
		}
		
		.gutter-top-medium {
			margin-top: 0px;
		}
		.gutter-bottom-small {
		    margin:0px
		}
		
		.block {
			border-left: none; 
			margin-left: 0px; 
			text-align:left;
			padding-left: 2px;
            display: inline-block;
		}
		
		.level-1 h2 {
		    font-size:12px;
		    font-weight:bold;
		}
		
		.level-1 ul {
		    text-align:left;
		}
	</style>
	</head>
	<body>
		<div class="report-wrapper">
			<h1 class="header-large txt-center gutter-bottom-large">{{ report.scope }}: {{ report.start_date }} through {{ report.end_date }}</h1>

			{% if report.org_twenty_four_hour_time? %}
				{% assign time_format = "%H:%M" %}
				{% assign time_format_short = "%H" %}
			{% else %}
				{% assign time_format = "%-I%M%P" %}
				{% assign time_format_short = "%-I%P" %}
			{% endif%}

			{% if report.org_day_month_dates? %}
				{% assign date_format = "%d/%m/%Y" %}
			{% else %}
				{% assign date_format = "%m/%d/%Y" %}
			{% endif %}
			
			{% capture first_dayname %}{{ days[0].date | date: '%A' }}{% endcapture %}
			
			{% if first_dayname == 'Sunday' %}
			{% elsif first_dayname == 'Monday' %}
			    <div class="level-1">  
			        	<h2 class="date date-header header-large gutter-bottom-small">Sunday</h2>
			    </div>
			{% elsif first_dayname == 'Tuesday' %}
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Sunday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Monday</h2>
			    </div>
			{% elsif first_dayname == 'Wednesday' %}
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Sunday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Monday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Tuesday</h2>
			    </div>

			{% elsif first_dayname == 'Thursday' %}
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Sunday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Monday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Tuesday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Wednesday</h2>
			    </div>
			{% elsif first_dayname == 'Friday' %}
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Sunday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Monday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Tuesday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Wednesday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Thursday</h2>
			    </div>
			{% elsif first_dayname == 'Saturday' %}
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Sunday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Monday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Tuesday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Wednesday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Thursday</h2>
			    </div>
			    <div class="level-1">  
			        <h2 class="date date-header header-large gutter-bottom-small">Friday</h2>
			    </div>
			{% endif %}
			
			{% for day in days %}
				{% capture day_name %}{{day.date | date: '%A, %B %-d, %Y'}}{% endcapture %}
				<div class="level-1">
					<h2 class="date date-header header-large gutter-bottom-small">{{day_name}}</h2>

					{% if day.instances.size == 0 %}
						<div class="soft pad-left gutter-bottom-medium">
							No events today
						</div>
					{% endif %}

					{% if day.instances.size != 0 %}
						<ul>
							{% for instance in day.instances %}
								{% capture minute_value %} {{ instance.starts_at | date: '%M' }} {% endcapture %}
								{% assign minute_value = minute_value | plus: 0 %}
								<li class="day gutter-bottom-medium gutter-top-medium level-2 block">
									{% capture starts_at_day_name %}{{instance.starts_at | date: '%A, %B %-d, %Y'}}{% endcapture %}
									{% capture ends_at_day_name %}{{instance.ends_at | date: '%A, %B %-d, %Y'}}{% endcapture %}
									<h3 class="times header-medium gutter-bottom-small">
										{% if instance.reservation.all_day_event? %}
											All-day
										{% elsif starts_at_day_name == day_name %}
											{% if ends_at_day_name == day_name %}
												{% if minute_value == 0 %}
												    {{ instance.starts_at | date: time_format_short | downcase }}
												{% else %}
												    {{ instance.starts_at | date: time_format | downcase }}
												{% endif %}
											{% else %}
												{% if minute_value == 0 %}
												    Today, {{ instance.starts_at | date: time_format_short | downcase }}
												{% else %}
												    Today, {{ instance.starts_at | date: time_format | downcase }}
												{% endif %}
											{% endif %}
										{% else %}
											{% if ends_at_day_name == day_name %}
												{% if minute_value == 0 %}
												    {{ instance.starts_at | date: time_format_short | downcase }}
												{% else %}
												    {{ instance.starts_at | date: time_format | downcase }}
												{% endif %}
											{% else %}
												{% if minute_value == 0 %}
												    {{ instance.starts_at | date: time_format_short | downcase }}
												{% else %}
												    {{ instance.starts_at | date: time_format | downcase }}
												{% endif %}
											{% endif %}
										{% endif %}
										{% if instance.event.name != 0 %}
											<span class="{{ instance.approval_status }} " style="font-weight:normal;">
												{% capture event_name %}{{ instance.event.name | truncate: 11, "" }}{% endcapture %}
												{{ event_name }} 
											</span>																									
										{% endif %}									
									</h3>
								</li>
							{% endfor %}
						</ul>
					{% endif %}
				</div>
			{% endfor %}
		</div>
	</body>
</html>