2016-08-09 00:16:01 +00:00
|
|
|
{% extends "panel.html.twig" %}
|
2016-04-03 13:10:16 +00:00
|
|
|
|
|
|
|
{% block head %}
|
|
|
|
{{ parent() }}
|
2016-06-02 00:02:14 +00:00
|
|
|
|
2016-08-09 00:16:01 +00:00
|
|
|
<script src="/js/jquery.min.js"></script>
|
2016-04-03 13:10:16 +00:00
|
|
|
<script src="/js/forge.min.js"></script>
|
2016-04-05 00:19:21 +00:00
|
|
|
<script src="/js/jszip.min.js"></script>
|
|
|
|
<script src="/js/FileSaver.min.js"></script>
|
2016-08-09 00:16:01 +00:00
|
|
|
<script src="/js/pages/certificates/new.js"></script>
|
|
|
|
|
2016-04-05 00:19:21 +00:00
|
|
|
{% endblock %}
|
2016-04-03 13:10:16 +00:00
|
|
|
|
2016-08-09 00:16:01 +00:00
|
|
|
{% block panel_contents %}
|
|
|
|
<h1>Create certificate</h1>
|
|
|
|
<form action="/panel/certificates/new" method="post">
|
|
|
|
<input type="hidden" id="user-input" value="{{ user.getUsername() }}">
|
|
|
|
<div class="row">
|
|
|
|
<label for="name">Name</label>
|
|
|
|
<input type="text" id="name" name="name">
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label for="has-password">Add password?</label>
|
|
|
|
<input type="checkbox" id="has-password" name="has-password">
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label for="password">Password</label>
|
|
|
|
<input type="password" disabled id="password" name="password">
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<label for="save-online">Save private key online?</label>
|
|
|
|
<input type="checkbox" disabled name="save-online" id="save-online">
|
|
|
|
</div>
|
2016-04-03 13:10:16 +00:00
|
|
|
<div class="row">
|
2016-08-09 00:16:01 +00:00
|
|
|
<button id="create-csr" type="button">Create</button>
|
2016-04-05 00:19:21 +00:00
|
|
|
</div>
|
2016-08-09 00:16:01 +00:00
|
|
|
</form>
|
2016-04-03 13:10:16 +00:00
|
|
|
{% endblock %}
|