{% extends 'base.html.twig' %}

{% block title %}SqrData index{% endblock %}

{% block body %}
    <h1>SqrData index</h1>

    <table class="table">
        <thead>
            <tr>
                <th>Id</th>
                <th>A</th>
                <th>B</th>
                <th>C</th>
                <th>Sqr_code</th>
                <th>Approot</th>
                <th>NIU</th>
                <th>Proprietaire</th>
                <th>Document</th>
                <th>Statut</th>
                <th>Date_creation</th>
                <th>Date_modification</th>
                <th>Donnees</th>
                <th>actions</th>
            </tr>
        </thead>
        <tbody>
        {% for sqr_datum in sqr_datas %}
            <tr>
                <td>{{ sqr_datum.id }}</td>
                <td>{{ sqr_datum.A }}</td>
                <td>{{ sqr_datum.B }}</td>
                <td>{{ sqr_datum.C }}</td>
                <td>{{ sqr_datum.sqrCode }}</td>
                <td>{{ sqr_datum.approot }}</td>
                <td>{{ sqr_datum.NIU }}</td>
                <td>{{ sqr_datum.proprietaire }}</td>
                <td>{{ sqr_datum.document }}</td>
                <td>{{ sqr_datum.statut }}</td>
                <td>{{ sqr_datum.dateCreation ? sqr_datum.dateCreation|date('Y-m-d') : '' }}</td>
                <td>{{ sqr_datum.dateModification ? sqr_datum.dateModification|date('Y-m-d') : '' }}</td>
                <td>{{ sqr_datum.donnees ? sqr_datum.donnees|json_encode : '' }}</td>
                <td>
                    <a href="{{ path('app_sqr_data_show', {'id': sqr_datum.id}) }}">show</a>
                    <a href="{{ path('app_sqr_data_edit', {'id': sqr_datum.id}) }}">edit</a>
                </td>
            </tr>
        {% else %}
            <tr>
                <td colspan="14">no records found</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    <a href="{{ path('app_sqr_data_new') }}">Create new</a>
{% endblock %}
