Implements #4919 custom alert severity

This commit is contained in:
Matteo Biscosi 2021-01-27 12:01:52 +01:00
parent 89b21df6f6
commit 10fb8bbecc
64 changed files with 317 additions and 49 deletions

View file

@ -12,12 +12,12 @@
<div class="form-group row" style="padding: .75rem 1.25rem" id="alert-severity-select">
<label class="col-sm-4 col-form-label">
Alert Severity:
{{ i18n("scripts_list.alert_severity") }}
</label>
<div class="col-sm-6">
<select class="form-control" name="severity">
{% for key, severity in pairsByField(alert_severities, 'severity_id', asc) do %}
<option name='{{ severity.severity_id }}'>{{ i18n(severity.i18n_title) }}</option>
<option value='{{ severity.severity_id }}'>{{ i18n(severity.i18n_title) }}</option>
{% end %}
</select>
</div>