Added output schedule template.
This commit is contained in:
parent
6fe101f220
commit
689c9a67bf
57
src/www/schedule.template
Normal file
57
src/www/schedule.template
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/nursery-schedule.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<section class=sundays><%
|
||||||
|
['first', 'second', 'third', 'fourth', 'fifth'].each {
|
||||||
|
dayNumber ->
|
||||||
|
|
||||||
|
if (sundays[dayNumber].date) { %>
|
||||||
|
|
||||||
|
<div class=${dayNumber}>
|
||||||
|
<h3>${dayNumber.capitalize()} Sunday, ${sundays[dayNumber].date}</h3>
|
||||||
|
<div class=am>
|
||||||
|
<div class=toddlers>
|
||||||
|
<h5>Toddlers</h5>
|
||||||
|
<ul><%
|
||||||
|
sundays[dayNumber].toddlers.each { volunteer -> %>
|
||||||
|
<li>${volunteer}</li><% } %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class=infants>
|
||||||
|
<h5>Infants</h5>
|
||||||
|
<ul><%
|
||||||
|
sundays[dayNumber].infants.each { volunteer -> %>
|
||||||
|
<li>${volunteer}</li><% } %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class=pm>
|
||||||
|
<h5>Evening Service</h5>
|
||||||
|
<ul><%
|
||||||
|
sundays[dayNumber].pm.each { volunteer -> %>
|
||||||
|
<li>${volunteer}</li><% } %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div><% }} %>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class=wednesdays><%
|
||||||
|
['first', 'second', 'third', 'fourth', 'fifth'].each {
|
||||||
|
dayNumber ->
|
||||||
|
|
||||||
|
if (wednesdays[dayNumber].date) { %>
|
||||||
|
<div class=${dayNumber}>
|
||||||
|
<h3>${dayNumber.capitalize()} Wednesday, ${wednesdays[dayNumber].date}</h3>
|
||||||
|
<ul><% wednesdays[dayNumber].volunteers.each {
|
||||||
|
volunteer -> %>
|
||||||
|
<li>${volunteer}</li><% } %>
|
||||||
|
</ul>
|
||||||
|
</div><% }} %>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user