Michael Davis | 428375e | 2017-08-01 15:48:34 -0500 | [diff] [blame] | 1 | <loader loading="loading"></loader> |
beccabroek | 129779d | 2019-02-14 15:43:12 -0600 | [diff] [blame] | 2 | <div class="inventory__container"> |
| 3 | <div class="row column"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 4 | <h1>Hardware status</h1> |
beccabroek | 129779d | 2019-02-14 15:43:12 -0600 | [diff] [blame] | 5 | </div> |
| 6 | <div class="row column"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 7 | <div class="page-header"> |
beccabroek | edf1ab4 | 2019-02-15 16:26:38 -0600 | [diff] [blame] | 8 | <h2 class="inline">All hardware in the system</h2> |
Yoshie Muranaka | c86ce3c | 2019-06-05 12:30:30 -0500 | [diff] [blame] | 9 | <a ng-href="data:text/json;charset=utf-8,{{originalData}}" class="btn btn-tertiary float-right" download="export_inventory.json" ng-show="hardwares.length"><icon file="icon-export.svg"></icon>Export</a> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 10 | </div> |
| 11 | </div> |
beccabroek | 129779d | 2019-02-14 15:43:12 -0600 | [diff] [blame] | 12 | <div class="row column"> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 13 | <p class="content-label" aria-label="hardware filter">Filter hardware components</p> |
| 14 | <div class="content__search"> |
beccabroek | 129779d | 2019-02-14 15:43:12 -0600 | [diff] [blame] | 15 | <label for="content__search-input">Search</label> |
| 16 | <input id="content__search-input" type="text" ng-model="customSearch" ng-keydown="doSearchOnEnter($event)"/> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 17 | <div class="search-submit__wrapper"> |
Dixsie Wolmers | db1e89e | 2019-09-09 13:21:12 -0500 | [diff] [blame] | 18 | <button class="btn" type="button" aria-label="clear filter" ng-click="clear()"> |
| 19 | <icon file="icon-close.svg" aria-hidden="true"></icon> |
| 20 | </button> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 21 | <input id="content__search-submit" type="submit" class="btn btn-primary content__search-submit" value="Filter" ng-click="doSearchOnClick()"/> |
| 22 | </div> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 23 | </div> |
beccabroek | 129779d | 2019-02-14 15:43:12 -0600 | [diff] [blame] | 24 | </div> |
| 25 | <div class="row column inventory__table"> |
| 26 | <h3 class="small-12 hardware__header"> |
| 27 | Hardware |
| 28 | </h3> |
| 29 | <div class="small-12 harware__details" ng-repeat="inventory in hardwares|filter:filterBySearchTerms"> |
| 30 | <div class="hardware__title row column" ng-class="{'expanded': inventory.expanded}" ng-click="inventory.expanded = ! inventory.expanded"> |
| 31 | <h4>{{inventory.title}}</h4> |
Derick Montague | 1ffa209 | 2019-04-01 17:57:27 -0500 | [diff] [blame] | 32 | <button class="accord-trigger float-right" ng-class="{'active': inventory.expanded}" aria-expanded="{{inventory.expanded ? 'true' : 'false'}}" aria-expanded="{{inventory.expanded ? 'true' : 'false'}}" aria-label="{{inventory.expanded ? 'collapse' : 'expand'}}"></button> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 33 | </div> |
beccabroek | 129779d | 2019-02-14 15:43:12 -0600 | [diff] [blame] | 34 | <div class="hardware__items" ng-hide="!inventory.expanded" ng-class="{'expanded': inventory.expanded}"> |
| 35 | <div class="row column"> |
| 36 | <div class="items small-12 show-scroll" ng-class="{'large-9': inventory.sub_components.length}"> |
| 37 | <div class="row column"> |
| 38 | <div ng-repeat="item in inventory.items" class="small-4"> |
| 39 | <h5 class="content-label">{{item.key}}</h5> |
| 40 | <p class="courier-bold">{{item.value}}</p> |
| 41 | </div> |
| 42 | </div> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 43 | </div> |
beccabroek | 129779d | 2019-02-14 15:43:12 -0600 | [diff] [blame] | 44 | <div class="subcomponents show-scroll small-12 large-3" ng-show="inventory.sub_components.length"> |
| 45 | <div class="row column"> |
| 46 | <h5 class="small-12 content-label">Subcomponents</h5> |
| 47 | <p ng-repeat="sub_component in inventory.sub_components" class="large-6 small-3 courier-bold" ng-if="sub_component.Present"> |
Yoshie Muranaka | 4b366b5 | 2019-09-24 08:32:42 -0700 | [diff] [blame] | 48 | <icon file="icon-warning" aria-hidden="true" ng-if="!sub_component.Functional"></icon> |
beccabroek | 129779d | 2019-02-14 15:43:12 -0600 | [diff] [blame] | 49 | {{sub_component.title}} |
| 50 | </p> |
Gunnar Mills | 5f0b776 | 2018-09-25 14:10:45 -0500 | [diff] [blame] | 51 | </div> |
| 52 | </div> |
| 53 | </div> |
| 54 | </div> |
| 55 | </div> |
beccabroek | 129779d | 2019-02-14 15:43:12 -0600 | [diff] [blame] | 56 | </div> |
Gunnar Mills | fbce2ea | 2018-03-08 13:19:15 -0600 | [diff] [blame] | 57 | </div> |