This repository has been archived by the owner on May 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (64 loc) · 2.69 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="Attendance System">
<title>Presentie Informatie Systeem</title>
<link rel="stylesheet" href="css/main.css">
<script type="text/javascript" src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="elements/elements.html">
</head>
<body unresolved>
<template is="dom-bind" id="app">
<nav class="wrapper primary">
<h6>Hey, {{firstname}}!</h6>
<paper-menu attr-for-selected="data-route" selected="[[route]]" selected-class="active">
<a data-route="agenda" href="{{baseUrl}}" hidden="{{isGuest}}">Agenda</a>
<a data-route="report" href="{{baseUrl}}report" hidden="{{isGuest}}">Rapportage</a>
<a data-route="logout" href="{{baseUrl}}logout" hidden="{{isGuest}}">Uitloggen</a>
<p hidden="{{isLoggedIn}}">Graag eerst even inloggen</p>
</paper-menu>
</nav>
<main class="wrapper secondary">
<iron-pages attr-for-selected="data-route" selected="{{route}}">
<section data-route="home">
<h1>Agenda</h1>
<agenda-list></agenda-list>
</section>
<section data-route="report">
<h1>Rapportage</h1>
<user-stats></user-stats>
</section>
<section data-route="lesson">
<h1>Lesactiviteit</h1>
<template is="dom-if" if="{{isStudent}}">
<h5>Weet je zeker dat je je af wilt melden voor deze les?</h5>
<a class="option" href=""><iron-icon icon="check"></iron-icon> Ja, meldt mij afwezig.</a>
<a class="option" href=""><iron-icon icon="clear"></iron-icon> Nee!</a>
</template>
<template is="dom-if" if="{{notStudent}}">
<h5>Geef aan welke studenten aanwezig zijn.</h5>
<user-list></user-list>
</template>
</section>
<section data-route="login">
<h1>Inloggen</h1>
<form>
<paper-input id="email" type="email" error-message="Voer een correct e-mailadres in." label="E-mail" auto-validate required></paper-input>
<paper-input id="password" type="password" error-message="Het wachtwoord is incorrect." label="Password" auto-validate required></paper-input>
<paper-button id="login">Inloggen</paper-button>
</form>
<iron-ajax id="ajax" method="POST" url="/login" handle-as="json" on-response="handleLogin"></iron-ajax>
</section>
</iron-pages>
</main>
<paper-toast id="toast" duration="5000">
<p><span onclick="app.$.toast.hide()">Sluiten</span></p>
</paper-toast>
</template>
<script type="text/javascript" src="bower_components/js-cookie/src/js.cookie.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>