File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 1010use Icinga \Module \Notifications \Model \RuleEscalationRecipient ;
1111use Icinga \Module \Notifications \Model \Schedule ;
1212use Icinga \Web \Session ;
13+ use ipl \Html \Attributes ;
1314use ipl \Html \HtmlDocument ;
15+ use ipl \Html \HtmlElement ;
16+ use ipl \Html \Text ;
1417use ipl \Sql \Connection ;
1518use ipl \Stdlib \Filter ;
1619use ipl \Web \Common \CsrfCounterMeasure ;
@@ -154,9 +157,22 @@ public function removeSchedule(int $id): void
154157
155158 protected function assemble ()
156159 {
160+ if (! $ this ->showRemoveButton ) {
161+ $ this ->addHtml (new HtmlElement (
162+ 'p ' ,
163+ new Attributes (['class ' => 'description ' ]),
164+ new Text ($ this ->translate (
165+ 'Organize contacts and contact groups in time-based schedules and let them rotate '
166+ . ' automatically. You can define multiple rotations with different patterns to set '
167+ . ' priorities. Schedules can also be used as recipients for event rules. '
168+ ))
169+ ));
170+ }
171+
157172 $ this ->addElement ('text ' , 'name ' , [
158- 'required ' => true ,
159- 'label ' => $ this ->translate ('Name ' )
173+ 'required ' => true ,
174+ 'label ' => $ this ->translate ('Schedule Name ' ),
175+ 'placeholder ' => $ this ->translate ('e.g. working hours, on call, etc ... ' )
160176 ]);
161177
162178 $ this ->addElement ('submit ' , 'submit ' , [
You can’t perform that action at this time.
0 commit comments