-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (79 loc) · 2.54 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
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Expense Tracker</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="container">
<form id="myForm" onsubmit="handleFormSubmit(event)">
<label for="amountInput" class="form-label"
>Choose Expense Amount:</label
><br />
<input
type="number"
id="amountInput"
name="amountInput"
class="form-control"
required
/><br />
<label for="descriptionInput" class="form-label">Description:</label
><br />
<input
type="text"
id="descriptionInput"
name="descriptionInput"
class="form-control"
required
/><br />
<label for="categorySelect" class="form-label">Category:</label><br />
<select
id="categorySelect"
name="categorySelect"
class="form-select"
required
>
<option value="">Select a category</option>
<option value="Fuel">Fuel</option>
<option value="Electricity">Electricity</option>
<option value="Food">Food</option>
<option value="Movie">Movie</option></select
><br />
<button type="submit" class="btn btn-outline-primary">
Add Expense
</button>
</form>
<!-- <ul
id="expenseList"
class="list-unstyled d-flex justify-content-center align-items-start flex-column my-4 fs-5"
></ul> -->
<table id="expenseTable" class="table my-5">
<thead>
<tr>
<th scope="col">Amount</th>
<th scope="col">Description</th>
<th scope="col">Category</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody id="expenseList">
<!-- Expense items will be dynamically added here -->
</tbody>
</table>
</div>
<script src="script.js"></script>
</body>
</html>