vpnmanager/templates/manager/addwifi.html

32 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% load manager %}
{% block content %}
<form action="#" method="post">
{% csrf_token %}
<div class="form-group">
<label for="serial">Common Name (Serial)</label>
<input type="text" class="form-control" required id="serial" name="serial" placeholder="Common Name (Serial)"></input>
</div>
<div class="form-group">
<label for="ssid">WiFi SSID</label>
<input type="text" class="form-control" name="ssid" id="ssid" required placeholder="WiFi SSID"></input>
</div>
<div class="form-group">
<label for="key">WiFi WPA2 Key</label>
<input type="text" class="form-control" name="key" id="key" required placeholder="WiFi Key"></input>
</div>
<div class="form-group">
<label for="organization">Organization</label>
<select class="custom-select mr-sm-2" id="organization" name="organization">
{% userOrgas as organizations %}
{% for choice in organizations %}
<option {% if user.userstatus.orga == choice %}selected{% endif %} value="{{ choice.id }}">{{ choice.name }}</option>
{% endfor %}
</select>
</div>
<button type="submit" class="btn btn-success">Create WiFi</button>
<a class="btn btn-danger" href="/wifi/" role="button">Cancel</a>
</form>
{% endblock %}