Commit 1420b6c02e83919fd2d736eb4020287bc37631bc
1 parent
b895cb3e62
Exists in
master
imprime el pida del docente; tambien permite compiar y pegar en hojas de calculo…
… al estar hecho con tablas
Showing
1 changed file
with
39 additions
and
5 deletions
Show diff stats
app/Resources/views/solicitudes/pida.html.twig
... | ... | @@ -19,6 +19,29 @@ |
19 | 19 | margin-left: 50px; |
20 | 20 | } |
21 | 21 | |
22 | + @media print | |
23 | + { | |
24 | + * { visibility:hidden } | |
25 | + | |
26 | + .printable * { | |
27 | + visibility: visible; | |
28 | + } | |
29 | + | |
30 | + .no-print, .no-print * | |
31 | + { | |
32 | + display: none !important; | |
33 | + } | |
34 | + } | |
35 | + | |
36 | + @media screen{ | |
37 | + .no-screen, .no-screen * | |
38 | + { | |
39 | + display: none !important; | |
40 | + } | |
41 | + } | |
42 | + | |
43 | + @page { size: landscape; } | |
44 | + | |
22 | 45 | </style> |
23 | 46 | {% endblock %} |
24 | 47 | |
... | ... | @@ -68,11 +91,12 @@ |
68 | 91 | {% if servicio.idEstatus.id == 2 %} |
69 | 92 | <div class="col-md-7"> |
70 | 93 | {% else %} |
71 | - <div class="col-md-11"> | |
94 | + <div class="col-md-11 printable" id="imprimir"> | |
72 | 95 | {% endif %} |
73 | 96 | <div class="panel panel-white"> |
74 | 97 | <div class="panel-heading clearfix"> |
75 | - <h4>Mi PIDA</h4><span class="small" style="float: right;"> Estatus: {{ servicio.idEstatus }}</span> | |
98 | + <h4 class="no-screen">PIDA del Docente: {{ app.user.idRolinstitucion.idRol.idPersona }}</h4> | |
99 | + <h4 class="no-print">Mi PIDA</h4><span class="small" style="float: right;"> Estatus: {{ servicio.idEstatus }}</span> | |
76 | 100 | </div> |
77 | 101 | <div class="panel-body"> |
78 | 102 | |
... | ... | @@ -98,7 +122,7 @@ |
98 | 122 | PIDA válido desde: {{ caduca.fechaInicio | date('d-m-Y')}} hasta: {{ caduca.fechaFinal | date('m-d-Y') }}. duración total PIDA: ( {% if caducaAnos > 0 %} {{ caducaAnos }} años {% endif %}{{ caducaMeses }} meses con {{ caducaDias }} días ) |
99 | 123 | |
100 | 124 | {% endif %} |
101 | - <table class="table table-bordered"> | |
125 | + <table class="table table-bordered" border="1" cellpadding="3"> | |
102 | 126 | <th>Objetivo Histórico</th> |
103 | 127 | <th>Actividad Docente</th> |
104 | 128 | <th>Tarea Específica</th> |
... | ... | @@ -140,7 +164,11 @@ |
140 | 164 | </tr> |
141 | 165 | {% endfor %} |
142 | 166 | </table> |
143 | - {% if servicio.idEstatus.id == 2 %}<button id="finalizarPida" data-servicio="{{ servicio.id }}" class="btn btn-primary">Finalizar PIDA</button>{% endif %} | |
167 | + {% if servicio.idEstatus.id == 2 %} | |
168 | + <button id="finalizarPida" data-servicio="{{ servicio.id }}" class="btn btn-primary">Finalizar PIDA</button> | |
169 | + {% elseif servicio.idEstatus.id == 4 %} | |
170 | + <button id="printPida" data-servicio="{{ servicio.id }}" class="no-print btn btn-primary"><span class="fa fa-print"></span> Imprimir PIDA</button> | |
171 | + {% endif %} | |
144 | 172 | </div> |
145 | 173 | |
146 | 174 | </div> |
... | ... | @@ -363,7 +391,13 @@ |
363 | 391 | $('#nuevo_estatus').on('hidden.bs.modal', function (e) { |
364 | 392 | $("#estatus" + $("#id_estatus").val()).button('reset'); |
365 | 393 | $(".btn").button('reset'); |
366 | - }) | |
394 | + }); | |
395 | + | |
396 | + | |
397 | + $("#printPida").click(function() { | |
398 | + print(); | |
399 | + $(".btn").button('reset'); | |
400 | + }); | |
367 | 401 | |
368 | 402 | |
369 | 403 | ... | ... |