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

61 lines
3.3 KiB
HTML
Raw Normal View History

2015-03-06 13:46:59 +00:00
{% load i18n %}
{% if request.user.is_superuser %}
2020-05-19 16:53:54 +00:00
<button href="#addFlavor" type="button" class="btn btn-success btn-header float-right" data-toggle="modal">
<span class="fa fa-plus" aria-hidden="true"></span>
</button>
2015-03-06 13:46:59 +00:00
<!-- Modal Flavor -->
<div class="modal fade" id="addFlavor" tabindex="-1" role="dialog" aria-labelledby="addFlavorLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">{% trans "Add New Flavor" %}</h4>
2020-05-19 16:53:54 +00:00
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
2015-03-06 13:46:59 +00:00
</div>
<div class="modal-body">
2020-05-19 16:53:54 +00:00
<form method="post" role="form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Name" %}</label>
2015-03-06 13:46:59 +00:00
<div class="col-sm-6">
<input type="text" name="label" class="form-control" placeholder="Micro" maxlength="20"
required pattern="[a-zA-Z0-9]+">
</div>
</div>
2020-05-19 16:53:54 +00:00
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "VCPU" %}</label>
2015-03-06 13:46:59 +00:00
<div class="col-sm-6">
<input type="text" class="form-control" name="vcpu" value="1" maxlength="1" required
pattern="[0-9]">
</div>
</div>
2020-05-19 16:53:54 +00:00
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "RAM" %}</label>
2015-03-06 13:46:59 +00:00
<div class="col-sm-6">
<input type="text" class="form-control" name="memory" value="512" maxlength="5" required
pattern="[0-9]+">
</div>
2020-05-19 16:53:54 +00:00
<label class="col-sm-1 col-form-label">{% trans "MB" %}</label>
2015-03-06 13:46:59 +00:00
</div>
2020-05-19 16:53:54 +00:00
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "HDD" %}</label>
2015-03-06 13:46:59 +00:00
<div class="col-sm-6">
<input type="text" class="form-control" name="disk" value="10" maxlength="3" required
pattern="[0-9]+">
</div>
2020-05-19 16:53:54 +00:00
<label class="col-sm-1 col-form-label">{% trans "GB" %}</label>
2015-03-06 13:46:59 +00:00
</div>
</div>
<div class="modal-footer">
2020-05-19 16:53:54 +00:00
<button type="button" class="btn btn-secondary" data-dismiss="modal">
2015-03-06 13:46:59 +00:00
{% trans "Close" %}
</button>
<button type="submit" class="btn btn-primary" name="create_flavor">
{% trans "Add" %}
</button>
</div>
</form>
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div> <!-- /.modal -->
{% endif %}