-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·184 lines (164 loc) · 7.89 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
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
<!DOCTYPE html>
<html ng-app="documentClassification">
<head lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="image/favicon.ico">
<title>Telamon Document Classification Demo</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"> -->
<link rel="stylesheet" href="css/style.css">
</head>
<body ng-controller="UploadCtrl">
<nav class="navbar">
<div class="container-fluid">
<div class="navbar-header">
<img class="page-logo" src="image/brandicon.png" alt="TELAMON">
<h1 class="page-name">Telamon Document Classification</h1>
</div>
<div class="navbar-upload">
<input type="file" onchange="angular.element(this).scope().fileChanged(this)" >
</div>
</div>
</nav>
<div class="container-fluid" ng-controller="DocCtrl">
<div class="status-tab">
<ul class="nav nav-tabs nav-justified">
<li role="presentation" ng-class="{active:isSelected(1)}"><a ng-click="select(1)">New</a></li>
<li role="presentation" ng-class="{active:isSelected(2)}"><a ng-click="select(2)">Exception</a></li>
<li role="presentation" ng-class="{active:isSelected(3)}"><a ng-click="select(3)">Hold</a></li>
<li role="presentation" ng-class="{active:isSelected(4)}"><a ng-click="select(4)">Processed</a></li>
</ul>
</div>
<div class="search-area">
<div class="input-group">
<!-- <input class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Search</button>
</span> -->
</div>
</div>
<div id="fileViewer" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="viewFile" aria-hidden="true">
<div class="modal-dialog modal-large">
<div class="modal-content">
<div class="modal-header">
<button class="close" data-dismiss="modal" type="button" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h5 class="modal-title">File Detail</h5>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-8">
<embed class="pdf-viewer" src="pdf/test.pdf" width="500px" height="800px">
</div>
<div class="col-sm-4">
<form class="form-horizontal">
<<<<<<< HEAD
=======
<div class="form-group row">
<label class="col-sm-3 control-label" for="fileID">File ID</label>
<div class="col-sm-8 offset-sm-1">
<input class="form-control" type="text" id="fileID" ng-model="files[index].fileid">
</div>
</div>
>>>>>>> origin/master
<div class="form-group row">
<label class="col-sm-3 control-label" for="fileName">File Name</label>
<div class="col-sm-8 offset-sm-1">
<<<<<<< HEAD
<input class="form-control" type="text" id="fileName" ng-model="file.name">
=======
<input class="form-control" type="text" id="fileName" ng-model="files[index].name">
>>>>>>> origin/master
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label" for="fileStatus">File Status</label>
<div class="col-sm-8 offset-sm-1">
<<<<<<< HEAD
<input class="form-control" type="text" id="fileStatus" ng-model="file.status">
=======
<input class="form-control" type="text" id="fileStatus" ng-model="files[index].status">
>>>>>>> origin/master
</div>
</div>
<div class="form-group row">
<label class="col-sm-3 control-label" for="fileDate">Enter Date</label>
<div class="col-sm-8 offset-sm-1">
<<<<<<< HEAD
<input class="form-control" type="text" id="fileDate" ng-model="file.enterdate">
=======
<input class="form-control" type="text" id="fileDate" ng-model="files[index].enterdate">
>>>>>>> origin/master
</div>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary" ng-click="submit()">Submit</button>
</div>
</form>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="table-wrapper">
<table class="table table-striped">
<thead>
<tr>
<<<<<<< HEAD
=======
<th>File ID</th>
>>>>>>> origin/master
<th>File Name</th>
<th>Status</th>
<th>Entered At</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr ng-if="show">
<td>{{uploadFile.name}}</td>
<td>{{uploadFile.status}}</td>
<td>{{uploadFile.enterdate | date:'short'}}</td>
<td><button class="btn button-upload" ng-click="uploadNewFile(uploadFile)">Upload</button>
<button class="btn button-delete" ng-click="clearUpload()">Remove</button></td>
</tr>
<tr ng-repeat="file in files | filter: {status: filterText}">
<td>{{file.name}}</td>
<td>{{file.status}}</td>
<<<<<<< HEAD
<td>{{file.enterdate | date: 'short'}}</td>
<td><button class="btn button-view" ng-click="fileSelect(file)" data-toggle="modal" data-target="#fileViewer">View</button>
<button class="btn button-delete" ng-click="removeFile(file)">Remove</button></td>
=======
<td>{{file.enterdate}}</td>
<td><button class="btn view-button" ng-click="fileSelect(file)" data-toggle="modal" data-target="#fileViewer">View</button></td>
>>>>>>> origin/master
</tr>
</tbody>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/3.6.9/firebase.js"></script>
<!-- AngularFire -->
<script src="https://cdn.firebase.com/libs/angularfire/2.3.0/angularfire.min.js"></script>
<!--AngularFire tutorial: https://www.firebase.com/docs/web/libraries/angular/quickstart.html#section-arrays-->
<script src="node_modules/ng-file-upload-bower-12.2.13/ng-file-upload-shim.min.js"></script>
<script src="node_modules/ng-file-upload-bower-12.2.13/ng-file-upload.min.js"></script>
<script src="js/service.js"></script>
<script src="js/controller.js"></script>
<script src="js/app.js"></script>
</body>
</html>