|
|
@ -26,10 +26,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<label for="image_registry" class="col-sm-1 control-label text-left">Registry</label>
|
|
|
|
<label for="image_registry" class="col-sm-1 control-label text-left">Registry</label>
|
|
|
|
<div class="col-sm-3">
|
|
|
|
<div class="col-sm-3">
|
|
|
|
<select class="selectpicker form-control" ng-model="formValues.Registry">
|
|
|
|
<input type="text" class="form-control" ng-model="formValues.Registry" id="image_registry" placeholder="leave empty to use DockerHub">
|
|
|
|
<option value="">Docker Hub</option>
|
|
|
|
|
|
|
|
<option ng-repeat="registry in formValues.AvailableRegistries" ng-value="registry.value">{{ registry.name }}</option>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-offset-1 col-sm-11">
|
|
|
|
<div class="col-sm-offset-1 col-sm-11">
|
|
|
|
<div class="checkbox">
|
|
|
|
<div class="checkbox">
|
|
|
@ -110,7 +107,6 @@
|
|
|
|
<li class="clickable"><a data-target="#network" data-toggle="tab">Network</a></li>
|
|
|
|
<li class="clickable"><a data-target="#network" data-toggle="tab">Network</a></li>
|
|
|
|
<li class="clickable"><a data-target="#security" data-toggle="tab">Security/Host</a></li>
|
|
|
|
<li class="clickable"><a data-target="#security" data-toggle="tab">Security/Host</a></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- tab-content -->
|
|
|
|
<!-- tab-content -->
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-content">
|
|
|
|
<!-- tab-command -->
|
|
|
|
<!-- tab-command -->
|
|
|
@ -215,22 +211,28 @@
|
|
|
|
<!-- volumes -->
|
|
|
|
<!-- volumes -->
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="container_volumes" class="col-sm-1 control-label text-left">Volumes</label>
|
|
|
|
<label for="container_volumes" class="col-sm-1 control-label text-left">Volumes</label>
|
|
|
|
<div class="col-sm-11" ng-if="availableVolumes.length !== 0">
|
|
|
|
<div class="col-sm-11">
|
|
|
|
<span class="label label-default clickable" ng-click="addVolume()">
|
|
|
|
<span class="label label-default clickable" ng-click="addVolume()">
|
|
|
|
<i class="fa fa-plus-circle" aria-hidden="true"></i> volume
|
|
|
|
<i class="fa fa-plus-circle" aria-hidden="true"></i> volume
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-11" ng-if="availableVolumes.length === 0" style="margin-top: 5px;">
|
|
|
|
|
|
|
|
<span class="small text-muted">You don't have any persistent volumes. Head over the <a ui-sref="volumes">volumes view</a> to create one.</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- volumes-input-list -->
|
|
|
|
<!-- volumes-input-list -->
|
|
|
|
<div class="col-sm-offset-1 col-sm-11 form-inline" style="margin-top: 10px;">
|
|
|
|
<div class="col-sm-offset-1 col-sm-11 form-inline" style="margin-top: 10px;">
|
|
|
|
<div ng-repeat="volume in formValues.Volumes" style="margin-top: 2px;">
|
|
|
|
<div ng-repeat="volume in formValues.Volumes" style="margin-top: 2px;">
|
|
|
|
|
|
|
|
<div class="input-group col-sm-1 input-group-sm">
|
|
|
|
|
|
|
|
<div class="checkbox">
|
|
|
|
|
|
|
|
<label>
|
|
|
|
|
|
|
|
<input type="checkbox" ng-model="volume.readOnly"> Read-only
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="input-group col-sm-5 input-group-sm">
|
|
|
|
<div class="input-group col-sm-5 input-group-sm">
|
|
|
|
<select class="selectpicker form-control" ng-model="volume.name">
|
|
|
|
<span class="input-group-addon"><input type="checkbox" ng-model="volume.isPath" ng-click="resetVolumePath($index)">Path</span>
|
|
|
|
|
|
|
|
<select class="selectpicker form-control" ng-model="volume.name" ng-if="!volume.isPath">
|
|
|
|
<option selected disabled hidden value="">Select a volume</option>
|
|
|
|
<option selected disabled hidden value="">Select a volume</option>
|
|
|
|
<option ng-repeat="vol in availableVolumes" ng-value="vol.Name">{{ vol.Name|truncate:50}}</option>
|
|
|
|
<option ng-repeat="vol in availableVolumes" ng-value="vol.Name">{{ vol.Name|truncate:30}}</option>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<input ng-if="volume.isPath" type="text" class="form-control" ng-model="volume.name" placeholder="e.g. /path/on/host">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="input-group col-sm-5 input-group-sm">
|
|
|
|
<div class="input-group col-sm-5 input-group-sm">
|
|
|
|
<span class="input-group-addon">container</span>
|
|
|
|
<span class="input-group-addon">container</span>
|
|
|
|