index.html.twig
1.88 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
{% 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 aldea</h1>
<table class="table table-condensed" >
<thead>
<tr>
<th><strong>id</th>
<th><strong>Cursodescripcion</th>
<th><strong>codigoSucre</th>
<th><strong>codigoAldea</th>
<th><strong>Estatus</th>
<th><strong>Actions</th>
</thead>
<tbody>
{% for aldea in aldeas %}
<tr>
<td><a href="{{ path('aldea_show', { 'id': aldea.id }) }}">{{ aldea.id }}</a></td>
<td>{{ aldea.descripcion }}</td>
<td>{{ aldea.codigoSucre }}</td>
<td>{{ aldea.codigoAldea }}</td>
<td>{% if aldea.estatus %}Yes{% else %}No{% endif %}</td>
<td>
<ul>
<a href="{{ path('aldea_show', { 'id': aldea.id }) }}">show</a>
<a href="{{ path('aldea_edit', { 'id': aldea.id }) }}">edit</a>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<ul>
<a class="btn btn-default" href="{{ path('aldea_new') }}">Agregar Aldea</a>
{#<input type="button" value="Agregar Aldea" onclick= a href("{{ path('aldea_new') }}");"/>#}
{#<button type="button" class="btn btn-primary"> Agregar aldea </button>#}
</ul>
{% endblock %}