index.html.twig
2.79 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
{% extends 'base_app.html.twig' %}
{% block body %}
<div class="main">
<div class="main-inner">
<div class="container">
{% for message in app.session.flashBag.get('notice') %}
<div class="alert alert-warning">{{ message }}</div>
{%endfor %}
{% for message in app.session.flashBag.get('danger') %}
<div class="alert alert-danger">{{ message }}</div>
{%endfor %}
{% for message in app.session.flashBag.get('warning') %}
<div class="alert alert-warning">{{ message }}</div>
{%endfor %}
<div class="widget widget-table action-table">
<div class="widget-header"> <i class="icon-th-list"></i>
<h3>Mis Servicios Solicitados</h3>
</div>
<div class="widget-content">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th> Solicitud N° </th>
<th> Descripción </th>
<th> Fecha Solicitud</th>
<th> Estatus Solicitud</th>
<th> Acciones</th>
</tr>
</thead>
<tbody>
{% for servicio in servicios %}
<tr>
<td>{{servicio.id}}</td>
<td>{{servicio.idServicioCe.Nombre}}</td>
<td>{{servicio.fechaSolicitud | date('d-m-Y')}}</td>
<td>{{servicio.idEstatus}}</td>
<td>
<!-- solo imprime el servicio si está activo -->
{%if servicio.idServicioCe.id == 1 and servicio.idEstatus.id == 1 %}
<a href="{{ path('servicio_antiguedad_imprimir', { 'id': servicio.id }) }}" target="_blank" class="btn btn-xs btn-info"><i class="fa fa-print"> </i></a>
{% elseif servicio.idServicioCe.id == 2 %}
{% if servicio.idEstatus.id == 1 %}
<a href="{{ path('servicio_adscripcion_imprimir', { 'id': servicio.id }) }}" target="_blank" class="btn btn-xs btn-info"><i class="fa fa-print"> </i></a>
{% endif %}
<a href="{{ path('adscripcion_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a>
{%endif%}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}