2019-11-15 08:29:16 +00:00
|
|
|
{% load i18n %}
|
|
|
|
{% if request.user.is_superuser %}
|
2019-11-19 11:18:36 +00:00
|
|
|
<a href="#AddQos" type="button" class="btn btn-sm btn-success pull-right" data-toggle="modal" title="add qos">
|
|
|
|
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
2019-11-15 08:29:16 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<!-- Modal pool -->
|
2019-11-19 11:18:36 +00:00
|
|
|
<div class="modal fade" id="AddQos" tabindex="-1" role="dialog" aria-labelledby="AddQosLabel"
|
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">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title">{% trans "Add Inbound Qos for Network" %}</h4>
|
|
|
|
</div>
|
2019-11-15 08:44:48 +00:00
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" method="post" name="set_qos" role="form">{% csrf_token %}
|
2019-11-19 11:18:36 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 control-label">{% trans "Direction" %}:</label>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<select class="form-control" name="qos_direction">
|
|
|
|
<option value="inbound">{% trans 'Inbound' %}</option>
|
|
|
|
<option value="outbound">{% trans 'Outbound' %}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-15 08:44:48 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 control-label">{% trans "Average" %}:</label>
|
|
|
|
<div class="col-sm-6">
|
2019-11-19 11:18:36 +00:00
|
|
|
<input class="form-control" name="qos_inbound_average" placeholder="kilobytes"
|
|
|
|
required pattern="[0-9]+"/>
|
2019-11-15 08:29:16 +00:00
|
|
|
</div>
|
2019-11-15 08:44:48 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 control-label">{% trans "Peak" %}:</label>
|
|
|
|
<div class="col-sm-6">
|
2019-11-19 11:18:36 +00:00
|
|
|
<input class="form-control" name="qos_inbound_peak" placeholder="kilobytes"
|
2019-11-15 08:44:48 +00:00
|
|
|
required pattern="[0-9]+"/>
|
2019-11-15 08:29:16 +00:00
|
|
|
</div>
|
2019-11-15 08:44:48 +00:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 control-label">{% trans "Burst" %}:</label>
|
2019-11-15 08:29:16 +00:00
|
|
|
<div class="col-sm-6">
|
2019-11-19 11:18:36 +00:00
|
|
|
<input class="form-control" name="qos_inbound_burst" placeholder="kilobytes"
|
|
|
|
required pattern="[0-9]+"/>
|
2019-11-15 08:29:16 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-19 11:18:36 +00:00
|
|
|
|
2019-11-15 08:44:48 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">{% trans 'Close' %}</button>
|
|
|
|
<button type="submit" class="btn btn-primary" name="set_qos">{% trans 'Save' %}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2019-11-15 08:29:16 +00:00
|
|
|
</div>
|
|
|
|
</div> <!-- /.modal-dialog -->
|
|
|
|
</div> <!-- /.modal -->
|
|
|
|
{% endif %}
|