1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-27 08:35:22 +00:00
webvirtcloud/accounts/templates/create_user_inst_block.html

36 lines
1.9 KiB
HTML
Raw Normal View History

2015-03-11 09:39:44 +00:00
{% load i18n %}
2015-03-10 14:24:10 +00:00
{% if request.user.is_superuser %}
2015-03-11 09:39:44 +00:00
<a href="#addUserInst" type="button" class="btn btn-success pull-right" data-toggle="modal">
2015-03-10 14:24:10 +00:00
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
2015-03-11 09:39:44 +00:00
</a>
<!-- Modal pool -->
<div class="modal fade" id="addUserInst" tabindex="-1" role="dialog" aria-labelledby="addUserInstLabel" 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 Instance for User" %}</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" method="post" action="" role="form">{% csrf_token %}
<div class="form-group">
<label class="col-sm-4 control-label">{% trans "Host / Instance" %}</label>
<div class="col-sm-6">
<select class="form-control" name="inst_id">
{% for inst in instances %}
<option value="{{ inst.id }}">{{ inst.compute.name }} / {{ inst.name }}</option>
{% endfor %}
</select>
</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="add">{% trans "Add" %}</button>
</div>
</form>
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div> <!-- /.modal -->
2015-03-10 14:24:10 +00:00
{% endif %}