index.html.twig
2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{% extends 'base.html.twig' %}
{% block body %}
{% for type, flashMessage in app.session.flashbag.all() %}
<div class="alert alert-{{ type }} fade in">
<button class="close" data-dismiss="alert" type="button">×</button>
{% if flashMessage.title is defined %}
<strong>{{ flashMessage.title }}</strong>
{{ flashMessage.message }}
{% else %}
{{ type }}
{% endif %}
</div>
{% endfor %}
<h1>Lista de Candidatos</h1>
<a class="btn btn-default" role="button" href="{{ path('candidato_new') }}"> <span class="glyphicon glyphicon-plus"> Agregar </span> </a>
<table class="table table-hover">
<thead>
<tr>
<th>Cedula</th>
<th>Nombre</th>
<th>Apellido</th>
<th>Status</th>
<th>Instruccion</th>
<th>Ocupacion</th>
<th>Promedio</th>
<th>Institucion</th>
<th>Pais</th>
<th>Estado</th>
<th>Municipio</th>
<th>Direccion</th>
<th>Descripcion Aldea</th>
<th>Descripcion Estado Civil</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for candidato in candidatos %}
<tr>
<td><a href="{{ path('candidato_show', { 'id': candidato.id }) }}">{{ candidato.cedula }}</a></td>
<td>{{ candidato.nombre }}</td>
<td>{{ candidato.apellido }}</td>
<td>{% if candidato.activo %}Yes{% else %}No{% endif %}</td>
<td>{{ candidato.instruccion }}</td>
<td>{{ candidato.ocupacion }}</td>
<td>{{ candidato.promedio }}</td>
<td>{{ candidato.institucion }}</td>
<td>{{ candidato.pais }}</td>
<td>{{ candidato.estado }}</td>
<td>{{ candidato.municipio }}</td>
<td>{{ candidato.direccion }}</td>
<td>{{ candidato.aldea }}</td>
<td>{{ candidato.estadoCivil }}</td>
<td>
<ul>
<a class="btn btn-default" role="button" href="{{ path('candidato_show', { 'id': candidato.id }) }}"> <span class="glyphicon glyphicon-eye-open"></span></a>
<a class="btn btn-default" role="button" href="{{ path('candidato_edit', { 'id': candidato.id }) }}"> <span class="glyphicon glyphicon-pencil"></span></a>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}