1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 12:04:15 +00:00
webvirtcloud/instances/templates/add_instance_network_block.html

57 lines
3.2 KiB
HTML
Raw Normal View History

2018-08-28 08:55:27 +00:00
{% load i18n %}
{% if request.user.is_superuser %}
2020-05-19 16:53:54 +00:00
<a href="#addInstanceNetwork" type="button" class="btn btn-success float-right" data-toggle="modal">
<span class="fa fa-plus" aria-hidden="true"></span>
2018-08-28 08:55:27 +00:00
</a>
<!-- Modal pool -->
<div class="modal fade" id="addInstanceNetwork" tabindex="-1" role="dialog" aria-labelledby="addInstanceNetworkLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
2020-05-19 16:53:54 +00:00
<h5 class="modal-title">{% trans "Add Instance Network" %}</h5>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
2018-08-28 08:55:27 +00:00
</div>
<div class="modal-body">
2020-05-26 13:18:38 +00:00
<form method="post" action="" role="form" aria-label="Add instance network form">{% csrf_token %}
2020-05-19 16:53:54 +00:00
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "MAC" %}</label>
2018-08-28 08:55:27 +00:00
<div class="col-sm-6">
<input type="text" class="form-control" name="add-net-mac">
</div>
</div>
2020-05-19 16:53:54 +00:00
<div class="form-group row">
<label class="col-sm-4 col-form-label">{% trans "Network" %}</label>
2018-08-28 08:55:27 +00:00
<div class="col-sm-6">
<select class="form-control" name="add-net-network">
{% for c_net in networks_host %}
<option value="net:{{ c_net }}">Network {{ c_net }}</option>
{% endfor %}
{% for c_iface in interfaces_host %}
<option value="iface:{{ c_iface }}">Interface {{ c_iface }}</option>
2018-08-28 08:55:27 +00:00
{% endfor %}
</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 "NWFilter" %}</label>
<div class="col-sm-6">
<select class="form-control" name="add-net-nwfilter">
<option value="">{% trans "None" %}</option>
{% for nwfilter in nwfilters_host %}
<option value="{{ nwfilter }}">{{ nwfilter }}</option>
{% endfor %}
</select>
</div>
2018-08-28 08:55:27 +00:00
</div>
</div>
2020-05-19 16:53:54 +00:00
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
<button type="submit" class="btn btn-primary" name="add_network">{% trans "Add" %}</button>
</div>
</form>
2018-08-28 08:55:27 +00:00
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div> <!-- /.modal -->
{% endif %}