mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Initial work towards support of observation points
This commit is contained in:
parent
e572f1e61e
commit
b43ea2c78e
10 changed files with 108 additions and 18 deletions
|
|
@ -74,4 +74,26 @@
|
|||
</select>
|
||||
</li>
|
||||
|
||||
|
||||
{% -- Print the observation point dropdown %}
|
||||
{% if observationPoints ~= nil then %}
|
||||
<li class="nav-item d-none d-sm-flex align-items-center">
|
||||
<select name="observationpoint-dropdown" id="observationpoint-dropdown" class="selectpicker"
|
||||
data-width="fit" data-live-search="true" data-live-search-placeholder="{{ i18n('search') }}" data-actions-box="true">
|
||||
|
||||
|
||||
{% -- The Observationpoint optgroup %}
|
||||
<optgroup label="{{ i18n('observationpoints') }}">
|
||||
{% for k, v in pairsByKeys(observationPoints, asc) do %}
|
||||
selected = ""
|
||||
<option data-tokens="{{ k }}" value="{{ k }}" {{ selected }}>{{ k }}</option>
|
||||
{% end %}
|
||||
</optgroup>
|
||||
|
||||
</select>
|
||||
</li>
|
||||
{% end %}
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript" src="{{ ntop.getHttpPrefix() }}/js/pages/components/ifaces-dropdown.js?{{ ntop.getStaticFileEpoch() }}"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue