Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 1 | <div class="inventory-overview"> |
| 2 | <div class="row column no-padding"> |
| 3 | <h1>Hardware status</h1> |
| 4 | <div class="page-header"> |
Michael Davis | eed2453 | 2017-07-20 15:19:30 -0500 | [diff] [blame^] | 5 | <h2 class="inline h4">All hardware in the system</h2> |
Iftekharul Islam | ee27d75 | 2017-07-05 15:54:31 -0500 | [diff] [blame] | 6 | <a ng-href="data:text/json;charset=utf-8,{{originalData}}" class="inline btn-export float-right" download="export_inventory.json" ng-show="hardwares.length">Export</a> |
| 7 | |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 8 | </div> |
| 9 | </div> |
| 10 | <section class="row column"> |
| 11 | <!-- search --> |
Michael Davis | eed2453 | 2017-07-20 15:19:30 -0500 | [diff] [blame^] | 12 | <p class="content-label" aria-label="hardware filter">Filter hardware components</p> |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 13 | <div class="content__search"> |
| 14 | <label for="content__search-input">Search</label> <input id="content__search-input" type="text" |
Michael Davis | eed2453 | 2017-07-20 15:19:30 -0500 | [diff] [blame^] | 15 | ng-model="customSearch" ng-keydown="doSearchOnEnter($event)"/> |
Iftekharul Islam | ee27d75 | 2017-07-05 15:54:31 -0500 | [diff] [blame] | 16 | <input id="content__search-submit" type="submit" class="btn btn-primary" value="Filter" ng-click="doSearchOnClick()"/> |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 17 | </div> |
| 18 | |
| 19 | </section> |
| 20 | <!-- end search --> |
| 21 | <section id="inventory-categories" class="row column"> |
| 22 | <div class="row column header-row"> |
| 23 | <div class="column large-12 header__actions-bar"> |
| 24 | <div class="inline inventory__heading inventory__device-col">Hardware</div> |
| 25 | <div class="inline inventory__heading inventory__function-col"> </div> |
Iftekharul Islam | ee27d75 | 2017-07-05 15:54:31 -0500 | [diff] [blame] | 26 | <div class="inline inventory__heading inventory__assoc-event"><!--Associated events--></div> |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 27 | </div> |
| 28 | </div> |
Iftekharul Islam | ee27d75 | 2017-07-05 15:54:31 -0500 | [diff] [blame] | 29 | <div ng-repeat="inventory in hardwares|filter:filterBySearchTerms" class="inventory__group" ng-class="{'active': inventory.expanded}" ng-click="inventory.expanded = ! inventory.expanded"> |
| 30 | <p class="inline inventory__device-col">{{inventory.title}}</p> |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 31 | <p class="inline inventory__function-col"></p> |
Iftekharul Islam | ee27d75 | 2017-07-05 15:54:31 -0500 | [diff] [blame] | 32 | <p class="inline inventory__assoc-event"><!--<a href="#/server-health/event-log">View 3 events</a>--></p> |
| 33 | <button class="accord-trigger float-right" ng-class="{'active': inventory.expanded}"></button> |
Michael Davis | eed2453 | 2017-07-20 15:19:30 -0500 | [diff] [blame^] | 34 | <div class="row inventory__metadata" ng-class="{'active': inventory.expanded}" ng-click="$event.stopPropagation()"> |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 35 | <div class="column large-9 no-padding"> |
Iftekharul Islam | ee27d75 | 2017-07-05 15:54:31 -0500 | [diff] [blame] | 36 | <div ng-repeat="item in inventory.items" class="inline inventory__metadata-block"> |
| 37 | <p class="content-label">{{item.key}}</p> |
| 38 | <p class="courier-bold">{{item.value}}</p> |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 39 | </div> |
| 40 | </div> |
Iftekharul Islam | ee27d75 | 2017-07-05 15:54:31 -0500 | [diff] [blame] | 41 | <div class="column large-3 no-padding" ng-show="inventory.sub_components.length"> |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 42 | <div class="inventory__metadata-scroll show-scroll"> <!-- If content overflows; add 'show-scroll' class via JS to force visible scrollbar in webkit browsers--> |
| 43 | <div class="content-label">Subcomponents</div> |
Iftekharul Islam | ee27d75 | 2017-07-05 15:54:31 -0500 | [diff] [blame] | 44 | <div ng-repeat="sub_component in inventory.sub_components" class="inline inventory__metadata-block"> |
Michael Davis | eed2453 | 2017-07-20 15:19:30 -0500 | [diff] [blame^] | 45 | <p class="courier-bold">{{sub_component.title}}<span class="icon icon__warning" ng-if="sub_component.Present"></span></p> |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 46 | </div> |
| 47 | </div> |
| 48 | </div> |
| 49 | </div> |
| 50 | </div> |
Michael Davis | 6dc5f18 | 2017-06-26 13:07:27 -0500 | [diff] [blame] | 51 | </section> |
Michael Davis | 994a93b | 2017-04-18 10:01:04 -0500 | [diff] [blame] | 52 | </div> |