2015-07-19 21:31:10 -04:00
|
|
|
<ul class="breadcrumb">
|
2015-08-03 05:00:22 -04:00
|
|
|
<li><a href="/devices"><i class="icon-briefcase"></i> Devices</a><span class="divider"></span><li>
|
|
|
|
<li class="active">Edit Device<li>
|
2015-07-19 21:31:10 -04:00
|
|
|
</ul>
|
|
|
|
<header>
|
2015-08-03 05:00:22 -04:00
|
|
|
<h1>Edit Device</h1>
|
2015-07-19 21:31:10 -04:00
|
|
|
</header>
|
|
|
|
|
2015-08-05 06:03:02 -07:00
|
|
|
<div ng-hide="loading" class="tabbable">
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active form" title="Details">
|
|
|
|
<form name="form" class="form">
|
|
|
|
<div class="form-section">
|
|
|
|
<div class="section-label">Device Type</div>
|
|
|
|
<div class="section-container">
|
|
|
|
<div class="form-editor">
|
|
|
|
<div class="control-group">
|
2015-10-14 02:51:05 -07:00
|
|
|
<label class="control-label">Device</label>
|
2015-08-05 06:03:02 -07:00
|
|
|
<div class="controls">
|
|
|
|
<input type="hidden" ng-model="deviceTypes.category.picker" ui-select2="deviceTypes.category.opts" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
2015-10-14 02:51:05 -07:00
|
|
|
<label class="control-label">Manufacturer</label>
|
2015-08-05 06:03:02 -07:00
|
|
|
<div class="controls">
|
|
|
|
<input type="hidden" ng-model="deviceTypes.make.picker" ui-select2="deviceTypes.make.opts" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">Model</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="hidden" ng-model="deviceTypes.model.picker" ui-select2="deviceTypes.model.opts" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label"></label>
|
|
|
|
<div class="controls">
|
|
|
|
<button ng-click="deviceTypes.reset()" type="button" class="btn">Reset</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-03 05:00:22 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-05 06:03:02 -07:00
|
|
|
<div class="form-section">
|
2015-08-10 01:42:48 -04:00
|
|
|
<div class="section-label">Control #</div>
|
2015-08-05 06:03:02 -07:00
|
|
|
<div class="section-container">
|
|
|
|
<div class="form-editor">
|
|
|
|
<div
|
|
|
|
ng-class="{ 'error': form.identifier.$invalid && !form.identifier.$pristine }"
|
|
|
|
class="control-group">
|
|
|
|
|
2015-08-10 01:42:48 -04:00
|
|
|
<label class="control-label">Control #</label>
|
2015-08-05 06:03:02 -07:00
|
|
|
<div class="controls">
|
|
|
|
<input
|
|
|
|
ng-model="model.biomedId"
|
|
|
|
required
|
|
|
|
ab-device-unique="{field: 'biomedId', key: model._id}"
|
|
|
|
type="text"
|
|
|
|
name="identifier"
|
|
|
|
class="input-xlarge">
|
|
|
|
<span ng-show="form.identifier.$error.unique" class="help-inline">Identifier must be unique</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-03 05:00:22 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-05 06:03:02 -07:00
|
|
|
<div class="form-section">
|
|
|
|
<div class="section-label">Device Details</div>
|
|
|
|
<div class="section-container">
|
|
|
|
<div class="form-editor">
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">Serial Number</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input ng-model="model.serialNumber" type="text" class="input-large">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">Purchase Date</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input ng-model="model.purchaseDate" datepicker type="text" class="input-small">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">Warranty Expiration</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input ng-model="model.warrantyExpiration" datepicker type="text" class="input-small">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">Location</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input ng-model="model.location" type="text" class="input-large">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
2015-08-03 05:00:22 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-05 06:03:02 -07:00
|
|
|
|
|
|
|
<div class="form-section">
|
|
|
|
<div class="section-label">Frequency</div>
|
|
|
|
<div class="section-container">
|
|
|
|
<div class="form-editor">
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">Frequency</label>
|
|
|
|
<div class="controls">
|
|
|
|
<select ng-model="model.frequencyType" class="input-xlarge">
|
|
|
|
<option value="">None</option>
|
|
|
|
<option value="Anesthesia">Anesthesia</option>
|
|
|
|
<option value="Annual">Annual</option>
|
|
|
|
<option value="DLLR">DLLR</option>
|
|
|
|
<option value="ERT">ERT</option>
|
|
|
|
<option value="Ice Maker">Ice Maker</option>
|
|
|
|
<option value="Imaging">Imaging</option>
|
|
|
|
<option value="Medical Device">Medical Device</option>
|
|
|
|
<option value="Medical Gas Systems">Medical Gas Systems</option>
|
|
|
|
<option value="N2O Trace Gas">N2O Trace Gas</option>
|
|
|
|
<option value="Quarterly">Quarterly</option>
|
|
|
|
<option value="RAE">RAE</option>
|
|
|
|
<option value="Semi">Semi</option>
|
|
|
|
<option value="Sterilizer - Cleaning">Sterilizer - Cleaning</option>
|
|
|
|
<option value="Sterilizer - F">Sterilizer - F</option>
|
|
|
|
<option value="Sterilizer - TT">Sterilizer - TT</option>
|
|
|
|
<option value="Vaporizer">Vaporizer</option>
|
|
|
|
<option value="Waste Management System">Waste Management System</option>
|
|
|
|
<option value="legacy" disabled>legacy</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group" ng-show="model.frequencyType">
|
|
|
|
<label class="control-label">Schedule</label>
|
|
|
|
<div class="controls">
|
|
|
|
<table class="table frequency" style="margin-right: 30px">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>JAN</th>
|
|
|
|
<th>FEB</th>
|
|
|
|
<th>MAR</th>
|
|
|
|
<th>APR</th>
|
|
|
|
<th>MAY</th>
|
|
|
|
<th>JUN</th>
|
|
|
|
<th>JUL</th>
|
|
|
|
<th>AUG</th>
|
|
|
|
<th>SEP</th>
|
|
|
|
<th>OCT</th>
|
|
|
|
<th>NOV</th>
|
|
|
|
<th>DEC</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td ng-repeat="i in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]">
|
|
|
|
<a ng-click="toggleFrequency(i)" class="{{ model.frequencySchedule[i] }}">
|
|
|
|
<i ng-class="{ 'icon-ok': model.frequencySchedule[i], 'icon-remove': !model.frequencySchedule[i] }"></i>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-03 05:00:22 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-05 06:03:02 -07:00
|
|
|
|
|
|
|
<div class="form-section">
|
|
|
|
<div class="section-label"> </div>
|
|
|
|
<div class="section-container">
|
|
|
|
<button ng-click="update()" ng-disabled="form.$invalid || !model.deviceType" type="button" class="btn btn-primary">Save</button>
|
2015-10-14 02:51:05 -07:00
|
|
|
<button ng-click="destroy()" ng-show="accountHasPermission('system.admin')" type="button" class="btn btn-danger">Remove</button>
|
2015-08-03 05:00:22 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-05 06:03:02 -07:00
|
|
|
</form>
|
2015-08-03 05:00:22 -04:00
|
|
|
</div>
|
2015-08-05 06:03:02 -07:00
|
|
|
<div class="tab-pane form" title="Test Runs">
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span12">
|
|
|
|
<a class="btn" href="/testRuns/add?deviceId={{model._id}}" ng-show="accountHasPermission('system.edit')">New Test Run</a>
|
|
|
|
|
|
|
|
<table class="biomed-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 7%">Run</th>
|
|
|
|
<th style="width: 6%">Result</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-hide="testRuns.length"><td colspan="11" class="table-message">There is no information to display.</td></tr>
|
|
|
|
<tr ng-repeat="testRun in testRuns">
|
|
|
|
<td><a href="/testRuns/{{testRun._id}}">{{testRun.date | date}}</a></td>
|
|
|
|
<td>
|
|
|
|
<span ng-if="testRun.result">Passed</span>
|
|
|
|
<span ng-if="!testRun.result">Failed</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-08-03 05:00:22 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-05 06:03:02 -07:00
|
|
|
</div>
|