vpnmanager/templates/manager/addwifi.html

33 lines
1.2 KiB
HTML
Raw Normal View History

2018-12-28 09:43:57 +00:00
{% extends "base.html" %}
2019-02-01 20:28:37 +00:00
{% load manager %}
2018-12-28 09:43:57 +00:00
{% 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">
2019-02-01 20:28:37 +00:00
{% userOrgas as organizations %}
2018-12-28 09:43:57 +00:00
{% for choice in organizations %}
<option {% if user.userstatus.orga == choice %}selected{% endif %} value="{{ choice.id }}">{{ choice.name }}</option>
2018-12-28 09:43:57 +00:00
{% endfor %}
</select>
</div>
<button type="submit" class="btn btn-success">Create WiFi</button>
<a class="btn btn-danger" href="/wifi/" role="button">Cancel</a>
2018-12-28 09:43:57 +00:00
</form>
{% endblock %}