-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
87 lines (73 loc) · 2.93 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
86
87
<!DOCTYPE html>
<html>
<head>
<title>Expense Tracking System</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.8.1/css/bulma.css" />
<link rel="stylesheet" href="./styles/index.css">
<script src="./scripts/expense.js"></script>
</head>
<body>
<div class="header">
Expense Tracking System
</div>
<div class="body">
<!-- Expense Form -->
<div class="expense-form">
<!-- Name of expense -->
<!-- This field is required -->
<div class="field">
<label class="label">Name</label>
<div class="control">
<input class="input" type="text" placeholder="Name of expense" id="expense-form-name">
</div>
<p class="help is-danger" id="expense-form-alert-name"></p>
</div>
<!-- Category of expense -->
<!-- Default is General -->
<div class="field">
<label class="label">Category</label>
<div class="control">
<div class="select">
<select id="expense-form-category">
<option>General</option>
<option>Applicances</option>
<option>Food</option>
<option>Entertainment</option>
<option>Bills</option>
<option>Other</option>
</select>
</div>
</div>
</div>
<!-- Amount of expense -->
<!-- This field will check is the input is valid number or not. Default is 0.00 -->
<div class="field">
<label class="label">Amount</label>
<div class="control has-icons-left">
<input class="input" type="text" placeholder="Amount of money" id="expense-form-amount">
<span class="icon is-small is-left">$</span>
</div>
<p class="help is-danger" id="expense-form-alert-amount"></p>
</div>
<!-- Description of expense -->
<!-- Optional field for the description -->
<div class="field">
<label class="label">Description</label>
<div class="control">
<textarea class="textarea" placeholder="Description of expense" id="expense-form-description"></textarea>
</div>
</div>
<!-- Submit button of expense -->
<div class="field">
<p class="control">
<button class="button is-success" id="button-add" onclick="addExpense(this)">
Add
</button>
</p>
</div>
</div>
<div class="display-area" id="expense-list">
</div>
</div>
</body>
</html>