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"> |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 4 | <h2>Applications ({{tableData.length}} total)</h2> |
Simon Hunt | 3695a62 | 2015-03-31 11:52:23 -0700 | [diff] [blame] | 5 | <div class="ctrl-btns"> |
Bri Prebilic Cole | 41d6765 | 2015-06-02 10:23:04 -0700 | [diff] [blame] | 6 | <div class="refresh" ng-class="{active: autoRefresh}" |
Bri Prebilic Cole | 43f17c0 | 2015-05-01 10:43:38 -0700 | [diff] [blame] | 7 | icon icon-size="36" icon-id="refresh" |
Bri Prebilic Cole | 41d6765 | 2015-06-02 10:23:04 -0700 | [diff] [blame] | 8 | ng-click="toggleRefresh()"></div> |
Bri Prebilic Cole | 3d4d01c | 2015-04-30 13:48:36 -0700 | [diff] [blame] | 9 | <div class="separator"></div> |
Bri Prebilic Cole | 6b95a3f | 2015-06-04 09:15:00 -0700 | [diff] [blame^] | 10 | <div id="app-install" |
| 11 | icon icon-size="36" icon-id="plus" |
| 12 | class="active"> |
| 13 | </div> |
| 14 | <div id="app-activate" |
| 15 | icon icon-size="36" icon-id="play" |
| 16 | ng-class="{active: ctrlBtnState.installed}"> |
| 17 | </div> |
| 18 | <div id="app-deactivate" |
| 19 | icon icon-size="36" icon-id="stop" |
| 20 | ng-class="{active: ctrlBtnState.active}"> |
| 21 | </div> |
| 22 | <div id="app-uninstall" |
| 23 | icon icon-size="36" icon-id="garbage" |
| 24 | ng-class="{active: ctrlBtnState.selection}"> |
| 25 | </div> |
Simon Hunt | 3695a62 | 2015-03-31 11:52:23 -0700 | [diff] [blame] | 26 | </div> |
Thomas Vachuska | a7a0f56 | 2015-04-14 23:27:44 -0700 | [diff] [blame] | 27 | |
Thomas Vachuska | 530e52a | 2015-05-06 19:51:32 -0700 | [diff] [blame] | 28 | <form id="app-form" method="POST" action="rs/applications/upload" |
| 29 | target="app-form-response" enctype="multipart/form-data" style="display:none"> |
| 30 | <input type="file" name="file" id="file" size="50" accept=".oar"> |
Thomas Vachuska | a7a0f56 | 2015-04-14 23:27:44 -0700 | [diff] [blame] | 31 | <button type="submit" id="app-upload">Upload</button> |
| 32 | </form> |
Thomas Vachuska | 530e52a | 2015-05-06 19:51:32 -0700 | [diff] [blame] | 33 | <iframe id="app-form-response" name="app-form-response" |
| 34 | src="" width="0" height="0" style="visibility:hidden;display:none"></iframe> |
Simon Hunt | 3695a62 | 2015-03-31 11:52:23 -0700 | [diff] [blame] | 35 | </div> |
Bri Prebilic Cole | 4506938 | 2015-04-14 15:21:38 -0700 | [diff] [blame] | 36 | |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 37 | <div class="summary-list" onos-fixed-header> |
Thomas Vachuska | 0fa583c | 2015-03-30 23:07:41 -0700 | [diff] [blame] | 38 | |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 39 | <div class="table-header" |
Bri Prebilic Cole | bfab9c7 | 2015-06-01 14:33:18 -0700 | [diff] [blame] | 40 | onos-sortable-header |
| 41 | sort-params="sortParams" |
| 42 | sort-callback="sortCallback(sortParams)"> |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 43 | <table> |
| 44 | <tr> |
| 45 | <td colId="state" class="table-icon" sortable></td> |
| 46 | <td colId="id" sortable>App ID </td> |
| 47 | <td colId="version" sortable>Version </td> |
| 48 | <td colId="origin" sortable>Origin </td> |
| 49 | <td colId="desc" col-width="475px">Description </td> |
| 50 | </tr> |
| 51 | </table> |
| 52 | </div> |
Simon Hunt | 35d1888 | 2015-04-02 20:16:26 -0700 | [diff] [blame] | 53 | |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 54 | <div class="table-body"> |
| 55 | <table> |
| 56 | <tr ng-hide="tableData.length" class="no-data ignore-width"> |
| 57 | <td colspan="5"> |
| 58 | No Applications found |
| 59 | </td> |
| 60 | </tr> |
| 61 | |
Bri Prebilic Cole | bfab9c7 | 2015-06-01 14:33:18 -0700 | [diff] [blame] | 62 | <tr ng-repeat="app in tableData track by app.id" |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 63 | ng-click="selectCallback($event, app)" |
Bri Prebilic Cole | bfab9c7 | 2015-06-01 14:33:18 -0700 | [diff] [blame] | 64 | ng-class="{selected: app.id === selId}" |
Bri Prebilic Cole | e568ead | 2015-05-01 09:51:28 -0700 | [diff] [blame] | 65 | ng-repeat-done> |
| 66 | <td class="table-icon"> |
| 67 | <div icon icon-id="{{app._iconid_state}}"></div> |
| 68 | </td> |
| 69 | <td>{{app.id}}</td> |
| 70 | <td>{{app.version}}</td> |
| 71 | <td>{{app.origin}}</td> |
| 72 | <td>{{app.desc}}</td> |
| 73 | </tr> |
| 74 | </table> |
| 75 | </div> |
| 76 | |
| 77 | </div> |
| 78 | |
Thomas Vachuska | 0fa583c | 2015-03-30 23:07:41 -0700 | [diff] [blame] | 79 | </div> |