1d7ed11462
* document apis with swagger * feat(api): introduce swagger * feat(api): anottate api * chore(api): tag endpoints * chore(api): remove tags * chore(api): add docs for oauth auth * chore(api): document create endpoint api * chore(api): document endpoint inspect and list * chore(api): document endpoint update and snapshots * docs(endpointgroups): document groups api * docs(auth): document auth api * chore(build): introduce a yarn script to build api docs * docs(api): document auth * docs(customtemplates): document customtemplates api * docs(tags): document api * docs(api): document the use of token * docs(dockerhub): document dockerhub api * docs(edgegroups): document edgegroups api * docs(edgejobs): document api * docs(edgestacks): doc api * docs(http/upload): add security * docs(api): document edge templates * docs(edge): document edge jobs * docs(endpointgroups): change description * docs(endpoints): document missing apis * docs(motd): doc api * docs(registries): doc api * docs(resourcecontrol): api doc * docs(role): add swagger docs * docs(settings): add swagger docs * docs(api/status): add swagger docs * docs(api/teammembership): add swagger docs * docs(api/teams): add swagger docs * docs(api/templates): add swagger docs * docs(api/users): add swagger docs * docs(api/webhooks): add swagger docs * docs(api/webscokets): add swagger docs * docs(api/stacks): swagger * docs(api): fix missing apis * docs(swagger): regen * chore(build): remove docs from build * docs(api): update tags * docs(api): document tags * docs(api): add description * docs(api): rename jwt token * docs(api): add info about types * docs(api): document types * docs(api): update request types annotation * docs(api): doc registry and resource control * chore(docs): add snippet * docs(api): add description to role * docs(api): add types for settings * docs(status): add types * style(swagger): remove documented code * docs(http/upload): update docs with types * docs(http/tags): add types * docs(api/custom_templates): add types * docs(api/teammembership): add types * docs(http/teams): add types * docs(http/stacks): add types * docs(edge): add types to edgestack * docs(http/teammembership): remove double returns * docs(api/user): add types * docs(http): fixes to make file built * chore(snippets): add scope to swagger snippet * chore(deps): install swag * chore(swagger): remove handler * docs(api): add description * docs(api): ignore docs folder * docs(api): add contributing guidelines * docs(api): cleanup handler * chore(deps): require swaggo * fix(auth): fix typo * fix(docs): make http ids pascal case * feat(edge): add ids to http handlers * fix(docs): add ids * fix(docs): show correct api version * chore(deps): remove swaggo dependency * chore(docs): add install script for swag * merge examples * go.mod update * merge validate rules * remove empty example tag * swagger anotation format * swagger annotation update * clean up go.mod * update docs prebuild script * Update porImageRegistry.html * Update yamlInspector.html * Update porImageRegistry.html * Update package.json * wording change Co-authored-by: Chaim Lev-Ari <chiptus@users.noreply.github.com>
84 lines
3.4 KiB
HTML
84 lines
3.4 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"
|
|
ng-change="$ctrl.onImageChange()"
|
|
required
|
|
/>
|
|
<span ng-if="$ctrl.displayedRegistryURL() === 'docker.io'" class="input-group-btn">
|
|
<a href="https://hub.docker.com/search?type=image&q={{ $ctrl.model.Image | trimshasum | trimversiontag }}"
|
|
class="btn btn-default"
|
|
title="Search image on Docker Hub"
|
|
target="_blank">
|
|
<i class="fab fa-docker"></i> Search
|
|
</a>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- ! use registry -->
|
|
<!-- don't use registry -->
|
|
<div ng-if="!$ctrl.model.UseRegistry">
|
|
<div class="form-group">
|
|
<span class="small">
|
|
<p class="text-muted" style="margin-left: 15px;">
|
|
<i class="fa fa-exclamation-circle blue-icon" aria-hidden="true" style="margin-right: 2px;"></i>
|
|
When using advanced mode, image and repository <b>must be</b> publicly available.
|
|
</p>
|
|
</span>
|
|
<label for="image_name" ng-class="$ctrl.labelClass" class="control-label text-left">Image </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>
|