-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfoods.html
72 lines (67 loc) · 2.62 KB
/
foods.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Quantified Self - Manage Foods</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="/css/styles.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"></script>
</head>
<body>
<div class="fixed-action-btn horizontal click-to-toggle">
<a class="btn-floating btn-large red">
<i class="material-icons">menu</i>
</a>
<ul>
<li><a class="btn-floating red" href="./foods.html"><i class="material-icons">shopping_cart</i></a></li>
<li><a class="btn-floating yellow darken-1" href="./exercises.html"><i class="material-icons">av_timer</i></a></li>
<li><a class="btn-floating blue" href="./index.html"><i class="material-icons">language</i></a></li>
</ul>
</div>
<div class="container">
<h3 style="text-align: center;">Manage Foods</h3>
<div class="row">
<div class="col s6">
<form action="foods.html" method="post" class="food-input-container">
<div class="food-input-container">
<div class="food-label">
<div><label for="food-name">Name</label></div>
<input type="text" id="food-name" name="food-name" class="food-input">
<p id="food-warning"></p>
</div>
<div class="food-label">
<div><label for="food-calories">Calories</label></div>
<input type="number" id="food-calories" name="food-calories" class="food-input">
<p id="calories-warning"></p>
</div>
<input class="waves-effect waves-light btn" type="submit" id= "add-food" value="Add Food" style="float: right; position: relative;">
</div>
</form>
</div>
<div class="col s6">
<div class="food-label">
<div><label for="food-filter">Filter by Name</label></div>
<input type="text" name="food-filter" id="food-filter" value="">
</div>
<table id="food-table" class="highlight">
<thead class="food-table-header">
<tr>
<th>Name</th>
<th>Calories</th>
<th></th>
</tr>
</thead>
<tbody id="food-body">
<tr>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
<script src="main.bundle.js"></script>
<script src="foods.bundle.js"></script>
</html>