2017-06-20 11:00:32 +00:00
|
|
|
<rd-header>
|
2017-11-12 19:27:28 +00:00
|
|
|
<rd-header-title title="Registry details"></rd-header-title>
|
2017-06-20 11:00:32 +00:00
|
|
|
<rd-header-content>
|
2017-07-08 08:23:00 +00:00
|
|
|
<a ui-sref="registries">Registries</a> > <a ui-sref="registry({id: registry.Id})">{{ registry.Name }}</a>
|
2017-06-20 11:00:32 +00:00
|
|
|
</rd-header-content>
|
|
|
|
</rd-header>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<rd-widget>
|
|
|
|
<rd-widget-body>
|
|
|
|
<form class="form-horizontal">
|
|
|
|
<!-- name-input -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="registry_name" class="col-sm-3 col-lg-2 control-label text-left">Name</label>
|
|
|
|
<div class="col-sm-9 col-lg-10">
|
|
|
|
<input type="text" class="form-control" id="registry_name" ng-model="registry.Name" placeholder="e.g. my-registry">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- !name-input -->
|
|
|
|
<!-- registry-url-input -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="registry_url" class="col-sm-3 col-lg-2 control-label text-left">
|
|
|
|
Registry URL
|
|
|
|
<portainer-tooltip position="bottom" message="URL or IP address of a Docker registry."></portainer-tooltip>
|
|
|
|
</label>
|
|
|
|
<div class="col-sm-9 col-lg-10">
|
|
|
|
<input type="text" class="form-control" id="registry_url" ng-model="registry.URL" placeholder="e.g. 10.0.0.10:5000 or myregistry.domain.tld">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- !registry-url-input -->
|
|
|
|
<!-- authentication-checkbox -->
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<label for="registry_auth" class="control-label text-left">
|
|
|
|
Authentication
|
|
|
|
<portainer-tooltip position="bottom" message="Enable this option if you need to specify credentials to connect to this registry."></portainer-tooltip>
|
|
|
|
</label>
|
|
|
|
<label class="switch" style="margin-left: 20px;">
|
|
|
|
<input type="checkbox" ng-model="registry.Authentication"><i></i>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- !authentication-checkbox -->
|
|
|
|
<!-- authentication-credentials -->
|
|
|
|
<div ng-if="registry.Authentication">
|
|
|
|
<!-- credentials-user -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="credentials_username" class="col-sm-3 col-lg-2 control-label text-left">Username</label>
|
|
|
|
<div class="col-sm-9 col-lg-10">
|
|
|
|
<input type="text" class="form-control" id="credentials_username" ng-model="registry.Username">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- !credentials-user -->
|
|
|
|
<!-- credentials-password -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="credentials_password" class="col-sm-3 col-lg-2 control-label text-left">Password</label>
|
|
|
|
<div class="col-sm-9 col-lg-10">
|
|
|
|
<input type="password" class="form-control" id="credentials_password" ng-model="registry.Password">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- !credentials-password -->
|
|
|
|
</div>
|
|
|
|
<!-- !authentication-credentials -->
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12">
|
2017-11-12 19:27:28 +00:00
|
|
|
<button type="button" class="btn btn-primary btn-sm" ng-disabled="state.deploymentInProgress || !registry.Name || !registry.URL || (registry.Authentication && (!registry.Username || !registry.Password))" ng-click="updateRegistry()" button-spinner="state.deploymentInProgress">
|
|
|
|
<span ng-hide="state.deploymentInProgress">Update registry</span>
|
|
|
|
<span ng-show="state.deploymentInProgress">Updating registry...</span>
|
|
|
|
</button>
|
2017-06-20 11:00:32 +00:00
|
|
|
<a type="button" class="btn btn-default btn-sm" ui-sref="registries">Cancel</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
|
|
|
</div>
|