File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed
library/Notifications/Web/Control Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 99use Icinga \Web \Session ;
1010use IntlTimeZone ;
1111use ipl \Html \Form ;
12- use ipl \Html \HtmlElement ;
1312use ipl \I18n \Translation ;
1413use ipl \Web \Common \FormUid ;
1514use Throwable ;
@@ -25,7 +24,10 @@ class TimezonePicker extends Form
2524 /** @var string Default timezone param */
2625 public const DEFAULT_TIMEZONE_PARAM = 'display_timezone ' ;
2726
28- protected $ defaultAttributes = ['class ' => 'timezone-picker ' , 'name ' => 'timezone-picker-form ' ];
27+ protected $ defaultAttributes = [
28+ 'class ' => 'timezone-picker icinga-form inline icinga-controls ' ,
29+ 'name ' => 'timezone-picker-form '
30+ ];
2931
3032 protected string $ defaultTimezone ;
3133
@@ -82,7 +84,6 @@ public function assemble(): void
8284 ]
8385 );
8486 $ select = $ this ->getElement (static ::DEFAULT_TIMEZONE_PARAM );
85- $ select ->prependWrapper (HtmlElement::create ('div ' , ['class ' => 'icinga-controls ' ]));
8687 $ select ->setValue ($ this ->getDisplayTimezone ());
8788 }
8889}
Original file line number Diff line number Diff line change 8484 }
8585}
8686
87- .timezone-picker {
88- display : inline ;
89- margin-left : 1em ;
90-
91- .icinga-controls {
92- display : inline ;
93- }
94- }
95-
9687/* Style */
9788
9889.icinga-controls {
Original file line number Diff line number Diff line change 2121 }
2222 }
2323 }
24+
25+ .timezone-picker {
26+ margin-left : 1em ;
27+ }
2428}
2529
2630.schedule-detail {
You can’t perform that action at this time.
0 commit comments