2018-08-16 09:31:00 +00:00
|
|
|
<div>
|
2018-09-15 01:53:35 +00:00
|
|
|
<table class="table table-bordered table-condensed">
|
2018-08-16 09:31:00 +00:00
|
|
|
<tr>
|
|
|
|
<td class="col-md-3">
|
|
|
|
<span>Name</span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<select class="form-control" ng-model="$ctrl.state.editModel.name">
|
|
|
|
<option value="no">None</option>
|
|
|
|
<option value="on-failure">On Failure</option>
|
|
|
|
<option value="always">Always</option>
|
|
|
|
<option value="unless-stopped">Unless Stopped</option>
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
<td class="col-md-2">
|
2018-09-15 01:53:35 +00:00
|
|
|
<button class="btn btn-sm btn-primary" ng-click="$ctrl.save()">Update</button>
|
2018-08-16 09:31:00 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-if="$ctrl.state.editModel.name === 'on-failure'">
|
|
|
|
<td class="col-md-3">Maximum Retry Count</td>
|
2018-09-15 01:53:35 +00:00
|
|
|
<td colspan="2">
|
2018-08-16 09:31:00 +00:00
|
|
|
<input type="number" class="form-control" ng-model="$ctrl.state.editModel.maximumRetryCount" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2018-09-15 01:53:35 +00:00
|
|
|
</div>
|