-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoods.html
50 lines (46 loc) · 1.8 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Quantified Self - Manage Foods</title>
<link rel="stylesheet" type="text/css" href="styles/buttons_and_links.css">
<link rel="stylesheet" type="text/css" href="styles/search_forms.css">
<link rel="stylesheet" type="text/css" href="styles/layout.css">
<link rel="stylesheet" type="text/css" href="styles/nav.css">
</head>
<body>
<div class="topnav" id="myTopnav">
<a href="index.html">Home</a>
<a href="foods.html">Foods</a>
</div>
<section class="main-foods">
<h2>Filter by Name <input id="filterInput" type="text" value="Filter by Name"></h2>
<table class="all-foods unsorted">
<tr>
<th></th> <!-- placeholder to allow the table to have another column on the meals page -->
<th>Name</th>
<th class="calorie-header-foods">Calories</th>
<th></th>
</tr>
</table>
</section>
<div class="add-food">
<br>
<h2 class="food-heading heading">Add a New Food</h2>
<form class="form-food">
<div class="form-food-name">
<label class="name-label" >Food Name:
<input class="name-input" type="text" required oninvalid="this.setCustomValidity('Please enter a food name')" onchange="this.setCustomValidity('')">
</label>
</div>
<div class="form-food-calorie">
<label class="calorie-label">Calorie Count:
<input class="calorie-input" type="text" required oninvalid="this.setCustomValidity('Please enter a calorie amount')" onchange="this.setCustomValidity('')">
</label>
</div>
<input type="submit" class="add-food-btn" value="Add Food">
</form>
</div>
<script src="main.bundle.js"></script>
</body>
</html>