1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-26 08:05:22 +00:00
webvirtcloud/instances/templates/create_inst_block.html

51 lines
2.5 KiB
HTML
Raw Normal View History

2015-03-06 13:06:29 +00:00
{% load i18n %}
2015-03-03 09:34:09 +00:00
{% if request.user.is_superuser %}
2015-03-11 09:39:44 +00:00
<a href="#AddInstance" type="button" class="btn btn-success btn-header 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 13:06:29 +00:00
</a>
<!-- Modal pool -->
<div class="modal fade" id="AddInstance" 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>
2015-05-13 06:42:20 +00:00
<h4 class="modal-title">{% trans "Choose a compute for new instance" %}</h4>
2015-03-06 13:06:29 +00:00
</div>
<div class="modal-body">
2018-07-27 11:50:39 +00:00
<form class="form-horizontal" role="form"> {% csrf_token %}
2015-03-06 13:06:29 +00:00
<div class="form-group">
<label class="col-sm-4 control-label">{% trans "Compute" %}</label>
<div class="col-sm-6">
<select class="form-control" id="compute_select">
2015-05-15 17:54:55 +00:00
{% if computes %}
{% for compute in computes %}
<option value="{{ compute.id }}">{{ compute.name }}</option>
{% endfor %}
{% else %}
<option value="None">{% trans "None" %}</option>
{% endif %}
2015-03-06 13:06:29 +00:00
</select>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">
{% trans "Close" %}
</button>
2015-05-15 17:54:55 +00:00
{% if computes %}
2016-05-30 12:31:43 +00:00
<button type="submit" class="btn btn-primary" name="choose" onclick='goto_compute()'>
{% trans "Choose" %}
2015-05-15 17:54:55 +00:00
</button>
{% else %}
<button class="btn btn-primary disabled">
2016-05-30 12:31:43 +00:00
{% trans "Choose" %}
2015-05-15 17:54:55 +00:00
</button>
{% endif %}
2015-03-06 13:06:29 +00:00
</div>
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div> <!-- /.modal -->
2016-05-30 12:31:43 +00:00
{% endif %}