index.html.twig 4.02 KB
{% extends "UBVPrincipalBundle::inicio.html.twig" %}

{% block contenido %}
    <h1>Lista de Candidatos</h1>

      <div class="row">
    <div class="col-lg-12">
      <div class="portlet">
        <div class="portlet-header">
          <div class="caption">Listado de Candidatos</div>
        </div>
        <div class="portlet-body">
          <div class="table-tools">
            <div class="row">
              <div class="col-lg-4">
                <a href="{{ path('candidato_new') }}">
                  <button type="button" class="btn btn-red mrs"><i class="fa fa-plus"></i>&nbsp;
                    Agregar Nuevo Candidato
                  </button>
                </a>
                <a href="{{ path('candidato_new') }}">
                  <button type="button" class="btn btn-primary mrs"><i
                      class="fa fa-filter"></i>&nbsp; Filtrar Lista
                  </button>
                </a>
                <a href="{{ path('candidato_new') }}">
                  <button type="button" class="btn btn-default mrs"><i
                      class="fa fa-print"></i>&nbsp; Imprimir
                  </button>
                </a>
              </div>
              <div class="col-lg-3 pull-right">
                <div class="form-inline pull-right">
                  <div class="form-group"><label class="control-label">Buscar:</label>&nbsp;<input
                      type="text" class="form-control"/></div>
                </div>
              </div>
            </div>
          </div>
          <div class="table-responsive mtl">
            <table class="table table-striped table-bordered table-hover">
        <thead>
            <tr>
                <th>Id</th>
                <th>Primer_nombre</th>
                <th>Segundo_nombre</th>
                <th>Primer_apellido</th>
                <th>Segundo_apellido</th>
                <th>Identificacion</th>
                <th>Fecha_nacimiento</th>
                <th>Telefono</th>
                <th>Correo</th>
                <th>Id_opsu</th>
                <th>Ano_grado</th>
                <th>Trabaja</th>
                <th>Promedio_nota</th>
                <th>Acciones</th>
            </tr>
        </thead>
        <tbody>
        {% for candidato in candidatos %}
            <tr>
                <td><a href="{{ path('candidato_show', { 'id': candidato.id }) }}">{{ candidato.id }}</a></td>
                <td>{{ candidato.primernombre }}</td>
                <td>{{ candidato.segundonombre }}</td>
                <td>{{ candidato.primerapellido }}</td>
                <td>{{ candidato.segundoapellido }}</td>
                <td>{{ candidato.identificacion }}</td>
                <td>{% if candidato.fechanacimiento %}{{ candidato.fechanacimiento|date('d-m-Y') }}{% endif %}</td>
                <td>{{ candidato.telefono }}</td>
                <td>{{ candidato.correo }}</td>
                <td>{{ candidato.idopsu }}</td>
                <td>{% if candidato.anogrado %}{{ candidato.anogrado|date('Y-m-d') }}{% endif %}</td>
                <td>{% if candidato.trabaja %}Yes{% else %}No{% endif %}</td>
                <td>{{ candidato.promedionota }}</td>
                <td>
                    <ul>
                        <li>
                          <a href="{{ path('candidato_show', { 'id': candidato.id }) }}"><span title="Mostrar"class="glyphicon glyphicon-eye-open"></span></a>&nbsp;
                        </li>
                        <li>
                            <a href="{{ path('candidato_edit', { 'id': candidato.id }) }}"><span title="Editar"class="glyphicon text-warning glyphicon-edit"></span></a>&nbsp;
                        </li>
                        <li>
                           <a href="{{ path('candidato_delete', { 'id': candidato.id }) }}"><span title="Borrar" class="glyphicon text-danger glyphicon-trash"></span></a>&nbsp;
                     </li>
                    </td>
                        </li>
                    </ul>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>

    
{% endblock %}