2019-11-15 08:29:16 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% if request.user.is_superuser %}
|
2020-05-19 16:53:54 +00:00
|
|
|
<a href="#AddQos{{ id }}" type="button" class="btn btn-success float-right" data-toggle="modal" title="add qos">
|
|
|
|
<span class="fa fa-plus" aria-hidden="true"></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>
|
2019-11-15 08:29:16 +00:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
</div>
|
2019-11-15 08:44:48 +00:00
|
|
|
<div class="modal-body">
|
2020-05-19 16:53:54 +00:00
|
|
|
<div class="form-group row">
|
|
|
|
<label class="col-sm-4 col-form-label">{% trans "Direction" %}:</label>
|
2019-11-19 11:18:36 +00:00
|
|
|
<div class="col-sm-6">
|
2020-05-19 16:53:54 +00:00
|
|
|
<select class="custom-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>
|
2020-05-19 16:53:54 +00:00
|
|
|
<div class="form-group row">
|
|
|
|
<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>
|
2020-05-19 16:53:54 +00:00
|
|
|
<div class="form-group row">
|
|
|
|
<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>
|
2020-05-19 16:53:54 +00:00
|
|
|
<div class="form-group row">
|
|
|
|
<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">
|
2020-05-19 16:53:54 +00:00
|
|
|
<button type="button" class="btn btn-secondary" data-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 %}
|