mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
add confirm modal for disabling all user scripts (#3917)
This commit is contained in:
parent
6f80b017a0
commit
6e4e195f56
3 changed files with 17 additions and 2 deletions
|
|
@ -45,7 +45,7 @@
|
|||
</table>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<button disabled class="btn btn-danger" id="btn-disable-all">
|
||||
<button id='btn-disable-all' disabled class="btn btn-danger" data-toggle="modal" data-target="#disable-all-modal">
|
||||
<i class='fas fa-toggle-off'></i> {{ i18n("user_scripts.disable_all") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -66,6 +66,19 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{*
|
||||
script_list.template_utils.gen("modal_confirm_dialog.html", {
|
||||
dialog={
|
||||
id = "disable-all-modal",
|
||||
message = i18n('user_scripts.disable_all_message'),
|
||||
title = i18n('user_scripts.disable_all_user_scripts'),
|
||||
confirm = i18n("user_scripts.disable_all"),
|
||||
custom_alert_class = 'alert alert-danger',
|
||||
confirm_button = 'btn-danger',
|
||||
}
|
||||
})
|
||||
*}
|
||||
|
||||
|
||||
{# include modals for edit_configset.lua #}
|
||||
{* script_list.template_utils.gen("pages/modals/edit_configset/edit_config_modal.html") *}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue