67 lines
2.5 KiB
HTML
67 lines
2.5 KiB
HTML
{% extends 'base.html' %}
|
|
{% from 'components/combobox.html' import combobox %}
|
|
|
|
{% block styleincludes %}
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/components/combobox.css') }}">
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
<form id="settings_form" method="post">
|
|
<div class="container">
|
|
<ul class="nav nav-pills nav-fill">
|
|
<li class="nav-item">
|
|
<button type="button" class="nav-link active" id="device-tab"
|
|
data-bs-toggle="tab" data-bs-target="#device-tab-pane">Devices</button>
|
|
</li>
|
|
<li class="nav-item">
|
|
<button type="button" class="nav-link" id="location-tab"
|
|
data-bs-toggle="tab" data-bs-target="#location-tab-pane">Locations</button>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="tab-content mt-3" id="tab-settings">
|
|
|
|
<div class="tab-pane fade show active" id="device-tab-pane" tabindex="0">
|
|
<div class="row">
|
|
<div class="col">
|
|
<label for="brand" class="form-label">Brand</label>
|
|
{{ combobox('brand', 'brand', 'Enter the name of a brand.', brands, 'id', 'name') }}
|
|
</div>
|
|
<div class="col">
|
|
<label for="devicetype" class="form-label">Device Type</label>
|
|
{{ combobox('devicetype', 'devicetype', 'Enter the description of a device type.', device_types, 'id', 'description') }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-pane fade" id="location-tab-pane" tabindex="0">
|
|
<div class="row">
|
|
<div class="col">
|
|
<label for="area" class="form-label">Area</label>
|
|
{{ combobox('area', 'area', 'Enter the name of an area.', areas, 'id', 'name') }}
|
|
</div>
|
|
<div class="col">
|
|
<label for="roomfunction" class="form-label">Description</label>
|
|
{{ combobox('roomfunction', 'roomfunction', 'Enter a room description.', functions, 'id', 'description') }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mt-3">
|
|
<label for="rooms" class="form-label">
|
|
Rooms
|
|
<a href="{{ url_for('entry.entry_new', model='room') }}" class="link-success link-underline-opacity-0"><small>[+]</small></a>
|
|
</label>
|
|
<div class="col">
|
|
{{ rooms | safe }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|
|
|
|
{% block scriptincludes %}
|
|
<script src="{{ url_for('static', filename='js/components/combobox.js') }}"></script>
|
|
{% endblock %}
|