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

{% block title %}PersonCivil index{% endblock %}

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

    <table class="table">
        <thead>
            <tr>
                <th>Id</th>
                <th>DateCreated</th>
                <th>actions</th>
            </tr>
        </thead>
        <tbody>
        {% for person_civil in person_civils %}
            <tr>
                <td>{{ person_civil.id }}</td>
                <td>{{ person_civil.dateCreated ? person_civil.dateCreated|date('Y-m-d H:i:s') : '' }}</td>
                <td>
                    <a href="{{ path('app_person_civil_show', {'id': person_civil.id}) }}">show</a>
                    <a href="{{ path('app_person_civil_edit', {'id': person_civil.id}) }}">edit</a>
                </td>
            </tr>
        {% else %}
            <tr>
                <td colspan="3">no records found</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

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