File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 9
9
use Icinga \Module \Notifications \Model \RuleEscalationRecipient ;
10
10
use Icinga \Module \Notifications \Model \Schedule ;
11
11
use Icinga \Web \Session ;
12
+ use ipl \Html \Attributes ;
12
13
use ipl \Html \HtmlDocument ;
14
+ use ipl \Html \HtmlElement ;
15
+ use ipl \Html \Text ;
13
16
use ipl \Sql \Connection ;
14
17
use ipl \Stdlib \Filter ;
15
18
use ipl \Web \Common \CsrfCounterMeasure ;
@@ -151,9 +154,22 @@ public function removeSchedule(int $id): void
151
154
152
155
protected function assemble ()
153
156
{
157
+ if (! $ this ->showRemoveButton ) {
158
+ $ this ->addHtml (new HtmlElement (
159
+ 'p ' ,
160
+ new Attributes (['class ' => 'description ' ]),
161
+ new Text ($ this ->translate (
162
+ 'Organize contacts and contact groups in a time based schedule and let them rotate '
163
+ . ' automatically. Multiple rotations can be added to your schedule to represent the rotating '
164
+ . ' members in your admin team. Schedules can be used as recipients of event rules. '
165
+ ))
166
+ ));
167
+ }
168
+
154
169
$ this ->addElement ('text ' , 'name ' , [
155
170
'required ' => true ,
156
- 'label ' => $ this ->translate ('Schedule Name ' )
171
+ 'label ' => $ this ->translate ('Schedule Name ' ),
172
+ 'placeholder ' => 'e.g. working hours, on call, etc ... '
157
173
]);
158
174
159
175
$ this ->addElement ('submit ' , 'submit ' , [
Original file line number Diff line number Diff line change 116
116
border-color : transparent ;
117
117
}
118
118
}
119
+
120
+ .icinga-form p .description {
121
+ color : @text-color-light ;
122
+ }
123
+
You can’t perform that action at this time.
0 commit comments