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

{% block body %}

    <h1 class="modal-title">Ver Candidato</h1>
        <table class="table table-bordered">
        <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>Edad</th>
                <td>{{ candidato.edad }}</td>
            </tr>
            <tr>
                <th>Sexo</th>
                <td>{% if candidato.sexo %}Yes{% else %}No{% endif %}</td>
            </tr>
            <tr>
                <th>Primaria</th>
                <td>{{ candidato.primaria }}</td>
            </tr>
            <tr>
                <th>Secundaria</th>
                <td>{{ candidato.secundaria }}</td>
            </tr>
            <tr>
                <th>Terciaria</th>
                <td>{{ candidato.terciaria }}</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>Parroquia</th>
                <td>{{ candidato.parroquia }}</td>
            </tr>
        </tbody>
    </table>
<div style="text-align:right">
    <ul>
        <a class="btn btn-primary" role="button" href="{{ path('candidato_index') }}"><span class="glyphicon glyphicon-circle-arrow-left"></span></a>
        
        <a class="btn btn-primary" role="button" href="{{ path('candidato_edit', { 'id': candidato.id }) }}"><span class="glyphicon glyphicon-pencil"></span></a>
        
        {{ form_start(delete_form) }}
             <input type="submit" class="btn btn-primary" value="Eliminar"/>
        {{ form_end(delete_form) }}

        </ul>
</div>
{% endblock %}