2015-11-30 14:08:17 -08:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="control-label col-sm-2">
|
|
|
|
Replaces
|
|
|
|
</label>
|
|
|
|
<div class="col-sm-10">
|
|
|
|
<div class="input-group">
|
2016-12-26 11:09:50 -08:00
|
|
|
<input type="text" ng-model="certificate.selectedReplaces" placeholder="Certificate123..."
|
2016-05-09 17:17:00 -07:00
|
|
|
uib-typeahead="certificate.name for certificate in certificateService.findCertificatesByName($viewValue)" typeahead-loading="loadingCertificates"
|
2016-12-26 11:09:50 -08:00
|
|
|
class="form-control input-md" typeahead-on-select="certificate.attachReplaces($item)"
|
2016-05-09 17:17:00 -07:00
|
|
|
uib-tooltip="Lemur will mark any certificates being replaced as 'inactive'"
|
|
|
|
uib-tooltip-trigger="focus" uib-tooltip-placement="top" typeahead-wait-ms="500">
|
2015-11-30 14:08:17 -08:00
|
|
|
<span class="input-group-btn">
|
2016-12-26 11:09:50 -08:00
|
|
|
<button ng-model="replaces.show" class="btn btn-md btn-default" uib-btn-checkbox btn-checkbox-true="1" btn-checkbox-false="0">
|
|
|
|
<span class="badge">{{ certificate.replaces.length || 0 }}</span>
|
2015-11-30 14:08:17 -08:00
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<table class="table">
|
2016-12-26 11:09:50 -08:00
|
|
|
<tr ng-repeat="replaces in certificate.replaces track by $index">
|
|
|
|
<td><a class="btn btn-sm btn-info">{{ replaces.name }}</a></td>
|
|
|
|
<td><span class="text-muted">{{ replaces.description }}</span></td>
|
2015-11-30 14:08:17 -08:00
|
|
|
<td>
|
2016-12-26 11:09:50 -08:00
|
|
|
<button type="button" ng-click="certificate.removeReplaces($index)" class="btn btn-danger btn-sm pull-right">Remove</button>
|
2015-11-30 14:08:17 -08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|