mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
* feat(registry): registry or direct url selector
* feat(app): push pull container creation
* feat(app): push pull container duplicate
* feat(app): push pull container details recreate
* feat(app): push pull container details commit
* feat(app): push pull images
* feat(app): push pull image tag
* feat(app): push pull image push
* feat(app): push pull image pull
* feat(app): push pull service creation
* feat(app): push pull templates create container
* feat(app): push pull templates create stacks
* feat(app): push pull template edit
* feat(app): push pull service details update
* fix(app): refactor registry selector + registry auto select
* feat(app): remove autocomplete on registry selector
* style(image-registry): reword simple/advanced mode
* Revert "feat(app): remove autocomplete on registry selector"
This reverts commit 97ec2ddd62
.
* refactor(registry-selector): reverse registry and image fields
* feat(app): autocomplete on registry selector
* feat(registry-selector): change gitlab registry autocomplete
* feat(registry-selector): autocomplete for dockerhub
* feat(registry-selector): gitlab url based on locked value instead of name
* fix(registry-selector): gitlab registries URL are not modified anymore
* fix(registry-selector): change gitlab image autofill on duplicate
* fix(registry-selector): gitlab registries now only suggest their own images and not all from gitlab
* fix(registry-selector): psuh pull issues with gitlab registries
* fix(registry-selector): dockerhub registry selection on duplicate for dockerhub images
* fix(templates): registry retrieval for template
* feat(images): add autocomplete on image pull panel
* fix(registry-selector): add latest tag when no tag is specified
* fix(registry-selector): latest tag now applied for non gitlab registries
54 lines
2.6 KiB
HTML
54 lines
2.6 KiB
HTML
<!-- use registry -->
|
|
<div ng-if="$ctrl.model.UseRegistry">
|
|
<div class="form-group">
|
|
<label for="image_registry" class="control-label text-left" ng-class="$ctrl.labelClass">
|
|
Registry
|
|
</label>
|
|
<div ng-class="$ctrl.inputClass">
|
|
<select ng-options="registry as registry.Name for registry in $ctrl.availableRegistries track by registry.Name" ng-model="$ctrl.model.Registry" id="image_registry"
|
|
selected-item-id="ctrl.selectedItemId" class="form-control"></select>
|
|
</div>
|
|
<label for="image_name" ng-class="$ctrl.labelClass" class="margin-sm-top control-label text-left">Image</label>
|
|
<div ng-class="$ctrl.inputClass" class="margin-sm-top">
|
|
<div class="input-group">
|
|
<span class="input-group-addon" id="registry-name">{{$ctrl.displayedRegistryURL()}}</span>
|
|
<input type="text" class="form-control" aria-describedby="registry-name" uib-typeahead="image for image in $ctrl.availableImages | filter:$viewValue | limitTo:5"
|
|
ng-model="$ctrl.model.Image" name="image_name" placeholder="e.g. myImage:myTag" required>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- ! use registry -->
|
|
<!-- don't use registry -->
|
|
<div ng-if="!$ctrl.model.UseRegistry">
|
|
<div class="form-group">
|
|
<label for="image_name" ng-class="$ctrl.labelClass" class="control-label text-left">Image
|
|
<portainer-tooltip position="bottom" message="Image and repository should be publicly available."></portainer-tooltip>
|
|
</label>
|
|
<div ng-class="$ctrl.inputClass">
|
|
<input type="text" class="form-control" ng-model="$ctrl.model.Image" name="image_name" placeholder="e.g. registry:port/myImage:myTag" required>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- ! don't use registry -->
|
|
<!-- info message -->
|
|
<div class="form-group" ng-show="$ctrl.form.image_name.$invalid">
|
|
<div class="col-sm-12 small text-warning">
|
|
<div ng-messages="$ctrl.form.image_name.$error">
|
|
<p ng-message="required"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Image name is required. <span ng-if="$ctrl.canPull">Tag must be specified otherwise Portainer will pull all tags associated to the image.</span></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- ! info message -->
|
|
<div class="form-group">
|
|
<div class="col-sm-12">
|
|
<p>
|
|
<a class="small interactive" ng-if="!$ctrl.model.UseRegistry" ng-click="$ctrl.model.UseRegistry = true;">
|
|
<i class="fa fa-database space-right" aria-hidden="true"></i> Simple mode
|
|
</a>
|
|
<a class="small interactive" ng-if="$ctrl.model.UseRegistry" ng-click="$ctrl.model.UseRegistry = false;">
|
|
<i class="fa fa-globe space-right" aria-hidden="true"></i> Advanced mode
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|