blob: e9f0e1caa75369eec49968cef7f2b04bba642065 [file] [log] [blame]
Michael Davis6dc5f182017-06-26 13:07:27 -05001<div class="inventory-overview">
2 <div class="row column no-padding">
3 <h1>Hardware status</h1>
4 <div class="page-header">
Michael Daviseed24532017-07-20 15:19:30 -05005 <h2 class="inline h4">All hardware in the system</h2>
Iftekharul Islamee27d752017-07-05 15:54:31 -05006 <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 Davis6dc5f182017-06-26 13:07:27 -05008 </div>
9 </div>
10 <section class="row column">
11 <!-- search -->
Michael Daviseed24532017-07-20 15:19:30 -050012 <p class="content-label" aria-label="hardware filter">Filter hardware components</p>
Michael Davis6dc5f182017-06-26 13:07:27 -050013 <div class="content__search">
14 <label for="content__search-input">Search</label> <input id="content__search-input" type="text"
Michael Daviseed24532017-07-20 15:19:30 -050015 ng-model="customSearch" ng-keydown="doSearchOnEnter($event)"/>
Michael Davis8b527992017-07-31 18:02:09 -050016 <div class="search-submit__wrapper">
17 <button class="clear-input" ng-click="customSearch = ''">&#10005;</button>
18 <input id="content__search-submit" type="submit" class="btn btn-primary content__search-submit" value="Filter" ng-click="doSearchOnClick()"/>
19 </div>
Michael Davis6dc5f182017-06-26 13:07:27 -050020 </div>
21
22 </section>
23 <!-- end search -->
24 <section id="inventory-categories" class="row column">
25 <div class="row column header-row">
26 <div class="column large-12 header__actions-bar">
27 <div class="inline inventory__heading inventory__device-col">Hardware</div>
28 <div class="inline inventory__heading inventory__function-col">&nbsp;</div>
Iftekharul Islamee27d752017-07-05 15:54:31 -050029 <div class="inline inventory__heading inventory__assoc-event"><!--Associated events--></div>
Michael Davis6dc5f182017-06-26 13:07:27 -050030 </div>
31 </div>
Iftekharul Islamee27d752017-07-05 15:54:31 -050032 <div ng-repeat="inventory in hardwares|filter:filterBySearchTerms" class="inventory__group" ng-class="{'active': inventory.expanded}" ng-click="inventory.expanded = ! inventory.expanded">
33 <p class="inline inventory__device-col">{{inventory.title}}</p>
Michael Davis6dc5f182017-06-26 13:07:27 -050034 <p class="inline inventory__function-col"></p>
Iftekharul Islamee27d752017-07-05 15:54:31 -050035 <p class="inline inventory__assoc-event"><!--<a href="#/server-health/event-log">View 3 events</a>--></p>
36 <button class="accord-trigger float-right" ng-class="{'active': inventory.expanded}"></button>
Michael Daviseed24532017-07-20 15:19:30 -050037 <div class="row inventory__metadata" ng-class="{'active': inventory.expanded}" ng-click="$event.stopPropagation()">
Michael Davis6dc5f182017-06-26 13:07:27 -050038 <div class="column large-9 no-padding">
Iftekharul Islamee27d752017-07-05 15:54:31 -050039 <div ng-repeat="item in inventory.items" class="inline inventory__metadata-block">
40 <p class="content-label">{{item.key}}</p>
41 <p class="courier-bold">{{item.value}}</p>
Michael Davis6dc5f182017-06-26 13:07:27 -050042 </div>
43 </div>
Iftekharul Islamee27d752017-07-05 15:54:31 -050044 <div class="column large-3 no-padding" ng-show="inventory.sub_components.length">
Michael Davis6dc5f182017-06-26 13:07:27 -050045 <div class="inventory__metadata-scroll show-scroll"> <!-- If content overflows; add 'show-scroll' class via JS to force visible scrollbar in webkit browsers-->
Iftekharul Islamee27d752017-07-05 15:54:31 -050046 <div ng-repeat="sub_component in inventory.sub_components" class="inline inventory__metadata-block">
Michael Daviseed24532017-07-20 15:19:30 -050047 <p class="courier-bold">{{sub_component.title}}<span class="icon icon__warning" ng-if="sub_component.Present"></span></p>
Michael Davis6dc5f182017-06-26 13:07:27 -050048 </div>
49 </div>
50 </div>
51 </div>
52 </div>
Michael Davis6dc5f182017-06-26 13:07:27 -050053 </section>
Michael Davis994a93b2017-04-18 10:01:04 -050054</div>