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

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

    <table>
        <tbody>
            <tr>
                <th>Id</th>
                <td>{{ candidato.id }}</td>
            </tr>
            <tr>
                <th>Nombre</th>
                <td>{{ candidato.nombre }}</td>
            </tr>
            <tr>
                <th>Apellido</th>
                <td>{{ candidato.apellido }}</td>
            </tr>
            <tr>
                <th>Cedula</th>
                <td>{{ candidato.cedula }}</td>
            </tr>
            <tr>
                <th>Activo</th>
                <td>{% if candidato.activo %}Yes{% else %}No{% endif %}</td>
            </tr>
            <tr>
                <th>Instruccion</th>
                <td>{{ candidato.instruccion }}</td>
            </tr>
            <tr>
                <th>Ocupacion</th>
                <td>{{ candidato.ocupacion }}</td>
            </tr>
            <tr>
                <th>Promedio</th>
                <td>{{ candidato.promedio }}</td>
            </tr>
            <tr>
                <th>Institucion</th>
                <td>{{ candidato.institucion }}</td>
            </tr>
            <tr>
                <th>Pais</th>
                <td>{{ candidato.pais }}</td>
            </tr>
            <tr>
                <th>Estado</th>
                <td>{{ candidato.estado }}</td>
            </tr>
            <tr>
                <th>Municipio</th>
                <td>{{ candidato.municipio }}</td>
            </tr>
            <tr>
                <th>Direccion</th>
                <td>{{ candidato.direccion }}</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 %}