{% extends "base.html" %} {% block title %}LabRat Setup{% endblock %} {% block content %}

LabRat Setup

Logging

{{ set_mess }} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}

Logger Configuration

{{ logger_form.hidden_tag() }}

{{ logger_form.logger_type.label }} {{ logger_form.logger_type() }}

{% if config_form %} {% include "_logger_config_form.html" %} {% endif %}

Device Configuration

{{ device_form.hidden_tag() }}
{% for device in device_form.devices %}

Device {{ loop.index }}

{% for field in device %} {% if field.name not in ['csrf_token', 'sensors', 'controls'] %}

{{ field.label }} {{ field() }} {% for error in field.errors %} {{ error }} {% endfor %}

{% endif %} {% endfor %}
{% for sensor in device.sensors %}

Sensor {{ loop.index }}

{% for field in sensor %} {% if field.name != "csrf_token" %}

{{ field.label }} {{ field() }}

{% endif %} {% endfor %}
{% endfor %}
{% for control in device.controls %}

Control {{ loop.index }}

{% for field in control %} {% if field.name != "csrf_token" %}

{{ field.label }} {{ field() }}

{% endif %} {% endfor %}
{% endfor %}
{% endfor %}

{{ device_form.submit(class="primary-btn") }}

{% if config.QUICK_START %} {% endif %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}