44 lines
1.7 KiB
HTML
44 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
{% load manager %}
|
|
{% block content %}
|
|
|
|
<form action="#" method="post">
|
|
{% csrf_token %}
|
|
<div class="form-group">
|
|
<label for="serial">Serial Number</label>
|
|
<input type="text" class="form-control" required id="serial" name="serial" placeholder="Serial Number"></input>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="name">Device Name</label>
|
|
<input type="text" class="form-control" name="name" id="name" placeholder="Enter Device Name (Optional)"></input>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="ssid">Broadcast SSID</label>
|
|
<input type="text" class="form-control" name="ssid" id="ssid" placeholder="SSID to send, if different from Serial"></input>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="key">WPA2 Key</label>
|
|
<input type="text" class="form-control" name="key" id="key" value="exp360wifi" placeholder="WPA2 key if using encryption"></input>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="organization">Organization</label>
|
|
<select required class="custom-select mr-sm-2" id="organization" name="organization">
|
|
{% userOrgas as orgas %}
|
|
{% for choice in orgas %}
|
|
<option {% if user.userstatus.orga == choice %}selected{% endif %} value="{{ choice.id }}">{{ choice.name }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="model">Model</label>
|
|
<select required class="custom-select mr-sm-2" id="model" name="model">
|
|
{% for choice in models %}
|
|
<option value="{{ choice.id }}">{{ choice.name }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
<button type="submit" class="btn btn-success">Create Device</button>
|
|
<a class="btn btn-danger" href="/devices/" role="button">Cancel</a>
|
|
</form>
|
|
|
|
{% endblock %}
|