-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
269 lines (235 loc) · 10.7 KB
/
index.html
File metadata and controls
269 lines (235 loc) · 10.7 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Component Tracing</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.min.css"/> <!-- this is for the date picker to have style. -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/custom.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
#main-menu {
}
#main-menu ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: center;
}
#main-menu li {
display: inline;
}
</style>
</head>
<body>
<div class="mainCont">
<div id="main-menu" class="container">
<header>Component Tracing</header>
<div class="row-fluid">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<ul>
<li>
<button id="loadButton">Load</button>
</li>
<li>
<button id="saveButton">Save</button>
</li>
</ul>
</div>
</div>
</div>
<div class="container" id="mainContainer">
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="menu1" data-toggle="dropdown">Add / Select Machine
<span class="caret"></span></button>
<ul class="dropdown-menu" id="machineSelector" role="menu" aria-labelledby="menu1">
</ul>
</div>
<div class="modal fade" id="modal-id">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Component Change Out</h4>
</div>
<div class="modal-body">
<!-- add a component field -->
<div>Modify Component</div>
<div>
<input type="text" name="" id="modifyModalComponent" class="form-control" placeholder="o" required="required" title="">
</div>
<!-- add an hours field -->
<div>Modify Hours</div>
<div>
<input type="text" name="" id ="modifyModalHours" class="form-control" placeholder="o" required="required" title="">
</div>
<!-- add a projection field -->
<div>Modify Projection Hours</div>
<div>
<input type="text" name="" id="modifyModalProjection" class="form-control" placeholder="o" required="required" title="">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" data-component="" data-dismiss="modal" aria-hidden="true" id="saveChange" class="btn btn-primary">Save changes</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div>
</div>
<div class="container">
<div class="row" id="showHideMachine">
<div class="col-lg-3">
<!-- <div class="col-lg-4 textPush">New Machine ID</div> -->
<div class="col-lg-6"><input type="text" name="" id="newMach" class="form-control" placeholder="New Machine ID" required="required" title=""></div>
</div> <!-- this is the end of the first col of the input div -->
<div class="col-lg-3">
<!-- <div class="col-lg-4 textPush">Year/Make/Model</div> -->
<div class="col-lg-6"><input type="text" name="" id="newYMM" class="form-control" placeholder="Year/Make/Model" required="required" title=""></div>
</div> <!-- this is the end of the second col of the input div -->
<div class="col-lg-3">
<!-- <div class="col-lg-4 textPush">In Service Date</div> -->
<div class="col-lg-6"><input type="text" name="" id="newISD" class="form-control" placeholder="In Service Date" required="required" title=""></div>
</div> <!-- this is the end of the third col for the input -->
<div>
<button type="button" class="btn btn-info" id="addMachine">Add Machine</button>
<button type="button" class="btn btn-info" id="cancelMach">Cancel</button>
</div>
</div>
</div>
<div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div>
<input type="text" name="" id="newMachEdit" class="form-control" placeholder="Machine Name" required="required" title="">
<!-- this is the end of the first col of the input div -->
<input type="text" name="" id="newYMMEdit" class="form-control" placeholder="Year/Make/Model" required="required" title="">
<!-- this is the end of the second col of the input div -->
<input type="text" name="" id="newISDEdit" class="form-control" placeholder="In Service Date" required="required" title="">
<div class="modal-footer">
<button type="button" class="btn btn-info btn-sm" id="enterNew" data-machine = "0" data-dismiss = "modal">ok</button>
<button type="button" class="btn btn-info btn-sm" data-dismiss = "modal">cancel</button>
</div> <!-- this is the end of the modal footer -->
</div>
</div>
</div>
</div>
<div class="container" id="machineContainer">
<!-- add machines to this div -->
<div class="row" id="machine-id">
<!-- information needed for each machine -->
<div class="container" id="dataDiv">
<div class="row">
<h1 class="col-lg-3" id="eqNum"></h1>
<!-- these will change with javascript -->
<h2 class="col-lg-3" id="eqInfo"></h2>
<h2 class="col-lg-3" id="eqISD"></h2>
</div><!--End of Row -->
<div class="container" style="margin-left:0px; padding-left:0%;padding-right:0%;">
<div class="row">
<button style="float:right" type="button" class="btn btn-info" id="hideWarnings">Show/Hide Warnings</button>
</div>
<div id="warnings" class="row" style="margin-left:0; margin-bottom:2px; border-radius:10px;">
<!--<span style="font-size:2em; color:red;" class='glyphicon glyphicon-warning-sign'></span>
<span style="float:right; font-size:2em; color:red;" class='glyphicon glyphicon-warning-sign'></span>-->
</div>
</div>
<div id="headingslg">
<div class="row">
<div class=" size col-lg-1 col-md-1 col-sm-1 col-xs-1"></div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
<h2 style="text-align:center" id="compHead">Component</h2>
</div>
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
<h2 style="text-align:center" id="hourHead">Hours</h2>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
<h2 id="projHead">Projection</h2>
</div>
</div>
</div> <!--End of Row -->
<div class="row" id="newRow">
<div class="row" id="rowTwo">
<div class=" size col-lg-1 col-md-1 col-sm-1 col-xs-1"></div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3" id="component"></div>
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2" id="hours"></div>
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2" id="projection"></div>
<div class="col-lg-1 col-md-1 col-sm-1 col-xs-1" id="part-item-input-"></div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
<div style="height: 4em;"></div>
<div id="adjust1"></div>
</div>
</div>
</div><!-- End of Row -->
<div class="row" id="entry">
<div class="col-lg-2">
<div class="comp"><p>Hours Worked</p></div>
</div>
<div class="col-lg-2">
<div class="addhours clearfix"><input type="number" name="" id="input" class="form-control" value="1" min="1" max="24" step=".25" required="required" title=""></div>
</div>
<div class="col-lg-1">
<div><button type="button" class="btn btn-info" id="submit">Submit</button></div>
</div>
</div> <!-- End of Row 3 -->
<!-- this is the spot for the add component feature. -->
<div class="row" id="compAdd">
<div class="feature">
<button type="button" class="btn btn-info" id="addComp">Add Components</button>
</div> <!-- this is the end of the feature div. -->
</div> <!-- this is the end of the top row for the add button -->
<div class="row" id="showHide">
<div class="col-lg-3">
<div class="row">
<div class="col-lg-4 textPush">Component</div>
<div class="col-lg-6"><input type="text" name="" id="newComp" class="form-control" value="Item here" min="" max="" step="" required="required" title=""></div>
</div>
</div> <!-- this is the end of the first col of the input div -->
<div class="col-lg-3" >
<div class="row">
<div class="col-lg-4 textPush pull-left" id="textFormat">Hours</div>
<div class="col-lg-6"><input type="number" name="" id="newRoof" class="form-control" value=0 min="0" max="" step=".25" required="required" title=""></div>
</div>
</div> <!-- this is the end of the second col of the input div -->
<div class="col-lg-3">
<div class="row">
<div class="col-lg-4 textPush pull-left">Projection</div>
<div class="col-lg-6"><input type="number" name="" id="newProj" class="form-control" value=1 min="1" max="" step=".25" required="required" title=""></div>
</div>
</div> <!-- this is the end of the third col for the input -->
<div class="col-lg-3">
<div class="row">
<div class="col-lg-4 col-sm-6 col-xs-6">
<button type="button" class="btn btn-info" id="insertComp">add</button>
</div>
<div class="col-lg-4 col-sm-6 col-xs-6">
<span class="glyphicon-remove glyphicon class btn btn-info" id="out">Exit</span>
</div>
</div>
</div>
</div> <!-- end of the show and hide feilds -->
</div> <!-- End of Container -->
<!-- jQuery -->
<script type="text/javascript" src="js/jquery.js"></script>
<!-- Bootstrap JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<!-- the next two are for the datepicker that is used for validation. -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/model.js"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/addMachine.js"></script>
<script type="text/javascript" src="js/addComponent.js"></script>
</div>
</div>
</div>
</body>
</html>