Commit 075646a78695bf7eb83e7bff7c19504b4268c04c
1 parent
6cfc83d9d4
Exists in
master
corregido error de que los pdf no tenian su estatus de aprobado o rechazado
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
app/Resources/views/cea/solicitudes_mostar.html.twig
... | ... | @@ -203,10 +203,11 @@ |
203 | 203 | {% if verificado.idServicio.id == servicio.id %} |
204 | 204 | {% set extension = verificado.ubicacion | split('.') | last %} |
205 | 205 | <div {% if extension != "pdf" %}class="col-xs-6"{% else %}class="col-xs-12"{% endif %}> |
206 | - {% if extension == "pdf" %} | |
207 | - <object type="application/pdf" data="{{asset('uploads/ascenso/'~ documento.ubicacion)}}" width="100%" height="300px"></object> | |
208 | - {% else %} | |
206 | + | |
209 | 207 | <div class="thumbnail"> |
208 | + {% if extension == "pdf" %} | |
209 | + <object type="application/pdf" data="{{asset('uploads/ascenso/'~ documento.ubicacion)}}" width="100%" height="300px"></object> | |
210 | + {% else %} | |
210 | 211 | {% if verificado.idTipoDocumentos.id <= 4 %} |
211 | 212 | <a href="{{ asset('uploads/adscripcion/'~ verificado.ubicacion) }}" |
212 | 213 | data-lightbox="adscripcion"> |
... | ... | @@ -218,6 +219,7 @@ |
218 | 219 | <img src="{{ asset('uploads/ascenso/thumb/'~ verificado.ubicacion) }}"/> |
219 | 220 | </a> |
220 | 221 | {% endif %} |
222 | + {% endif %} | |
221 | 223 | <div class="caption"> |
222 | 224 | <p>{{ verificado.idTipoDocumentos.nombre }}</p> |
223 | 225 | <div class="wrapper"> |
... | ... | @@ -240,7 +242,7 @@ |
240 | 242 | </div> |
241 | 243 | {% endif %} |
242 | 244 | </div> |
243 | - {% endif %} | |
245 | + | |
244 | 246 | {% endfor %} |
245 | 247 | |
246 | 248 | ... | ... |