Thomas Vachuska | 0fa583c | 2015-03-30 23:07:41 -0700 | [diff] [blame] | 1 | <!-- app partial HTML --> |
| 2 | <div id="ov-app"> |
Bri Prebilic Cole | 4506938 | 2015-04-14 15:21:38 -0700 | [diff] [blame] | 3 | <div class="tabular-header"> |
Thomas Vachuska | 619c538 | 2015-04-02 13:41:47 -0700 | [diff] [blame] | 4 | <h2>Applications ({{ctrl.tableData.length}} total)</h2> |
Simon Hunt | 3695a62 | 2015-03-31 11:52:23 -0700 | [diff] [blame] | 5 | <div class="ctrl-btns"> |
Thomas Vachuska | a7a0f56 | 2015-04-14 23:27:44 -0700 | [diff] [blame^] | 6 | <div id="app-install" icon icon-size="36" icon-id="plus" class="active"></div> |
| 7 | <div id="app-activate" icon icon-size="36" icon-id="play"></div> |
| 8 | <div id="app-deactivate" icon icon-size="36" icon-id="stop"></div> |
| 9 | <div id="app-uninstall" icon icon-size="36" icon-id="minus"></div> |
Simon Hunt | 3695a62 | 2015-03-31 11:52:23 -0700 | [diff] [blame] | 10 | </div> |
Thomas Vachuska | a7a0f56 | 2015-04-14 23:27:44 -0700 | [diff] [blame^] | 11 | |
| 12 | <form id="app-form" method="POST" action="/onos/v1/applications/upload" enctype="multipart/form-data" style="display:none"> |
| 13 | <input type="file" id="file" accept=".oar"> |
| 14 | <button type="submit" id="app-upload">Upload</button> |
| 15 | </form> |
Simon Hunt | 3695a62 | 2015-03-31 11:52:23 -0700 | [diff] [blame] | 16 | </div> |
Bri Prebilic Cole | 4506938 | 2015-04-14 15:21:38 -0700 | [diff] [blame] | 17 | |
Thomas Vachuska | 0fa583c | 2015-03-30 23:07:41 -0700 | [diff] [blame] | 18 | <table class="summary-list" |
| 19 | onos-fixed-header |
| 20 | onos-sortable-header |
| 21 | sort-callback="sortCallback(requestParams)"> |
| 22 | <thead> |
| 23 | <tr> |
| 24 | <th colId="state" class="table-icon" sortable></th> |
| 25 | <th colId="id" sortable>App ID </th> |
Bri Prebilic Cole | 864cdd6 | 2015-04-02 15:46:47 -0700 | [diff] [blame] | 26 | <th colId="version" sortable>Version </th> |
Thomas Vachuska | 0fa583c | 2015-03-30 23:07:41 -0700 | [diff] [blame] | 27 | <th colId="origin" sortable>Origin </th> |
Thomas Vachuska | a7a0f56 | 2015-04-14 23:27:44 -0700 | [diff] [blame^] | 28 | <th colId="desc" col-width="640px">Description </th> |
Thomas Vachuska | 0fa583c | 2015-03-30 23:07:41 -0700 | [diff] [blame] | 29 | </tr> |
| 30 | </thead> |
| 31 | |
| 32 | <tbody> |
Simon Hunt | 35d1888 | 2015-04-02 20:16:26 -0700 | [diff] [blame] | 33 | <tr ng-hide="ctrl.tableData.length"> |
| 34 | <td class="nodata" colspan="5"> |
| 35 | No Applications found |
| 36 | </td> |
| 37 | </tr> |
| 38 | |
| 39 | <tr ng-repeat="app in ctrl.tableData" |
Bri Prebilic Cole | b699a16 | 2015-04-13 12:01:39 -0700 | [diff] [blame] | 40 | ng-click="selectCallback($event, app)" |
Simon Hunt | 35d1888 | 2015-04-02 20:16:26 -0700 | [diff] [blame] | 41 | ng-class="{selected: app === sel}" |
| 42 | ng-repeat-done> |
| 43 | <td class="table-icon"> |
| 44 | <div icon icon-id="{{app._iconid_state}}"></div> |
| 45 | </td> |
| 46 | <td>{{app.id}}</td> |
| 47 | <td>{{app.version}}</td> |
| 48 | <td>{{app.origin}}</td> |
| 49 | <td>{{app.desc}}</td> |
| 50 | </tr> |
Thomas Vachuska | 0fa583c | 2015-03-30 23:07:41 -0700 | [diff] [blame] | 51 | </tbody> |
| 52 | </table> |
Thomas Vachuska | 0fa583c | 2015-03-30 23:07:41 -0700 | [diff] [blame] | 53 | </div> |