From dff84c519c789bc3778377e67a34abf7d23fd3f5 Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Sun, 10 Oct 2021 20:54:34 +0100 Subject: [PATCH] Update new node page --- .../hudson/model/ComputerSet/new.jelly | 2 +- .../jenkins/model/Jenkins/newView.jelly | 7 +--- core/src/main/resources/lib/form/entry.jelly | 5 ++- .../src/main/resources/lib/form/textbox.jelly | 4 ++ .../lib/hudson/newFromList/form.jelly | 41 ++++++++++--------- war/src/main/less/base/yui-compatibility.less | 5 --- war/src/main/less/modules/form.less | 28 +++++++++++++ 7 files changed, 59 insertions(+), 33 deletions(-) diff --git a/core/src/main/resources/hudson/model/ComputerSet/new.jelly b/core/src/main/resources/hudson/model/ComputerSet/new.jelly index 85879e6d9f82..f8c7aaa6bea8 100644 --- a/core/src/main/resources/hudson/model/ComputerSet/new.jelly +++ b/core/src/main/resources/hudson/model/ComputerSet/new.jelly @@ -36,7 +36,7 @@ THE SOFTWARE. - diff --git a/core/src/main/resources/jenkins/model/Jenkins/newView.jelly b/core/src/main/resources/jenkins/model/Jenkins/newView.jelly index 173b187f2177..78fff8aee57d 100644 --- a/core/src/main/resources/jenkins/model/Jenkins/newView.jelly +++ b/core/src/main/resources/jenkins/model/Jenkins/newView.jelly @@ -30,13 +30,8 @@ THE SOFTWARE. -
-
-

${%New View}

-
-
-
diff --git a/core/src/main/resources/lib/form/entry.jelly b/core/src/main/resources/lib/form/entry.jelly index e67f27c0b5cd..c3248dc782bb 100644 --- a/core/src/main/resources/lib/form/entry.jelly +++ b/core/src/main/resources/lib/form/entry.jelly @@ -51,6 +51,9 @@ THE SOFTWARE. This content is HTML (unless the boolean variable escapeEntryTitleAndDescription is set). Use h.escape if necessary. + + Classes to apply to the form + URL to the HTML page. When this attribute is specified, the entry gets a (?) icon on the right, and if the user clicks it, the contents of the @@ -69,7 +72,7 @@ THE SOFTWARE. -
+
diff --git a/core/src/main/resources/lib/form/textbox.jelly b/core/src/main/resources/lib/form/textbox.jelly index 39d866672ea2..2bd69ae2cdf0 100644 --- a/core/src/main/resources/lib/form/textbox.jelly +++ b/core/src/main/resources/lib/form/textbox.jelly @@ -55,6 +55,9 @@ THE SOFTWARE. Additional CSS class(es) to add (such as client-side validation clazz="required", "number" or "positive-number"; these may be combined, as clazz="required number"). + + Placeholder text for the text box + Override the default error message when client-side validation fails, as with clazz="required", etc. @@ -92,6 +95,7 @@ THE SOFTWARE. name="${name}" value="${value}" type="text" + placeholder="${placeholder}" ATTRIBUTES="${attrs}" EXCEPT="field clazz" /> diff --git a/core/src/main/resources/lib/hudson/newFromList/form.jelly b/core/src/main/resources/lib/hudson/newFromList/form.jelly index 6e9d6b1b8e92..90e0e0ecf21a 100644 --- a/core/src/main/resources/lib/hudson/newFromList/form.jelly +++ b/core/src/main/resources/lib/hudson/newFromList/form.jelly @@ -34,6 +34,9 @@ THE SOFTWARE. Collection of Descriptors to be rendered. + + Title for the form + Caption of the text box to receive the name of the newly created item. Something like "Job name" @@ -51,6 +54,12 @@ THE SOFTWARE. +
+
+

${attrs.title}

+
+
+ ${%View type} +
@@ -74,28 +84,19 @@ THE SOFTWARE.
- -
- - - - - - - ${%Copy from} - - - - - - + +
+ + +
+ - -
-
-
-
+ + + + +