mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-27 00:25:22 +00:00
49 lines
No EOL
2.4 KiB
HTML
49 lines
No EOL
2.4 KiB
HTML
{% load i18n %}
|
|
{% if request.user.is_superuser %}
|
|
<a href="#AddInboundQos" type="button" class="btn btn-success pull-right" data-toggle="modal" title="add inbound qos">
|
|
<span class="glyphicon glyphicon-arrow-down" aria-hidden="true"></span>
|
|
</a>
|
|
|
|
<!-- Modal pool -->
|
|
<div class="modal fade" id="AddInboundQos" tabindex="-1" role="dialog" aria-labelledby="AddInboundQosLabel"
|
|
aria-hidden="true">
|
|
<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>
|
|
|
|
<div class="modal-body">
|
|
<form class="form-horizontal" method="post" name="set_qos" role="form">{% csrf_token %}
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label">{% trans "Average" %}:</label>
|
|
<div class="col-sm-6">
|
|
<input class="form-control" name="qos_inbound_average" required pattern="[0-9]+"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label">{% trans "Peak" %}:</label>
|
|
<div class="col-sm-6">
|
|
<input class="form-control" name="qos_inbound_peak"
|
|
required pattern="[0-9]+"/>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-4 control-label">{% trans "Burst" %}:</label>
|
|
<div class="col-sm-6">
|
|
<input class="form-control" name="qos_inbound_burst" required pattern="[0-9]+"/>
|
|
</div>
|
|
</div>
|
|
<input name="qos_direction" value="inbound" hidden/>
|
|
</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>
|
|
</div>
|
|
</div> <!-- /.modal-dialog -->
|
|
</div> <!-- /.modal -->
|
|
{% endif %} |