2019-11-15 08:29:16 +00:00
|
|
|
{% load i18n %}
|
2023-08-09 06:20:18 +00:00
|
|
|
{% load bootstrap_icons %}
|
2019-11-15 08:29:16 +00:00
|
|
|
{% if request.user.is_superuser %}
|
2021-07-07 11:12:38 +00:00
|
|
|
<a href="#AddQos{{ id }}" type="button" class="btn btn-sm btn-success float-end" data-bs-toggle="modal" title="add qos">
|
2023-08-09 06:20:18 +00:00
|
|
|
<span aria-hidden="true">{% bs_icon 'qr-code' %} </span>
|
2019-11-15 08:29:16 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- Modal pool -->
|
2020-01-08 08:25:13 +00:00
|
|
|
<div class="modal fade" id="AddQos{{ id }}" tabindex="-1" role="dialog" aria-labelledby="AddQosLabel{{ id }}"
|
2019-11-15 08:44:48 +00:00
|
|
|
aria-hidden="true">
|
2019-11-15 08:29:16 +00:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2020-05-20 13:18:27 +00:00
|
|
|
<h5 class="modal-title">{% trans "Add QoS for Network" %}</h5>
|
2021-07-07 11:12:38 +00:00
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
2019-11-15 08:29:16 +00:00
|
|
|
</div>
|
2019-11-15 08:44:48 +00:00
|
|
|
<div class="modal-body">
|
2021-07-07 11:12:38 +00:00
|
|
|
<div class="row">
|
2020-05-19 16:53:54 +00:00
|
|
|
<label class="col-sm-4 col-form-label">{% trans "Direction" %}:</label>
|
2019-11-19 11:18:36 +00:00
|
|
|
<div class="col-sm-6">
|
2021-07-07 11:12:38 +00:00
|
|
|
<select class="form-select" name="qos_direction">
|
2019-11-19 11:18:36 +00:00
|
|
|
<option value="inbound">{% trans 'Inbound' %}</option>
|
|
|
|
<option value="outbound">{% trans 'Outbound' %}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-07 11:12:38 +00:00
|
|
|
<div class="row">
|
2020-05-19 16:53:54 +00:00
|
|
|
<label class="col-sm-4 col-form-label">{% trans "Average" %}:</label>
|
2019-11-15 08:44:48 +00:00
|
|
|
<div class="col-sm-6">
|
2020-06-10 12:16:58 +00:00
|
|
|
<input class="form-control" name="qos_average" placeholder="{% trans "kilobytes" %}"
|
2019-11-19 11:18:36 +00:00
|
|
|
required pattern="[0-9]+"/>
|
2019-11-15 08:29:16 +00:00
|
|
|
</div>
|
2019-11-15 08:44:48 +00:00
|
|
|
</div>
|
2021-07-07 11:12:38 +00:00
|
|
|
<div class="row">
|
2020-05-19 16:53:54 +00:00
|
|
|
<label class="col-sm-4 col-form-label">{% trans "Peak" %}:</label>
|
2019-11-15 08:44:48 +00:00
|
|
|
<div class="col-sm-6">
|
2020-06-10 12:16:58 +00:00
|
|
|
<input class="form-control" name="qos_peak" placeholder="{% trans "kilobytes" %}"
|
2019-11-20 05:37:59 +00:00
|
|
|
pattern="[0-9]+"/>
|
2019-11-15 08:29:16 +00:00
|
|
|
</div>
|
2019-11-15 08:44:48 +00:00
|
|
|
</div>
|
2021-07-07 11:12:38 +00:00
|
|
|
<div class="row">
|
2020-05-19 16:53:54 +00:00
|
|
|
<label class="col-sm-4 col-form-label">{% trans "Burst" %}:</label>
|
2019-11-15 08:29:16 +00:00
|
|
|
<div class="col-sm-6">
|
2020-06-10 12:16:58 +00:00
|
|
|
<input class="form-control" name="qos_burst" placeholder="{% trans "kilobytes" %}"
|
2019-11-20 05:37:59 +00:00
|
|
|
pattern="[0-9]+"/>
|
2019-11-15 08:29:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-15 08:44:48 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2021-07-07 11:12:38 +00:00
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{% trans 'Close' %}</button>
|
2019-11-15 08:44:48 +00:00
|
|
|
<button type="submit" class="btn btn-primary" name="set_qos">{% trans 'Save' %}</button>
|
|
|
|
</div>
|
2019-11-15 08:29:16 +00:00
|
|
|
</div>
|
|
|
|
</div> <!-- /.modal-dialog -->
|
|
|
|
</div> <!-- /.modal -->
|
|
|
|
{% endif %}
|