index.html.twig 1.75 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>Bancos list</h1>
    <h2>Listado Varibles </h2>

    
    <table class="table table-bordered">
        <thead>
            <tr>
                <th> Id</th>
                <th> Descripcion </th>
                <th> Codigo </th>
                <th> Actions</th>
                 
            </tr>
            </thead>
        <tbody>
        {% for banco in bancos %}
            <tr>
                <td><a href="{{ path('banco_show', { 'id': banco.id }) }}">{{ banco.id }}</a></td>
                <td>{{ banco.descripcion  | capitalize }}</td>
                <td>{{ banco.codigo }}</td>
                <td>
                    <ul>
                        <li>
                            <a href="{{ path('banco_show', { 'id': banco.id   }) }}"><span class="glyphicon glyphicon-eye-open"></span></a><span 
                        </li>
                        <li>
                        
                            <a href="{{ path('banco_edit', { 'id': banco.id }) }}"> <span class="glyphicon glyphicon-pencil"></spa.glyphicon-pencil</a><span 
 


                        </li>
                    </ul>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    <ul>
        <li>
   

            <a class="btn btn-default" href="{{ path('banco_new') }}">Create a new banco</a>                   
         
        </li>
    </ul>
{% endblock %}