{% extends 'base.html' %}
{% block content %}

{% if bt_error %}
    <table bgcolor='#d98797'>
        <tr>
            <td>
                {{ bt_error }}
            </td>
        </tr>
    </table>
{% endif %}
<br>
    <table class="pure-table pure-table-horizontal">
    <tr>
        <th> ID </th><th> powered </th><th> Alias </th><th> MAC Address </th>
    </tr>
    {% for ctrl in bt_ctrl %}
        <tr>
            <td>{{ loop.index }}</td><td>{{ ctrl.Powered }}</td><td>{{ ctrl.Alias }}</td><td>{{ ctrl.Address }}</td>
        </tr>
    {% endfor %}
    </table>
{% endblock %}
