You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.8 KiB
HTML
48 lines
1.8 KiB
HTML
{% extends 'account_layout.html' %}
|
|
{% load static %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}WireGuard - {% trans "New Device" %}{% endblock %}
|
|
{% block account_content %}
|
|
<h2>WireGuard - {% trans "New Device" %}</h2>
|
|
|
|
<form method="post" class="pure-form pure-form-aligned">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="action" value="add_key" />
|
|
|
|
<fieldset>
|
|
<div class="pure-control-group">
|
|
<label for="name">{% trans 'Name' %}</label>
|
|
<input type="text" name="name" id="name"
|
|
placeholder="{% trans "Name" %}"
|
|
class="pure-input-1-2" />
|
|
<p class="inputinfo">
|
|
{% trans 'Used to identify the device in your account.' %}
|
|
</p>
|
|
</div>
|
|
|
|
<div class="pure-control-group">
|
|
<label for="public_key">{% trans 'Public Key' %}</label>
|
|
<input type="text" name="public_key" id="public_key"
|
|
placeholder="{% trans "Public key (base64)" %}"
|
|
class="pure-input-1-2" />
|
|
<p class="inputinfo">
|
|
<b>{% trans 'Optional.' %}</b>
|
|
{% trans 'Use an existing public key. Leave empty to generate a new one.' %}
|
|
</p>
|
|
</div>
|
|
|
|
<div class="pure-controls">
|
|
<label for="p_ipv6" class="pure-checkbox">
|
|
<input type="checkbox" name="enable_ipv6" id="p_ipv6" checked />
|
|
{% trans 'Enable IPv6?' %}
|
|
</label>
|
|
|
|
<input type="submit" class="pure-button pure-button-primary"
|
|
value="{% trans 'Create Key' %}" />
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
{% endblock %}
|
|
|