{% extends 'generic/object.html' %}
{% load render_table from django_tables2 %}

{% block content %}
<div class="row mb-3">
    <div class="col col-md-6">
        <div class="card">
            <h5 class="card-header">Sensor</h5>
            <div class="card-body">
                <table class="table table-hover attr-table">
                    <tr>
                        <th scope="row">Name</th>
                        <td>{{ object.name }}</td>
                    </tr>
                    <tr>
                        <th scope="row">Device</th>
                        <td>
                            <a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        {% include 'inc/panels/custom_fields.html' %}
        {% include 'inc/panels/tags.html' %}
        {% include 'inc/panels/comments.html' %}
    </div>
    <div class="col col-md-6">
        <div class="card">
            <h5 class="card-header">Details</h5>
            <div class="card-body">
                <table class="table table-hover attr-table">
                    <tr>
                        <th scope="row">Customer ID</th>
                        <td>{{ object.customer_id|placeholder }}
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Serial nb.</th>
                        <td>{{ object.serial|placeholder }}</td>
                    </tr>
                    <tr>
                        <th scope="row">Icon</th>
                        <td>{{ object.icon|placeholder }}</td>
                    </tr>
                    <tr>
                        <th scope="row">Sensitivity code (SC)</th>
                        <td>{{ object.sensitivity_code|placeholder }}</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
<div class="row">
    <div class="col col-md-12">
        <div class="card">
            <h5 class="card-header">Sensor types</h5>
            <div class="card-body sensor_types_table">
                {% render_table sensor_types_table %}
            </div>
        </div>
    </div>
</div>
<div class="row">
    <div class="col col-md-12">
        <div class="card">
            <h5 class="card-header">Transducers</h5>
            <div class="card-body transducer_table">
                {% render_table transducer_table %}
            </div>
        </div>
    </div>
</div>
{% endblock content %}