Added possibility to send notification to recipients (#7781)

This commit is contained in:
Matteo Biscosi 2023-08-24 15:55:29 +00:00
parent 54fdef7f10
commit b691841321
15 changed files with 285 additions and 122 deletions

View file

@ -36,7 +36,22 @@
</div>
<div class="recipient-template-container">
</div>
<hr>
<hr class="hide-on-default-recipient">
<div class="mb-3 row hide-on-default-recipient">
<label class="col-form-label col-sm-3" for="edit-recipient-notifications-type">
<b>{{ i18n("endpoint_notifications.notifications_type") }}</b>
</label>
<div class="col-sm-7">
<select required name="recipient_notifications_type" class="form-select" id="edit-recipient-notifications-type">
{% for id, title in pairsByValues(notification_types, asc) do %}
<option {{ternary((id == alerts), 'selected', '')}} value="{{ id }}">{{ title }}</option>
{% end %}
</select>
<small>{{ i18n('endpoint_notifications.notifications_type_notes') }}</small>
</div>
</div>
<div id="edit_alert_filters">
<hr>
<div class="mb-3 row hide-on-default-recipient">
<label class="col-form-label col-sm-3" for="edit-recipient-host-pools-select">
<b>{{ i18n("host_pools.host_pools") }}</b>
@ -149,6 +164,7 @@
</div>
</div>
</div>
</div>
<span class="invalid-feedback"></span>
</div>
<div class="modal-footer">