-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (90 loc) · 4.01 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Accounts</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="jumbotron text-center">
<h3>Accounts</h3>
<button id="accBtn" class="btn btn-primary">Accounts</button>
<button id="addBtn" class="btn btn-primary">Add Accounts</button>
<button id="editBtn" class="btn btn-primary">edit/delete</button>
</div>
<div class="container">
<div class="row" id="accView">
<div class="col-10 offset-1">
<h4 class="text-center">Accounts</h4>
<div class="row">
<div class="col-10 offset-1">
<table class="table">
<thead>
<th>ID</th>
<th>NAME</th>
<th>DEPOSIT</th>
<th>CREDIT CARD</th>
</thead>
<tbody id="main-body">
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row" id="addView">
<div class="col-10 offset-1">
<h4 class="text-center">Add Accounts</h4>
<div class="row">
<div class="col-10 offset-1">
<input type="text" name="name" placeholder="Name" class="form-control"><br>
<input type="number" name="deposit" placeholder="Deposit" class="form-control"><br>
<input type="text" name="credit_card" placeholder="Credit Card" class="form-control"><br>
<button id="saveBtn" class="btn btn-primary form-control" name="save" >Save</button>
</div>
</div>
</div>
</div>
</div>
<div class="row" id="editView">
<div class="col-10 offset-1">
<h4 class="text-center"> Edit/Delete Accounts</h4>
<div class="row">
<div class="col-10 offset-1">
<table class="table">
<thead>
<th>ID</th>
<th>NAME</th>
<th>DEPOSIT</th>
<th>CREDIT CARD</th>
<th>EDIT</th>
<th>DELETE</th>
</thead>
<tbody id="edit-body">
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row" id="updateView">
<div class="col-10 offset-1">
<h4 class="text-center">Update Accounts</h4>
<div class="row">
<div class="col-10 offset-1" id="showDetails">
<input type="text" name="nameUpdate" placeholder="Name" class="form-control"><br>
<input type="number" name="depositUpdate" placeholder="Deposit" class="form-control" ><br>
<input type="text" name="credit_cardUpdate" placeholder="Credit Card" class="form-control" ><br>
<input type="hidden" name="id">
</div>
<div class="col-10 offset-1" id="showDetails">
<button id="updateBtn" class="btn btn-primary form-control" name="save" >Save</button>
</div>
</div>
</div>
</div>
<script src="js/DB.js"></script>
<script src="js/main.js"></script>
</body>
</html>