Skip to content

Commit 55c1722

Browse files
ContactForm: Add description for user and default_channel element
1 parent 5266af9 commit 55c1722

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

library/Notifications/Web/Form/ContactForm.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,14 @@ protected function assemble()
120120
})
121121
]
122122
]
123-
);
123+
)->addHtml(new HtmlElement(
124+
'p',
125+
new Attributes(['class' => 'description']),
126+
new Text($this->translate(
127+
"Link existing Icinga Web users. Users from external authentication backends"
128+
. " won't be suggested and must be entered manually."
129+
))
130+
));
124131

125132
$defaultChannel = $this->createElement(
126133
'select',
@@ -142,6 +149,14 @@ protected function assemble()
142149
$this->addAddressElements();
143150

144151
$this->addHtml($defaultChannel);
152+
$this->addHtml(new HtmlElement(
153+
'p',
154+
new Attributes(['class' => 'description']),
155+
new Text($this->translate(
156+
"Contact will be notified via the default channel, when no specific channel is configured"
157+
. " in a schedule or event rule"
158+
))
159+
));
145160

146161
$this->addElement(
147162
'submit',

0 commit comments

Comments
 (0)