mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
* hide previous errors in apply modal * disable buttons on row for scripts_list * check csrf token expiration
71 lines
2.4 KiB
HTML
71 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">
|
|
<div class="alert alert-danger d-none" id='alert-row-buttons' role="alert">
|
|
</div>
|
|
<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 }}";
|
|
let csrf_toggle_buttons = "{{ ntop.getRandomCSRFValue() }}";
|
|
let csrf_edit_config = "{{ ntop.getRandomCSRFValue() }}";
|
|
|
|
i18n.are_you_sure = '{{ i18n("scripts_list.are_you_sure", {}) }}'
|
|
i18n.all = '{{ i18n("all", {}) }}'
|
|
i18n.enabled = '{{ i18n("enabled", {}) }}'
|
|
i18n.disabled = '{{ i18n("disabled", {}) }}'
|
|
i18n.request_failed_message = '{{ i18n("request_failed_message") }}'
|
|
|
|
</script>
|
|
<script type="text/javascript" src="{{ ntop.getHttpPrefix() }}/js/config_callbacks/scripts-list-utils.js"></script>
|
|
|
|
{% end %}
|