index.html.twig
2.15 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
{% 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>Ambientes list</h1>
<table class="table table-responsive table-hover">
<thead>
<thead>
<tr>
<th>Id</th>
<th>Descripcion</th>
<th>Codigo</th>
<th>Direccion</th>
<th>Coordenadautmnorte</th>
<th>Coordenadautmoeste</th>
<th>Actions</th>
</thead>
<tbody>
{% for ambiente in ambientes %}
<tr>
<td><a href="{{ path('ambiente_show', { 'id': ambiente.id }) }}">{{ ambiente.id }}</a></td>
<td>{{ ambiente.descripcion | capitalize }}</td>
<td>{{ ambiente.codigo}}</td>
<td>{{ ambiente.direccion | capitalize}}</td>
<td>{{ ambiente.coordenadaUtmNorte}}</td>
<td>{{ ambiente.coordenadaUtmOeste}}</td>
<td>
<ul>
<li>
<a href="{{ path('ambiente_show', { 'id': ambiente.id }) }}"> <span class="glyphicon glyphicon-eye-open"></span>
</li>
<li>
<a href="{{ path('ambiente_edit', { 'id': ambiente.id }) }}"> <span class="glyphicon glyphicon-pencil"></span>
</li>
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<ul>
<br>
<br>
<br>
<a href="{{ path('ambiente_new') }}"><span class="glyphicon glyphicon-play">Agregar</span></a>
   
<span class="glyphicon glyphicon-trash">Eliminar</span>
<br>
<br>
</li>
</ul>
{% endblock %}