-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (63 loc) · 3.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>iNeedABudget - Your Simple Budgeting Tool</title>
<link href="https://fonts.googleapis.com/css?family=Crimson+Text|Lato:400,700" rel="stylesheet">
<link rel="stylesheet" href="styles/main.css">
</head>
<body>
<div class="wrapper">
<h1>iNeedABudget</h1>
<div class="flex-row">
<div class="input wrapper_inner">
<h2>Please enter your monthly budget</h2>
<form action="">
<div class="expense">
<label for="category-budget" class="visually-hidden">Expense:</label>
<select name="category" id="category-budget" required>
<option value="" selected hidden>Please select a category</option>
<option class="food-option" value="food">Food</option>
<option class="entertainment-option" value="entertainment">Entertainment</option>
<option class="travel-option" value="travel">Travel</option>
<option class="debt-option" value="debt">Debt</option>
<option class="discretionary-option" value="discretionary">Discretionary</option>
<option class="miscellaneous-option" value="miscellaneous">Miscellaneous</option>
</div>
<div class="amount">
<label for="budget" class="visually-hidden">Amount:</label>
<input type="number" id="budget" placeholder="Amount" step=0.01 min=0.01 required>
</div>
<input type="submit" value="Add" class="submit-button">
<button type="button" value="edit" class="edit-button hidden">Edit</button>
<!-- MUST change type to button otherwise it will submit the form which fires off the add expense function -->
</form>
</div>
<div class="output wrapper_inner">
<h2>Your Monthly Summary</h2>
<table>
<tr class="heading">
<th>Category</th>
<th>Budget</th>
<th>Edit</th>
<th>Delete</th>
</tr>
<!-- ********** below is just an example, nothing will show until user inputs data ********** -->
<!-- <tr class="food category">
<td class="name">Food</td>
<td class="budget">$200.00</td>
<td><input type=radio name=action value=food class=edit></td>
<td><input type=radio name=action value=food class=delete></td>
</tr> -->
</table>
</div>
</div>
<!-- <div class="transactions spending">
</div> -->
</div>
<script src='https://code.jquery.com/jquery-3.2.1.min.js' integrity='sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4='crossorigin='anonymous'></script>
<script src="script.js"></script>
</body>
</html>