1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-26 16:15:25 +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 %}
2020-05-19 16:53:54 +00:00
<a href="#addUserInst" type="button" class="btn btn-success btn-header float-right" data-toggle="modal">
<span class="fa fa-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">
2020-05-19 16:53:54 +00:00
<h5 class="modal-title">{% trans "Add Instance for User" %}</h5>
2015-03-11 09:39:44 +00:00
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
2020-05-26 13:18:38 +00:00
<form method="post" action="" role="form" aria-label="Add user instance 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 "Host" %} / {% trans "Instance" %}</label>
2015-03-11 09:39:44 +00:00
<div class="col-sm-6">
2020-05-19 16:53:54 +00:00
<select class="custom-select" name="inst_id">
2015-03-11 09:39:44 +00:00
{% for inst in instances %}
<option value="{{ inst.id }}">{{ inst.compute.name }} / {{ inst.name }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
<div class="modal-footer">
2020-05-19 16:53:54 +00:00
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
2015-03-11 09:39:44 +00:00
<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 %}