1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-27 00:25:22 +00:00
webvirtcloud/networks/templates/create_net_block.html

73 lines
4.4 KiB
HTML
Raw Normal View History

2015-03-06 11:59:27 +00:00
{% load i18n %}
2015-03-03 09:34:09 +00:00
{% if request.user.is_superuser %}
2015-03-06 11:59:27 +00:00
<a href="#AddNetPool" type="button" class="btn btn-success pull-right" data-toggle="modal">
2015-03-03 09:34:09 +00:00
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
2015-03-06 11:59:27 +00:00
</a>
<!-- Modal pool -->
<div class="modal fade" id="AddNetPool" tabindex="-1" role="dialog" aria-labelledby="AddNetPoolLabel" 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">&times;</button>
<h4 class="modal-title">{% trans "Add New Network" %}</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" method="post" action="" role="form" novalidate>{% csrf_token %}
2015-03-06 11:59:27 +00:00
<div class="form-group">
<label class="col-sm-4 control-label">{% trans "Name" %}</label>
<div class="col-sm-6">
<input type="text" class="form-control" name="name" placeholder="default" required pattern="[a-zA-Z0-9_]+">
</div>
</div>
<div class="form-group bridge_name_form_group_dhcp">
<label class="col-sm-4 control-label">{% trans "Subnet pool" %}</label>
<div class="col-sm-6">
<input type="text" class="form-control" name="subnet" value="192.168.100.0/24" required pattern="[0-9\/\.]+">
</div>
</div>
<div class="form-group bridge_name_form_group_dhcp">
<label class="col-sm-4 control-label">{% trans "DHCPv4" %}</label>
2015-03-06 11:59:27 +00:00
<div class="col-sm-6">
<input type="checkbox" name="dhcp4" value="true" checked>
2015-03-06 11:59:27 +00:00
</div>
</div>
<div class="form-group bridge_name_form_group_dhcp">
<label class="col-sm-4 control-label">{% trans "Fixed Address" %}</label>
<div class="col-sm-6">
<input type="checkbox" name="fixed" value="true">
</div>
</div>
<div class="form-group">
<label class="col-sm-4 control-label">{% trans "Type forwarding" %}</label>
<div class="col-sm-6">
<select id="forward_select" class="form-control" name="forward">
<option value="nat">{% trans "NAT" %}</option>
<option value="route">{% trans "ROUTE" %}</option>
<option value="none">{% trans "ISOLATE" %}</option>
<option value="bridge">{% trans "BRIDGE" %}</option>
</select>
</div>
</div>
<div class="form-group bridge_name_form_group">
<label class="col-sm-4 control-label">{% trans "Bridge Name" %}</label>
<div class="col-sm-6">
2015-04-21 12:58:56 +00:00
<input type="text" class="form-control" name="bridge_name" placeholder="br0" pattern="[a-z0-9\-_:]+">
2015-03-06 11:59:27 +00:00
</div>
</div>
<div class="form-group bridge_name_form_group">
<label class="col-sm-4 control-label">{% trans "Open vSwitch" %}</label>
<div class="col-sm-6">
<input type="checkbox" name="openvswitch" value="true">
</div>
</div>
</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="create">{% trans "Create" %}</button>
</div>
</form>
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div> <!-- /.modal -->
2015-03-03 09:34:09 +00:00
{% endif %}