-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdashboard.html
More file actions
84 lines (81 loc) · 3.81 KB
/
dashboard.html
File metadata and controls
84 lines (81 loc) · 3.81 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Little Helpers</title>
</head>
<body>
<nav class="navbar navbar-toggleable-md navbar-light bg-faded white shadow">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="/dashboard.html">
<img src="media/logo.png" width="225" height="60" class="d-inline-block align-top" alt="">
</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<button type="button" class="btn btn-primary" id="logout">LOGOUT</button>
</li>
</ul>
</div>
</nav>
<main>
<div class="green small-div text-center white-text col-lg-12" id="parentName">
</div>
<div class="row no-gutters" id="children">
<a href class="col-lg-12 text-center" data-toggle="modal" data-target="#addChildModal">
<div class="card grey white-text">
<div class="card-block">
<h1 class="card-title">+ Add Child</h1>
</div>
</div>
</a>
</div>
<div class="modal fade" id="addChildModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<a class="navbar-brand" href="#">
<img src="media/logo.png" width="250" height="70" class="d-inline-block align-top" alt="">
</a>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<input type="input" class="form-control" aria-describedby="enterChild" placeholder="Child's Name" id="childNameAdd">
</div>
<button type="submit" class="btn btn-primary btn-block col-12" id="addChild">Add Child</button>
</form>
</div>
</div>
</div>
</div>
</main>
<script id="parent-template" type="text/x-handlebars-template">
<h1>
Hi {{parentName}}!
</h1>
</script>
<script id="child-template" type="text/x-handlebars-template">
<div class="col-lg-12 text-center">
<div class="card blue white-text">
<button class="text-center btn btn-secondary white-text ml-auto" id='deleteChildButton' data-child="{{id}}">x</button>
<div class="card-block">
<a href="{{childURL}}"><h1 class="card-title text-white">{{childName}}</h1></a>
<h5>has {{childPoints}} points!</h5>
</div>
</div>
</div>
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.10/handlebars.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js" charset="utf-8"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script>
<script src="dashboard.js" charset="utf-8"></script>
</body>
</html>