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

{% block title %}Identification index{% endblock %}

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

    <table class="table">
        <thead>
            <tr>
                <th>Id</th>
                <th>Name</th>
                <th>Status</th>
                <th>DateCreated</th>
                <th>DateIdentified</th>
                <th>actions</th>
            </tr>
        </thead>
        <tbody>
        {% for identification in identifications %}
            <tr>
                <td>{{ identification.id }}</td>
                <td>{{ identification.name }}</td>
                <td>{{ identification.status }}</td>
                <td>{{ identification.dateCreated ? identification.dateCreated|date('Y-m-d H:i:s') : '' }}</td>
                <td>{{ identification.dateIdentified ? identification.dateIdentified|date('Y-m-d H:i:s') : '' }}</td>
                <td>
                    <a href="{{ path('app_identification_show', {'id': identification.id}) }}">show</a>
                    <a href="{{ path('app_identification_edit', {'id': identification.id}) }}">edit</a>
                </td>
            </tr>
        {% else %}
            <tr>
                <td colspan="6">no records found</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

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