-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (64 loc) · 2.58 KB
/
index.html
File metadata and controls
70 lines (64 loc) · 2.58 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
<!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 rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1 class="app-title">Expense Tracker</h1>
<section class="card">
<form id="expense-form" autocomplete="off">
<div class="grid">
<label class="field">
<span class="label">Expense Name</span>
<input id="name" type="text" placeholder="e.g. Groceries" required />
</label>
<label class="field">
<span class="label">Amount (₹)</span>
<input id="amount" type="number" inputmode="decimal" step="0.01" min="0" placeholder="e.g. 500" required />
</label>
<label class="field field-full">
<span class="label">Description</span>
<input id="description" type="text" placeholder="e.g. Bought fruits and vegetables" />
</label>
<label class="field">
<span class="label">Date</span>
<input id="date" type="date" required />
</label>
</div>
<button class="btn primary" type="submit" id="submit-btn">Add Expense</button>
<input type="hidden" id="editing-id" />
</form>
</section>
<section class="card">
<div class="filters">
<input id="search" type="text" placeholder="Search by Name" />
<input id="filter-date" type="date" />
</div>
<div class="table-wrap">
<table class="table" id="expense-table">
<thead>
<tr>
<th>Name</th>
<th>Amount</th>
<th>Description</th>
<th>Date</th>
<th>Action</th>
</tr>
</thead>
<tbody id="tbody"></tbody>
<tfoot>
<tr>
<td colspan="5" class="total">Total: ₹<span id="total">0</span></td>
</tr>
</tfoot>
</table>
</div>
</section>
</div>
<script src="script.js"></script>
</body>
</html>