File tree 11 files changed +67
-45
lines changed
org/jenkinsci/plugins/managedscripts
11 files changed +67
-45
lines changed Original file line number Diff line number Diff line change
1
+ <?jelly escape-by-default =' true' ?>
2
+ <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" >
3
+ <st : documentation >
4
+ This adds a wrapper allowing adding an ID to a field or group of fields that can be targeted by JavaScript
5
+ The wrapper will be a `table` tag before 2.264, and a `div` tag after that.
6
+
7
+ </st : documentation >
8
+
9
+ <j : choose >
10
+ <j : when test =" ${divBasedFormLayout}" >
11
+ <div >
12
+ <d : invokeBody />
13
+ </div >
14
+ </j : when >
15
+ <j : otherwise >
16
+ <table >
17
+ <d : invokeBody />
18
+ </table >
19
+ </j : otherwise >
20
+ </j : choose >
21
+
22
+ </j : jelly >
Original file line number Diff line number Diff line change 1
1
<?jelly escape-by-default =' true' ?>
2
- <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" >
2
+ <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" xmlns : ms = " /lib/managed_scripts " >
3
3
4
4
<f : entry title =" ${%Script}" field =" buildStepContent" >
5
5
14
14
</tr >
15
15
16
16
<f : block >
17
- <table name =" scriptBuildStepArgs" id =" scriptBuildStepArgs" >
17
+ <ms : blockWrapper name =" scriptBuildStepArgs" id =" scriptBuildStepArgs" >
18
18
<f : optionalBlock name =" defineArgs" inline =" true" title =" ${%Define arguments}" checked =" ${!empty(instance.buildStepArgs)}" help =" /plugin/managed-scripts/help-defineArgs_powershell.html" >
19
19
<f : entry >
20
20
<f : repeatable var =" arg" items =" ${instance.buildStepArgs}" name =" buildStepArgs" noAddButton =" true" minimum =" 1" >
21
- <table width =" 100%" >
21
+ <ms : blockWrapper width =" 100%" >
22
22
<f : entry >
23
23
<div name =" argName" ><st : nbsp /></div >
24
24
<input type =" text" name =" arg" value =" ${arg}" size =" 80" />
25
25
<input type =" button" name =" delete_button" value =" ${%Delete}" class =" repeatable-delete show-if-not-only" style =" margin-left: 1em;" />
26
26
<input type =" button" name =" add_button" onClick =" ms_labelArgs()" value =" ${%Add argument}" class =" repeatable-add show-if-last" />
27
27
</f : entry >
28
- </table >
28
+ </ms : blockWrapper >
29
29
</f : repeatable >
30
30
</f : entry >
31
31
</f : optionalBlock >
32
- </table >
32
+ </ms : blockWrapper >
33
33
</f : block >
34
34
</f : entry >
35
35
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ THE SOFTWARE.
26
26
27
27
<?jelly escape-by-default =' true' ?>
28
28
<j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define"
29
- xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" >
29
+ xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" xmlns : ms = " /lib/managed_scripts " >
30
30
31
31
<p >
32
32
${%description}
@@ -35,19 +35,19 @@ THE SOFTWARE.
35
35
<j : set var =" descriptor" value =" ${config.descriptor}" />
36
36
<st : include page =" id-name-and-comment" class =" ${descriptor.clazz}" />
37
37
<f : block >
38
- <table >
38
+ <ms : blockWrapper >
39
39
<f : entry title =" ${%Argument list}" field =" config.args" >
40
40
<f : repeatable var =" arg" items =" ${config.args}" name =" args" noAddButton =" true" minimum =" 1" >
41
- <table width =" 100%" >
41
+ <ms : blockWrapper width =" 100%" >
42
42
<f : entry >
43
43
<input type =" text" name =" name" value =" ${arg.name}" size =" 40" />
44
44
<input type =" button" name =" delete_button" value =" ${%Delete}" class =" repeatable-delete show-if-not-only" style =" margin-left: 1em;" />
45
45
<input type =" button" name =" add_button" value =" ${%Add argument}" class =" repeatable-add show-if-last" />
46
46
</f : entry >
47
- </table >
47
+ </ms : blockWrapper >
48
48
</f : repeatable >
49
49
</f : entry >
50
- </table >
50
+ </ms : blockWrapper >
51
51
</f : block >
52
52
<f : entry title =" ${%Content}" >
53
53
<f : textarea id =" config.content" name =" config.content" value =" ${config.content}" />
Original file line number Diff line number Diff line change 9
9
10
10
11
11
<?jelly escape-by-default =' true' ?>
12
- <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" >
12
+ <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" xmlns : ms = " /lib/managed_scripts " >
13
13
14
14
<f : entry title =" ${%ID}" >
15
15
<f : textbox readonly =" readonly" name =" config.id" value =" ${config.id}" />
21
21
<f : textbox readonly =" readonly" name =" config.comment" value =" ${config.comment}" />
22
22
</f : entry >
23
23
<f : block >
24
- <table >
24
+ <ms : blockWrapper >
25
25
<f : entry title =" ${%Argument list}" field =" config.args" >
26
26
<f : repeatable var =" arg" items =" ${config.args}" name =" args" noAddButton =" true" minimum =" 1" >
27
- <table width =" 100%" >
27
+ <ms : blockWrapper width =" 100%" >
28
28
<f : entry >
29
29
<input type =" text" readonly =" readonly" name =" name" value =" ${arg.name}" />
30
30
</f : entry >
31
- </table >
31
+ </ms : blockWrapper >
32
32
</f : repeatable >
33
33
</f : entry >
34
- </table >
34
+ </ms : blockWrapper >
35
35
</f : block >
36
36
<f : entry title =" ${%Content}" >
37
37
<f : textarea readonly =" readonly" id =" config.content" name =" config.content" value =" ${config.content}" />
Original file line number Diff line number Diff line change 1
1
<?jelly escape-by-default =' true' ?>
2
- <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" >
2
+ <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" xmlns : ms = " /lib/managed_scripts " >
3
3
4
4
<f : entry title =" ${%Script}" field =" buildStepContent" >
5
5
<f : entry field =" buildStepId" >
13
13
</tr >
14
14
15
15
<f : block >
16
- <table name =" scriptBuildStepArgs" id =" scriptBuildStepArgs" >
16
+ <ms : blockWrapper name =" scriptBuildStepArgs" id =" scriptBuildStepArgs" >
17
17
<f : optionalBlock name =" defineArgs" inline =" true" title =" ${%Define arguments}" checked =" ${!empty(instance.buildStepArgs)}" help =" /plugin/managed-scripts/help-defineArgs.html" >
18
18
<f : entry field =" tokenized" >
19
19
<f : checkbox title =" ${%Tokenized}" checked =" ${instance.isTokenized()}" />
20
20
</f : entry >
21
21
<f : entry >
22
22
<f : repeatable var =" arg" items =" ${instance.buildStepArgs}" name =" buildStepArgs" noAddButton =" true" minimum =" 1" >
23
- <table width =" 100%" >
23
+ <ms : blockWrapper width =" 100%" >
24
24
<f : entry >
25
25
<div name =" argName" ><st : nbsp /></div >
26
26
<input type =" text" name =" arg" value =" ${arg}" size =" 80" />
27
27
<input type =" button" name =" delete_button" value =" ${%Delete}" class =" repeatable-delete show-if-not-only" style =" margin-left: 1em;" />
28
28
<input type =" button" name =" add_button" onClick =" ms_labelArgs()" value =" ${%Add argument}" class =" repeatable-add show-if-last" />
29
29
</f : entry >
30
- </table >
30
+ </ms : blockWrapper >
31
31
</f : repeatable >
32
32
</f : entry >
33
33
</f : optionalBlock >
34
- </table >
34
+ </ms : blockWrapper >
35
35
</f : block >
36
36
</f : entry >
37
37
</j : jelly >
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ THE SOFTWARE.
26
26
27
27
<?jelly escape-by-default =' true' ?>
28
28
<j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define"
29
- xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" >
29
+ xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" xmlns : ms = " /lib/managed_scripts " >
30
30
31
31
<p >
32
32
${%description}
@@ -35,19 +35,19 @@ THE SOFTWARE.
35
35
<j : set var =" descriptor" value =" ${config.descriptor}" />
36
36
<st : include page =" id-name-and-comment" class =" ${descriptor.clazz}" />
37
37
<f : block >
38
- <table >
38
+ <ms : blockWrapper >
39
39
<f : entry title =" ${%Argument list}" field =" config.args" >
40
40
<f : repeatable var =" arg" items =" ${config.args}" name =" args" noAddButton =" true" minimum =" 1" >
41
- <table width =" 100%" >
41
+ <ms : blockWrapper width =" 100%" >
42
42
<f : entry >
43
43
<input type =" text" name =" name" value =" ${arg.name}" size =" 40" />
44
44
<input type =" button" name =" delete_button" value =" ${%Delete}" class =" repeatable-delete show-if-not-only" style =" margin-left: 1em;" />
45
45
<input type =" button" name =" add_button" value =" ${%Add argument}" class =" repeatable-add show-if-last" />
46
46
</f : entry >
47
- </table >
47
+ </ms : blockWrapper >
48
48
</f : repeatable >
49
49
</f : entry >
50
- </table >
50
+ </ms : blockWrapper >
51
51
</f : block >
52
52
<f : entry title =" ${%Content}" >
53
53
<f : textarea id =" config.content" name =" config.content" value =" ${config.content}" />
Original file line number Diff line number Diff line change 9
9
10
10
11
11
<?jelly escape-by-default =' true' ?>
12
- <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" >
12
+ <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" xmlns : ms = " /lib/managed_scripts " >
13
13
14
14
<f : entry title =" ${%ID}" >
15
15
<f : textbox readonly =" readonly" name =" config.id" value =" ${config.id}" />
21
21
<f : textbox readonly =" readonly" name =" config.comment" value =" ${config.comment}" />
22
22
</f : entry >
23
23
<f : block >
24
- <table >
24
+ <ms : blockWrapper >
25
25
<f : entry title =" ${%Argument list}" field =" config.args" >
26
26
<f : repeatable var =" arg" items =" ${config.args}" name =" args" noAddButton =" true" minimum =" 1" >
27
- <table width =" 100%" >
27
+ <ms : blockWrapper width =" 100%" >
28
28
<f : entry >
29
29
<input type =" text" readonly =" readonly" name =" name" value =" ${arg.name}" />
30
30
</f : entry >
31
- </table >
31
+ </ms : blockWrapper >
32
32
</f : repeatable >
33
33
</f : entry >
34
- </table >
34
+ </ms : blockWrapper >
35
35
</f : block >
36
36
<f : entry title =" ${%Content}" >
37
37
<f : textarea readonly =" readonly" id =" config.content" name =" config.content" value =" ${config.content}" />
Original file line number Diff line number Diff line change 1
1
<?jelly escape-by-default =' true' ?>
2
- <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" >
2
+ <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" xmlns : ms = " /lib/managed_scripts " >
3
3
4
4
<f : entry title =" ${%Script}" field =" buildStepContent" >
5
5
<f : entry field =" buildStepId" >
13
13
</tr >
14
14
15
15
<f : block >
16
- <table name =" scriptBuildStepArgs" id =" scriptBuildStepArgs" >
16
+ <ms : blockWrapper name =" scriptBuildStepArgs" id =" scriptBuildStepArgs" >
17
17
<f : optionalBlock name =" defineArgs" inline =" true" title =" ${%Define arguments}" checked =" ${!empty(instance.buildStepArgs)}" help =" /plugin/managed-scripts/help-defineArgs_win.html" >
18
18
<f : entry >
19
19
<f : repeatable var =" arg" items =" ${instance.buildStepArgs}" name =" buildStepArgs" noAddButton =" true" minimum =" 1" >
20
- <table width =" 100%" >
20
+ <ms : blockWrapper width =" 100%" >
21
21
<f : entry >
22
22
<div name =" argName" ><st : nbsp /></div >
23
23
<input type =" text" name =" arg" value =" ${arg}" size =" 80" />
24
24
<input type =" button" name =" delete_button" value =" ${%Delete}" class =" repeatable-delete show-if-not-only" style =" margin-left: 1em;" />
25
25
<input type =" button" name =" add_button" onClick =" ms_labelArgs()" value =" ${%Add argument}" class =" repeatable-add show-if-last" />
26
26
</f : entry >
27
- </table >
27
+ </ms : blockWrapper >
28
28
</f : repeatable >
29
29
</f : entry >
30
30
</f : optionalBlock >
31
- </table >
31
+ </ms : blockWrapper >
32
32
</f : block >
33
33
</f : entry >
34
34
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ THE SOFTWARE.
26
26
27
27
<?jelly escape-by-default =' true' ?>
28
28
<j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define"
29
- xmlns:l=" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" >
29
+ xmlns:l=" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" xmlns : ms = " /lib/managed_scripts " >
30
30
31
31
<p >
32
32
${%description}
@@ -35,19 +35,19 @@ THE SOFTWARE.
35
35
<j : set var =" descriptor" value =" ${config.descriptor}" />
36
36
<st : include page =" id-name-and-comment" class =" ${descriptor.clazz}" />
37
37
<f : block >
38
- <table >
38
+ <ms : blockWrapper >
39
39
<f : entry title =" ${%Argument list}" field =" config.args" >
40
40
<f : repeatable var =" arg" items =" ${config.args}" name =" args" noAddButton =" true" minimum =" 1" >
41
- <table width =" 100%" >
41
+ <ms : blockWrapper width =" 100%" >
42
42
<f : entry >
43
43
<input type =" text" name =" name" value =" ${arg.name}" size =" 40" />
44
44
<input type =" button" name =" delete_button" value =" ${%Delete}" class =" repeatable-delete show-if-not-only" style =" margin-left: 1em;" />
45
45
<input type =" button" name =" add_button" value =" ${%Add argument}" class =" repeatable-add show-if-last" />
46
46
</f : entry >
47
- </table >
47
+ </ms : blockWrapper >
48
48
</f : repeatable >
49
49
</f : entry >
50
- </table >
50
+ </ms : blockWrapper >
51
51
</f : block >
52
52
<f : entry title =" ${%Content}" >
53
53
<f : textarea id =" config.content" name =" config.content" value =" ${config.content}" />
Original file line number Diff line number Diff line change 9
9
10
10
11
11
<?jelly escape-by-default =' true' ?>
12
- <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" >
12
+ <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout" xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" xmlns : ms = " /lib/managed_scripts " >
13
13
14
14
<f : entry title =" ${%ID}" >
15
15
<f : textbox readonly =" readonly" name =" config.id" value =" ${config.id}" />
21
21
<f : textbox readonly =" readonly" name =" config.comment" value =" ${config.comment}" />
22
22
</f : entry >
23
23
<f : block >
24
- <table >
24
+ <ms : blockWrapper >
25
25
<f : entry title =" ${%Argument list}" field =" config.args" >
26
26
<f : repeatable var =" arg" items =" ${config.args}" name =" args" noAddButton =" true" minimum =" 1" >
27
- <table width =" 100%" >
27
+ <ms : blockWrapper width =" 100%" >
28
28
<f : entry >
29
29
<input type =" text" readonly =" readonly" name =" name" value =" ${arg.name}" />
30
30
</f : entry >
31
- </table >
31
+ </ms : blockWrapper >
32
32
</f : repeatable >
33
33
</f : entry >
34
- </table >
34
+ </ms : blockWrapper >
35
35
</f : block >
36
36
<f : entry title =" ${%Content}" >
37
37
<f : textarea readonly =" readonly" id =" config.content" name =" config.content" value =" ${config.content}" />
You can’t perform that action at this time.
0 commit comments