forked from soen-387/inventory-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form.html
82 lines (77 loc) · 2.73 KB
/
Form.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Inventory UI</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/fonts/ionicons.min.css">
<link rel="stylesheet" href="assets/css/Login-Form-Clean.css">
<link rel="stylesheet" href="assets/bootstrap-select/css/bootstrap-select.min.css">
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/inventory.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/bootstrap-select/js/bootstrap-select.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header"><a class="navbar-brand navbar-link" href="#">Inventory </a>
<button class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navcol-1"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
</div>
<div class="collapse navbar-collapse" id="navcol-1">
<ul class="nav navbar-nav"></ul><a class="navbar-right navbar-link" href="#">Link</a>
<ul class="nav navbar-nav">
<li role="presentation"><a href="#">Profile </a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="panel panel-default">
<div class="panel-body">
<form>
<div class="form-group">
<label for="name">Name:</label>
<input type="text" class="form-control" id="name" name="name">
</div>
<br>
<div class="form-group">
<label for="type">Type:</label>
<select class="selectpicker form-control" id="type" name="type">
<option>Conference Room</option>
<option>Projector</option>
<option>Whiteboard</option>
<option>Computer</option>
</select>
</div>
<br>
<div class="form-group">
<label for="status">Status:</label>
<select class="selectpicker form-control" id="status" name="status">
<option>Available</option>
<option>Unavailable</option>
</select>
</div>
<input type="hidden" name="id" id="id" value="0">
<br>
<button type="button" class="btn btn-default" id="saveResource">Save</button>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
$( document ).ready(function() {
loadEdit();
$("#deleteResource").click(function() {
deleteResource();
});
$("#saveResource").click(function() {
saveResource();
});
});
</script>