archive/scheduleac/client/client.html
2016-03-01 16:46:37 -05:00

75 lines
1.6 KiB
HTML

<head>
<title>AC/Health Schedule</title>
<link rel="icon" sizes="32x32" href="/favicon.ico">
</head>
<body>
{{#if isDesktop}}
{{> client}}
{{else}}
{{> phone}}
{{/if}}
</body>
<template name="day">
<p class="type">{{aftertext}} </p><p class="date">{{pretext}}</p> <p class="other">{{other}}</p>
{{#if allowed}}
<i class="fa fa-times fa-3x"></i>
{{/if}}
</template>
<template name="recent">
<div class="recent eachDay {{aftertext}}">
<p class="type">{{aftertext}} </p><p class="date">{{pretext}}</p> <p class="other">{{other}}</p>
{{#if allowed}}
<i class="fa fa-times fa-3x"></i>
{{/if}}
</div>
</template>
<template name="client">
<div class="pulltab"></div>
<div class="scale">
{{> sidebar}}
</div>
<div class="scheduleList">
{{#each mostrecent}}
{{> recent}}
{{/each}}
{{#each sched}}
<div class="eachDay {{aftertext}}">
{{> day}}
</div>
{{/each}}
</div>
</template>
<template name="sidebar">
<div class="sidebar">
<h1>AC/Health Schedule</h1>
{{> loginButtons}}
{{#if allowed}}
<input type="text" class="form-control" id="date" placeholder="date">
<select id="post">
<option value="AC">AC</option>
<option value="Health">Health</option>
</select>
<input type="text" id="other" placeholder="comments">
<button id="button">Update!</button>
{{/if}}
<div class='about'>
<p>Developed by Yaman Qalieh</p>
<p>Visuals by Kenny Jao</p>
<a class="github" target="_blank" href="https://github.com/yamanq/scheduleac">Github</a>
</div>
</div>
</template>
<template name="phone">
{{#each phone}}
{{> recent}}
{{/each}}
</template>