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

{% block title %}Inscricao index{% endblock %}

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

    <table class="table">
        <thead>
            <tr>
                <th>Id</th>
                <th>NomeFormando</th>
                <th>NumBi</th>
                <th>DataInscricao</th>
                <th>Telemovel</th>
                <th>CodigoInscricao</th>
                <th>actions</th>
            </tr>
        </thead>
        <tbody>
        {% for inscricao in inscricaos %}
            <tr>
                <td>{{ inscricao.id }}</td>
                <td>{{ inscricao.nomeFormando }}</td>
                <td>{{ inscricao.numBi }}</td>
                <td>{{ inscricao.dataInscricao ? inscricao.dataInscricao|date('Y-m-d H:i:s') : '' }}</td>
                <td>{{ inscricao.telemovel }}</td>
                <td>{{ inscricao.codigoInscricao }}</td>
                <td>
                    <a href="{{ path('app_inscricao_show', {'id': inscricao.id}) }}">show</a>
                    <a href="{{ path('app_inscricao_edit', {'id': inscricao.id}) }}">edit</a>
                </td>
            </tr>
        {% else %}
            <tr>
                <td colspan="7">no records found</td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

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