mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
73 lines
2.4 KiB
HTML
73 lines
2.4 KiB
HTML
{% if script_list.confset_id == nil or script_list.confset_id == "" then %}
|
|
<div class="alert alert-danger">
|
|
<b>Attention!</b>
|
|
The page was not found!
|
|
<a class="text-danger" href="#" onclick="history.back()"
|
|
>Click here to return to the previous page!</a
|
|
>
|
|
</div>
|
|
{% else %}
|
|
|
|
<div class="container-fluid mt-3">
|
|
<nav aria-label="breadcrumb">
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item" aria-current="page">
|
|
<a href="/lua/config_list.lua"
|
|
>{{ i18n("config_scripts.config_list", {}) }}</a
|
|
>
|
|
</li>
|
|
<li class="breadcrumb-item" aria-current="page">
|
|
<a href="/lua/config_list.lua?subdir={{ script_list.script_subdir }}">
|
|
{{ script_list.hooks_localizated[script_list.script_subdir] }}
|
|
</a>
|
|
</li>
|
|
<li class="breadcrumb-item active" aria-current="page">
|
|
{{ i18n("scripts_list.config", {}) }}
|
|
<b>{{ script_list.confset_name }}</b>
|
|
</li>
|
|
</ol>
|
|
</nav>
|
|
<div class="row">
|
|
<div class="col-md-12 col-lg-12 mt-3">
|
|
<table
|
|
id="scripts-config"
|
|
class="table w-100 table-striped table-hover table-bordered mt-3">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ i18n("name", {}) }}</th>
|
|
<th>{{ i18n("description", {}) }}</th>
|
|
<th>{{ i18n("enabled", {}) }}</th>
|
|
<th>{{ i18n("action", {})}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{# include modals for script_list.lua #}
|
|
{* script_list.template_utils.gen("script_list_components/edit_config_modal.html") *}
|
|
{# add css, js files #}
|
|
<link href="{{ ntop.getHttpPrefix() }}/datatables/datatables.min.css" rel="stylesheet"/>
|
|
<script type="text/javascript">
|
|
|
|
const confset_id = {{ script_list.confset_id }};
|
|
const script_subdir = "{{ script_list.script_subdir }}";
|
|
const csrf_toggle_buttons = "{{ ntop.getRandomCSRFValue() }}";
|
|
const csrf_edit_config = "{{ ntop.getRandomCSRFValue() }}";
|
|
|
|
const i18_scripts_list = {
|
|
are_you_sure: '{{ i18n("scripts_list.are_you_sure", {}) }}',
|
|
all: '{{ i18n("all", {}) }}',
|
|
enabled: '{{ i18n("enabled", {}) }}',
|
|
disabled: '{{ i18n("disabled", {}) }}',
|
|
}
|
|
|
|
</script>
|
|
<script type="text/javascript" src="{{ ntop.getHttpPrefix() }}/js/config_callbacks/scripts-list-utils.js"></script>
|
|
<script type="text/javascript">
|
|
setTimeout(() => { document.location.reload()}, {{ script_list.timeout_csrf }});
|
|
</script>
|
|
|
|
{% end %}
|