From b4acbfc9e12edb2c2cdd9fc6a85fa0e183b58a23 Mon Sep 17 00:00:00 2001 From: Chao Geng <93526589+chaogeng77977@users.noreply.github.com> Date: Wed, 6 Jul 2022 19:11:59 +0800 Subject: [PATCH] fix(registry): Add input prompt and checker in edit page [EE-2705] (#7106) * EE-2705 restrict registry edit options for different registry type --- .../registry-form-ecr.html | 34 +++--- .../registry-form-quay.html | 32 +++-- .../registry-form-quay/registry-form-quay.js | 8 ++ .../registries/create/createRegistry.html | 2 +- .../create/createRegistryController.js | 2 + .../views/registries/edit/registry.html | 109 ++++++++++++++++-- .../registries/edit/registryController.js | 31 +++-- 7 files changed, 175 insertions(+), 43 deletions(-) diff --git a/app/portainer/components/forms/registry-form-aws-ecr/registry-form-ecr.html b/app/portainer/components/forms/registry-form-aws-ecr/registry-form-ecr.html index c8e05faf5..705a149a1 100644 --- a/app/portainer/components/forms/registry-form-aws-ecr/registry-form-ecr.html +++ b/app/portainer/components/forms/registry-form-aws-ecr/registry-form-ecr.html @@ -97,25 +97,25 @@ - - -
- -
- -
-
-
-
-
-

This field is required.

-

A registry with the same name already exists.

-
-
-
- + +
+ +
+ +
+
+
+
+
+

This field is required.

+

A registry with the same name already exists.

+
+
+
+ +
Actions
diff --git a/app/portainer/components/forms/registry-form-quay/registry-form-quay.html b/app/portainer/components/forms/registry-form-quay/registry-form-quay.html index 1ebd3cf2d..fedc1aae9 100644 --- a/app/portainer/components/forms/registry-form-quay/registry-form-quay.html +++ b/app/portainer/components/forms/registry-form-quay/registry-form-quay.html @@ -1,5 +1,21 @@ -
+
Quay account details
+ +
+ +
+ +
+
+
+
+
+

This field is required.

+

A registry with the same name already exists.

+
+
+
+
@@ -7,9 +23,9 @@
-
+
-
+

This field is required.

@@ -22,9 +38,9 @@
-
+
-
+

This field is required.

@@ -47,9 +63,9 @@
-
+
-
+

This field is required.

@@ -64,7 +80,7 @@
+
+
+
+

This field is required.

+
+
+
-
+
- + +
+
+
+
+
+

This field is required.

+
+
+
+ + +
+
+ +
+ +
+
+
+
+
+

This field is required.

+
+
@@ -60,7 +128,14 @@ {{ $ctrl.registry.Type === $ctrl.RegistryTypes.ECR ? 'AWS Access Key' : 'Username' }}
- + +
+
+
+
+
+

This field is required.

+
@@ -70,7 +145,14 @@ {{ $ctrl.passwordLabel() }}
- + +
+
+
+
+
+

This field is required.

+
@@ -94,6 +176,13 @@
+
+
+
+

This field is required.

+
+
+
@@ -103,12 +192,12 @@
- +
-
+
-
+

This field is required.

@@ -121,7 +210,7 @@