mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 23:55:24 +00:00
60 lines
No EOL
3.4 KiB
HTML
60 lines
No EOL
3.4 KiB
HTML
{% load i18n %}
|
|
{% if request.user.is_superuser %}
|
|
<a href="#AddSecret" type="button" class="btn btn-success float-right" data-toggle="modal">
|
|
<span class="fa fa-plus" aria-hidden="true"></span>
|
|
</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">×</button>
|
|
<h5 class="modal-title">{% trans "Create New Secret" %}</h5>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form method="post" action="" role="form" aria-label="Create Secret form">{% csrf_token %}
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label">{% trans "Ephemeral" %}</label>
|
|
<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>
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label">{% trans "Private" %}</label>
|
|
<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>
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label">{% trans "Usage" %}</label>
|
|
<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">
|
|
<label class="col-sm-3 col-form-label">{% trans "Data" %}</label>
|
|
<div class="col-sm-6">
|
|
<input type="text" name="data" class="form-control" value="" required pattern="[a-z0-9\. ]+"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
|
|
<button type="submit" class="btn btn-primary" name="create">{% trans "Create" %}</button>
|
|
</div>
|
|
</form>
|
|
</div> <!-- /.modal-content -->
|
|
</div> <!-- /.modal-dialog -->
|
|
</div><!-- /.modal -->
|
|
{% endif %} |