index.html.twig 4.61 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;
<<<<<<< HEAD
                    Agregar
                  </button>
                </a>
                <a href="{{ path('ambiente_new') }}">
=======
                    Agregar Nuevo Candidato
                  </button>
                </a>
                <a href="{{ path('candidato_new') }}">
>>>>>>> 0fb5c794c98b176e258390c68689e4115d21b25e
                  <button type="button" class="btn btn-primary mrs"><i
                      class="fa fa-filter"></i>&nbsp; Filtrar Lista
                  </button>
                </a>
<<<<<<< HEAD
                <a href="{{ path('ambiente_new') }}">
=======
                <a href="{{ path('candidato_new') }}">
>>>>>>> 0fb5c794c98b176e258390c68689e4115d21b25e
                  <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>
<<<<<<< HEAD
                <th>Promedio Nota</th>
                <th>Periodo Asignado</th>
                <th>Actions</th>
=======
                <th>Promedio_nota</th>
                <th>Acciones</th>
>>>>>>> 0fb5c794c98b176e258390c68689e4115d21b25e
            </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') }}{% 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>

<<<<<<< HEAD
    <ul>
        
    </ul>
=======
    
>>>>>>> 0fb5c794c98b176e258390c68689e4115d21b25e
{% endblock %}