Skip to content

Commit 7866a6e

Browse files
ContactForm: Add description for user and default_channel element
1 parent b89aee9 commit 7866a6e

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+
'Add an Icinga Web user to associate with this contact.'
128+
. " Users from external authentication backends won't be suggested and must be entered manually."
129+
))
130+
));
124131

125132
$channelQuery = Channel::on($this->db)
126133
->columns(['id', 'name', 'type']);
@@ -154,6 +161,14 @@ protected function assemble()
154161

155162
$this->decorate($defaultChannel);
156163
$this->addHtml($defaultChannel);
164+
$this->addHtml(new HtmlElement(
165+
'p',
166+
new Attributes(['class' => 'description']),
167+
new Text($this->translate(
168+
"Contact will be notified via the default channel, when no specific channel is configured"
169+
. " in a schedule or event rule."
170+
))
171+
));
157172

158173
$this->addElement(
159174
'submit',

0 commit comments

Comments
 (0)