show.html.twig 2.37 KB
{% extends 'base.html.twig' %}

{% block body %}
    <h1>Candidato</h1>

    <table>
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ candidato.id }}</td>
            </tr>
            <tr>
                <th>Primer_nombre</th>
                <td>{{ candidato.primernombre }}</td>
            </tr>
            <tr>
                <th>Segundo_nombre</th>
                <td>{{ candidato.segundonombre }}</td>
            </tr>
            <tr>
                <th>Primer_apellido</th>
                <td>{{ candidato.primerapellido }}</td>
            </tr>
            <tr>
                <th>Segundo_apellido</th>
                <td>{{ candidato.segundoapellido }}</td>
            </tr>
            <tr>
                <th>Identificacion</th>
                <td>{{ candidato.identificacion }}</td>
            </tr>
            <tr>
                <th>Fecha_nacimiento</th>
                <td>{% if candidato.fechanacimiento %}{{ candidato.fechanacimiento|date('Y-m-d') }}{% endif %}</td>
            </tr>
            <tr>
                <th>Telefono</th>
                <td>{{ candidato.telefono }}</td>
            </tr>
            <tr>
                <th>Correo</th>
                <td>{{ candidato.correo }}</td>
            </tr>
            <tr>
                <th>Id_opsu</th>
                <td>{{ candidato.idopsu }}</td>
            </tr>
            <tr>
                <th>Ano_grado</th>
                <td>{% if candidato.anogrado %}{{ candidato.anogrado|date('Y-m-d') }}{% endif %}</td>
            </tr>
            <tr>
                <th>Trabaja</th>
                <td>{% if candidato.trabaja %}Yes{% else %}No{% endif %}</td>
            </tr>
            <tr>
                <th>Promedio_nota</th>
                <td>{{ candidato.promedionota }}</td>
            </tr>
            {# <tr>
                <th>Periodo_asignado</th>
                <td>{{ candidato.periodoasignado }}</td>
            </tr> #}
        </tbody>
    </table>

    <ul>
        <li>
            <a href="{{ path('candidato_index') }}">Back to the list</a>
        </li>
        <li>
            <a href="{{ path('candidato_edit', { 'id': candidato.id }) }}">Edit</a>
        </li>
        <li>
            {{ form_start(delete_form) }}
                <input type="submit" value="Delete">
            {{ form_end(delete_form) }}
        </li>
    </ul>
{% endblock %}