forked from openiap/opencore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFiles.html
More file actions
85 lines (83 loc) · 3.12 KB
/
Copy pathFiles.html
File metadata and controls
85 lines (83 loc) · 3.12 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
<div class="row" id="title">
<div class="col-sm">
<h1 translate lib="web">files</h1>
</div>
<div class="col-sm"></div>
<div class="col-sm text-right">
<em class="fas fa-cog fa-spin" ng-show="ctrl.loading==true"></em>
</div>
</div>
<style>
#myProgress {
width: 100%;
background-color: grey;
}
#myBar {
width: 1%;
height: 30px;
color: white;
text-align: center;
font-weight: bold;
background-color: green;
}
</style>
<div ng-show="ctrl.errormessage != ''"" class=" alert alert-danger" role="alert">{{ctrl.errormessage}}</div>
<form action="/upload" method="post" enctype="multipart/form-data">
<table id="table1" class="table table-striped table-hover table-sm" when-scrolled="ctrl.more()" style="width: 100%;">
<thead class="thead-dark">
<tr>
<th scope="col" ng-click="ctrl.ToggleOrder('metadata.name')"><b translate lib="web">name</b></th>
<th scope="col" ng-click="ctrl.ToggleOrder('metadata.path')"><b translate lib="web">path</b></th>
<th scope="col" ng-click="ctrl.ToggleOrder('contentType')"><b translate lib="web">type</b></th>
<th scope="col" ng-click="ctrl.ToggleOrder('metadata._createdby')"><b translate lib="web">createdby</b></th>
<th scope="col" ng-click="ctrl.ToggleOrder('metadata._created')"><b translate lib="web">created</b></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="model in ctrl.models">
<td>{{model.metadata.name}}</td>
<td>{{model.metadata.path}}</td>
<td>{{model.contentType}}</td>
<td>{{model.metadata._createdby}}</td>
<td>
<timesince ng-model="model.metadata._created" />
</td>
<td class="btn-cell">
<a ng-href="/download/{{model._id}}" class="table-btn">
<em class="fas fa-file-download"></em>
</a>
</td>
<td class="btn-cell">
<a ng-href="#/Entity/{{ctrl.collection}}/{{model._id}}" class="table-btn"><em class="fas fa-edit"></em></a>
</td>
<td class="btn-cell">
<a href ng-click="ctrl.DeleteOne(model)" ng-disabled="ctrl.loading==true" class="table-btn"><em
class="fas fa-trash"></em></a>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>Upload</td>
<td colspan="4">
<!-- <input type="file" ng-disabled="ctrl.loading==true" class="btn upload-btn" ng-model="ctrl.file"
fileread></button> -->
<input type="file" name="fileupload" id="fileupload" multiple>
</td>
<td colspan="3">
<!-- <input type="button" ng-disabled="ctrl.loading==true" ng-click="ctrl.Upload()" value="Upload"></input> -->
<input type="button" ng-disabled="ctrl.loading==true" ng-click="ctrl.Upload()" value="Upload"></input>
<!-- <input type="submit" value="Upload" name="submit"> -->
<!-- <input type="button" ng-disabled="ctrl.loading==true" ng-click="ctrl.Upload_usingapi()"
value="Upload"></input> -->
</td>
</tr>
</tfoot>
</table>
</form>
<div id="myProgress">
<div id="myBar"></div>
</div>