32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
|
{% extends "base.html" %}
|
||
|
|
||
|
{% 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">
|
||
|
{% for choice in organizations %}
|
||
|
<option 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="/" role="button">Cancel</a>
|
||
|
</form>
|
||
|
|
||
|
{% endblock %}
|