diff options
author | Simon Rettberg | 2021-11-25 17:59:14 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-03-09 15:06:54 +0100 |
commit | 3c5509a5e92d154e2673105aa93df436a80a3724 (patch) | |
tree | 6dc71193cf5ffa0189de069e0b4de0135ade282a /modules-available/eventlog/templates | |
parent | [statistics] Support IOMMU for AMD (diff) | |
download | slx-admin-3c5509a5e92d154e2673105aa93df436a80a3724.tar.gz slx-admin-3c5509a5e92d154e2673105aa93df436a80a3724.tar.xz slx-admin-3c5509a5e92d154e2673105aa93df436a80a3724.zip |
[eventlog] Allow filtering by select hardware info (to be extended)
Diffstat (limited to 'modules-available/eventlog/templates')
-rw-r--r-- | modules-available/eventlog/templates/page-filters-edit-rule.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules-available/eventlog/templates/page-filters-edit-rule.html b/modules-available/eventlog/templates/page-filters-edit-rule.html index 2019406a..a9251f53 100644 --- a/modules-available/eventlog/templates/page-filters-edit-rule.html +++ b/modules-available/eventlog/templates/page-filters-edit-rule.html @@ -71,6 +71,11 @@ {{/filter}} <datalist id="filter-keys"> </datalist> + <datalist id="machine-filter-keys"> + {{#machine_keys}} + <option>{{.}}</option> + {{/machine_keys}} + </datalist> <div> <p>{{lang_hintRegex}}</p> </div> @@ -146,6 +151,7 @@ // Population function function setAutocomplete(type) { var t = typeSamples[type]; + var m = false; $list.empty(); if (!t) return; @@ -154,6 +160,10 @@ if (!t.hasOwnProperty(k)) continue; $list.append($('<option>').text(k)); + if (k === 'machineuuid') m = true; + } + if (m) { + $list.append($('#machine-filter-keys').clone()); } } |