1
1
<?jelly escape-by-default =' true' ?>
2
2
3
3
<j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" xmlns : d =" jelly:define" xmlns : l =" /lib/layout"
4
- xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" xmlns : dt = " /lib/dingtalk " >
4
+ xmlns : t =" /lib/hudson" xmlns : f =" /lib/form" >
5
5
<!-- 通知时机列表 -->
6
6
<j : set var =" noticeOccasionTypes" value =" ${descriptor.getNoticeOccasionTypes()}" />
7
7
8
- <dt : blockWrapper class =" dt-notifier-config" >
9
- <f : optionalBlock
10
- title =" ${instance.getRobotName()}"
11
- field =" checked"
12
- inline =" true"
13
- checked =" ${instance.isChecked()}" >
14
- <f : advanced >
15
- <f : entry title =" 通知时机" field =" noticeOccasions" >
16
- <dt : blockWrapper >
17
- <j : forEach var =" noticeOccasionTypeItem"
18
- items =" ${noticeOccasionTypes}" >
19
- <j : scope >
20
- <j : set var =" name" value =" ${noticeOccasionTypeItem.name()}" />
21
- <j : set var =" desc" value =" ${noticeOccasionTypeItem.getDesc()}" />
22
- <label >
23
- <f : checkbox
24
- json =" ${name}"
25
- name =" noticeOccasions"
26
- checked =" ${instance.noticeOccasions.contains(name)}"
27
- />
28
- ${desc}
29
- </label >
30
- </j : scope >
31
- </j : forEach >
32
- </dt : blockWrapper >
33
- </f : entry >
34
- <f : entry title =" 通知人" field =" at" >
35
- <f : checkbox title =" atAll" field =" atAll" />
36
- <f : textarea field =" atMobile" />
37
- </f : entry >
38
- <f : entry field =" content" title =" 自定义内容" >
39
- <f : textarea />
40
- </f : entry >
41
- </f : advanced >
8
+ <f : optionalBlock
9
+ title =" ${instance.getRobotName()}"
10
+ field =" checked"
11
+ inline =" true"
12
+ checked =" ${instance.isChecked()}" >
13
+ <f : advanced >
14
+ <f : entry title =" 通知时机" field =" noticeOccasions" >
15
+ <j : forEach var =" noticeOccasionTypeItem"
16
+ items =" ${noticeOccasionTypes}" >
17
+ <j : scope >
18
+ <j : set var =" name" value =" ${noticeOccasionTypeItem.name()}" />
19
+ <j : set var =" desc" value =" ${noticeOccasionTypeItem.getDesc()}" />
20
+ <label >
21
+ <f : checkbox
22
+ json =" ${name}"
23
+ name =" noticeOccasions"
24
+ checked =" ${instance.noticeOccasions.contains(name)}"
25
+ />
26
+ ${desc}
27
+ </label >
28
+ </j : scope >
29
+ </j : forEach >
30
+ </f : entry >
31
+ <f : entry title =" 通知人" field =" at" >
32
+ <f : checkbox title =" atAll" field =" atAll" />
33
+ <f : textarea field =" atMobile" />
34
+ </f : entry >
35
+ <f : entry field =" content" title =" 自定义内容" >
36
+ <f : textarea />
37
+ </f : entry >
38
+ </f : advanced >
42
39
43
- <f : invisibleEntry >
44
- <input type =" hidden" name =" robotId" value =" ${instance.getRobotId()}" />
45
- </f : invisibleEntry >
46
- <f : invisibleEntry >
47
- <input type =" hidden" name =" robotName" value =" ${instance.getRobotName()}" />
48
- </f : invisibleEntry >
49
- </f : optionalBlock >
50
- </dt : blockWrapper >
40
+ <f : invisibleEntry >
41
+ <input type =" hidden" name =" robotId" value =" ${instance.getRobotId()}" />
42
+ </f : invisibleEntry >
43
+ <f : invisibleEntry >
44
+ <input type =" hidden" name =" robotName" value =" ${instance.getRobotName()}" />
45
+ </f : invisibleEntry >
46
+ </f : optionalBlock >
51
47
</j : jelly >
0 commit comments