mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
* config and scripts templates #3159 * fixed bug for config rename, clone operations * add reload for config and script list * fixed timeout
This commit is contained in:
parent
eb0a6e5310
commit
90c4865789
11 changed files with 1167 additions and 1139 deletions
64
httpdocs/templates/config_list_components/apply_modal.html
Normal file
64
httpdocs/templates/config_list_components/apply_modal.html
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<!--applied to modal-->
|
||||
<div class="modal fade" id="applied-modal" tabindex="-1" role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">{{i18n("config_scripts.config_apply", {}) }}: <span id='apply-name'></span></h5>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class='form' type='post'>
|
||||
|
||||
{% if subdir == "interface" or subdir == "flow" then %}
|
||||
|
||||
<div class='form-group'>
|
||||
<label for='apply-interfaces'>{{i18n("config_scripts.select_interface", {}) }}:</label>
|
||||
<select multiple id='applied-interfaces' class='form-control'>
|
||||
|
||||
|
||||
{% for key, ifname in pairsByKeys(interface.getIfNames()) do %}
|
||||
{% local label = getHumanReadableInterfaceName(ifname) %}
|
||||
<option value='{{key}}'>{{ label }}</option>
|
||||
{% end %}
|
||||
|
||||
</select>
|
||||
<div class="invalid-feedback" id='apply-error'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% elseif subdir == "network" then %}
|
||||
|
||||
<div class='form-group'>
|
||||
<label for='apply-networks'>{{i18n("config_scripts.select_network", {}) }}:</label>
|
||||
<select multiple id='applied-networks' class='form-control'>
|
||||
|
||||
{% for cidr in pairsByKeys(interface.getNetworksStats()) do %}
|
||||
{% local label = getLocalNetworkAlias(cidr) %}
|
||||
<option value='{{cidr}}'>{{ label }}</option>
|
||||
{% end %}
|
||||
|
||||
</select>
|
||||
<div class="invalid-feedback" id='apply-error'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
|
||||
<div class='form-group'>
|
||||
<label for='input-applied'>{{i18n("config_scripts.type_targets", {}) }}:</label>
|
||||
<input type='text' id='applied-input' class='form-control'/>
|
||||
<small>{{i18n("config_scripts.type_targets_example", {}) }}</small>
|
||||
<div class="invalid-feedback" id='apply-error'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% end %}
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{i18n("cancel", {}) }}</button>
|
||||
<button type="button" id='btn-confirm-apply' class="btn btn-primary">{{i18n("apply", {}) }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue