From 95a4f83466e4eac1f885ed5baea93e9f0ee9ed68 Mon Sep 17 00:00:00 2001 From: Rex Wang <109048808+RexWangPT@users.noreply.github.com> Date: Sun, 30 Oct 2022 14:56:23 +0800 Subject: [PATCH] fix(docker): docker template UI bug fix [EE-4034] (#7912) * EE-4034 fix(docker): docker template UI bug fix * EE-4034 fix(docker): fix ui --- .../stackFromTemplateForm.html | 33 +++++++----- .../template-list/templateList.html | 50 ++++++++++--------- app/portainer/views/templates/templates.html | 24 +++++++-- 3 files changed, 67 insertions(+), 40 deletions(-) diff --git a/app/portainer/components/forms/stack-from-template-form/stackFromTemplateForm.html b/app/portainer/components/forms/stack-from-template-form/stackFromTemplateForm.html index a45f42525..42bd81a06 100644 --- a/app/portainer/components/forms/stack-from-template-form/stackFromTemplateForm.html +++ b/app/portainer/components/forms/stack-from-template-form/stackFromTemplateForm.html @@ -17,19 +17,20 @@
-
- -
-
-
-

- - This field must consist of lower case alphanumeric characters, '_' or '-' (e.g. 'my-name', or 'abc-123'). -

-

This field is required.

+
+
+
+

+ + This field must consist of lower case alphanumeric characters, '_' or '-' (e.g. 'my-name', or 'abc-123'). +

+

This field is required.

+
+
+
@@ -66,8 +67,16 @@ Deployment in progress... -
{{ $ctrl.state.formValidationError }}
-
This template type cannot be deployed on this environment.
+
+
+

{{ $ctrl.state.formValidationError }}

+
+
+
+
+

This template type cannot be deployed on this environment.

+
+
diff --git a/app/portainer/components/template-list/templateList.html b/app/portainer/components/template-list/templateList.html index fd65eae0e..c4d4b30de 100644 --- a/app/portainer/components/template-list/templateList.html +++ b/app/portainer/components/template-list/templateList.html @@ -1,15 +1,33 @@
- +
+
+
+ +
+ {{ $ctrl.titleText }} +
+ +
+ +
+
-
-
- -
-
-
-
- -
-
-
Add map additional port
+
+ + Add map additional port + +
@@ -171,7 +175,11 @@ -
Add map additional volume
+
+ + Add map additional volume + +
@@ -191,7 +199,11 @@ -
Add additional entry
+
+ + Add additional entry + +
@@ -216,7 +228,11 @@ -
Add label
+
+ + Add label + +