app.html
3.36 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
<!-- app partial HTML -->
<div id="ov-app" filedrop on-file-drop="appDropped()">
<div class="tabular-header">
<h2>Applications ({{tableData.length}} total)</h2>
<div class="ctrl-btns">
<div class="refresh" ng-class="{active: autoRefresh}"
icon icon-size="36" icon-id="refresh"
tooltip tt-msg="autoRefreshTip"
ng-click="toggleRefresh()"></div>
<div class="separator"></div>
<form id="inputFileForm">
<input id="uploadFile"
type="file" size="50" accept=".oar"
file-model="appFile">
</form>
<div icon icon-size="36" icon-id="plus"
class="active" trigger-form
tooltip tt-msg="uploadTip">
</div>
<div icon icon-size="36" icon-id="play"
ng-click="appAction('activate')"
tooltip tt-msg="activateTip"
ng-class="{active: ctrlBtnState.installed}">
</div>
<div icon icon-size="36" icon-id="stop"
ng-click="appAction('deactivate')"
tooltip tt-msg="deactivateTip"
ng-class="{active: ctrlBtnState.active}">
</div>
<div icon icon-size="36" icon-id="garbage"
ng-click="appAction('uninstall')"
tooltip tt-msg="uninstallTip"
ng-class="{active: ctrlBtnState.selection}">
</div>
</div>
</div>
<div class="summary-list" onos-table-resize>
<div class="table-header" onos-sortable-header>
<table>
<tr>
<td colId="state" class="table-icon" sortable></td>
<td colId="icon" class="table-icon">Icon </td>
<td colId="title" sortable col-width="240px">Title </td>
<td colId="id" sortable col-width="280px">App ID </td>
<td colId="version" sortable col-width="128px">Version </td>
<td colId="category" sortable col-width="136px">Category </td>
<td colId="origin" sortable>Origin </td>
</tr>
</table>
</div>
<div class="table-body">
<table onos-flash-changes id-prop="id">
<tr ng-if="!tableData.length" class="no-data">
<td colspan="5">
{{annots.no_rows_msg}}
</td>
</tr>
<tr ng-repeat="app in tableData track by $index"
ng-click="selectCallback($event, app)"
ng-class="{selected: app.id === selId}"
ng-repeat-complete row-id="{{app.id}}">
<td class="table-icon">
<div icon icon-id="{{app._iconid_state}}"></div>
</td>
<td><img data-ng-src="./rs/applications/{{app.icon}}/icon"
height="28px" width="28px" /></td>
<td>{{app.title}}</td>
<td>{{app.id}}</td>
<td>{{app.version}}</td>
<td>{{app.category}}</td>
<td>{{app.origin}}</td>
</tr>
</table>
</div>
</div>
<application-details-panel></application-details-panel>
</div>