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

60 lines
3.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 %}
2020-05-19 16:53:54 +00:00
<a href="#AddSecret" type="button" class="btn btn-success float-right" data-toggle="modal">
<span class="fa fa-plus" aria-hidden="true"></span>
2015-03-06 11:59:27 +00:00
</a>
<!-- Modal Secret -->
<div class="modal fade" id="AddSecret" tabindex="-1" role="dialog" aria-labelledby="AddSecret" 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>
2020-05-19 16:53:54 +00:00
<h5 class="modal-title">{% trans "Create New Secret" %}</h5>
2015-03-06 11:59:27 +00:00
</div>
<div class="modal-body">
2020-05-19 16:53:54 +00:00
<form method="post" action="" role="form">{% csrf_token %}
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Ephemeral" %}</label>
2015-03-06 11:59:27 +00:00
<div class="col-sm-6">
<select name="ephemeral" class="form-control">
<option value="no">{% trans "no" %}</option>
<option value="yes">{% trans "yes" %}</option>
</select>
</div>
</div>
2020-05-19 16:53:54 +00:00
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Private" %}</label>
2015-03-06 11:59:27 +00:00
<div class="col-sm-6">
<select name="private" class="form-control">
<option value="no">{% trans "no" %}</option>
<option value="yes">{% trans "yes" %}</option>
</select>
</div>
</div>
2020-05-19 16:53:54 +00:00
<div class="form-group row">
<label class="col-sm-3 col-form-label">{% trans "Usage" %}</label>
2015-03-06 11:59:27 +00:00
<div class="col-sm-6">
<select name="usage_type" class="form-control">
<option value="ceph">{% trans "ceph" %}</option>
<option value="volume">{% trans "volume" %}</option>
<option value="iscsi">{% trans "iscsi" %}</option>
</select>
</div>
</div>
<div class="form-group">
2020-05-19 16:53:54 +00:00
<label class="col-sm-3 col-form-label">{% trans "Data" %}</label>
2015-03-06 11:59:27 +00:00
<div class="col-sm-6">
<input type="text" name="data" class="form-control" value="" required pattern="[a-z0-9\. ]+"/>
</div>
</div>
</div>
2015-03-06 13:06:29 +00:00
<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-06 13:06:29 +00:00
<button type="submit" class="btn btn-primary" name="create">{% trans "Create" %}</button>
</div>
</form>
2015-03-06 11:59:27 +00:00
</div> <!-- /.modal-content -->
</div> <!-- /.modal-dialog -->
</div><!-- /.modal -->
2015-03-03 09:34:09 +00:00
{% endif %}