mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
53 lines
No EOL
2.6 KiB
HTML
53 lines
No EOL
2.6 KiB
HTML
<div class="modal fade" role="dialog" id='modal-script'>
|
|
<div class="modal-dialog modal-lg ">
|
|
<div class="modal-content">
|
|
<form id='edit-form' method='post'>
|
|
<div class="modal-header">
|
|
<h5 class="modal-title"><span id='script-name'></span></h5>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<table class='table table-borderless' id='script-config-editor'>
|
|
</table>
|
|
|
|
<div class="form-group row" style="padding: .75rem 1.25rem" id="alert-severity-select">
|
|
<label class="col-sm-4 col-form-label">
|
|
{{ i18n("scripts_list.alert_severity") }}
|
|
</label>
|
|
<div class="col-sm-6">
|
|
<select class="form-control" name="severity">
|
|
{% for key, severity in pairsByField(alert_severities, 'severity_id', asc) do %}
|
|
<option value='{{ severity.severity_id }}'>{{ i18n(severity.i18n_title) }}</option>
|
|
{% end %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div id='script-description' class='alert alert-light' role='alert'>
|
|
</div>
|
|
|
|
<span class='invalid-feedback' id='apply-error'></span>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button id='btn-reset' title='Reset Default ntopng values' type='button'
|
|
class='btn btn-danger'>
|
|
{{ i18n("scripts_list.reset_default") }}
|
|
</button>
|
|
<div class="action-button-container" >
|
|
<span class="border mr-2 vertical-align"></span>
|
|
<button id="btn-action" class="btn btn-secondary">{ action }</button>
|
|
</div>
|
|
<button type="button" title='{{ i18n("cancel", {}) }}' class="btn btn-secondary ml-auto"
|
|
data-dismiss="modal">
|
|
{{ i18n("cancel", {}) }}
|
|
</button>
|
|
<button id="btn-apply" title='{{ i18n("apply", {}) }}' type="submit" class="btn btn-primary">
|
|
{{ i18n("apply", {}) }}
|
|
</button>
|
|
<div class="alert alert-danger w-100" id="action-error" style="display: none;">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div> |