index.html.twig 1.97 KB
{% extends 'base.html.twig' %}

{% block body %}

{% for type, flashMessage in app.session.flashbag.all() %}
<div class="alert alert-{{ type }} fade in">
<button class="close" data-dismiss="alert" type="button">×</button>
{% if flashMessage.title is defined %}
<strong>{{ flashMessage.title }}</strong>
{{ flashMessage.message }}
{% else %}
{{ type }}
{% endif %}
</div>
{% endfor %}

    <h1>Lista de Pruebaeds</h1>

    <a class="btn btn-default" role="button" href="{{ path('pruebaed_new') }}"> <span class="glyphicon glyphicon-plus"> Agregar </span> </a>

    <table class="table table-hover">
        <thead>
            <tr>
                <th>Id</th>
                <th>Nombre</th>
                <th>Apellido</th>
                <th>Cedula</th>
                <th>Edad</th>
                <th>Direccion</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
        {% for pruebaed in pruebaeds %}
            <tr>
                <td><a href="{{ path('pruebaed_show', { 'id': pruebaed.id }) }}">{{ pruebaed.id }}</a></td>
                <td>{{ pruebaed.nombre }}</td>
                <td>{{ pruebaed.apellido }}</td>
                <td><a href="{{ path('pruebaed_show', { 'id': pruebaed.id }) }}">{{ pruebaed.cedula }}</td>
                <td>{{ pruebaed.edad }}</td>
                <td>{{ pruebaed.direccion }}</td>
                <td>
                    <ul>
                        
                            <a class="btn btn-default" role="button" href="{{ path('pruebaed_show', { 'id': pruebaed.id }) }}"><span class="glyphicon glyphicon-eye-open"></span></a>
                        
                            <a class="btn btn-default" role="button" href="{{ path('pruebaed_edit', { 'id': pruebaed.id }) }}"><span class="glyphicon glyphicon-pencil"></span></a>
                        
                    </ul>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    <ul>
        
    </ul>
{% endblock %}