Commit 3eec57eb48457a5e17c82e03062bc44084b60354
1 parent
46c4989453
Exists in
master
validado los botones de aprobar y rechazar para que solo aparezcan cuando es nec…
…esario en el ascenso!
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
app/Resources/views/cea/ascenso_mostar.html.twig
| ... | ... | @@ -298,8 +298,12 @@ |
| 298 | 298 | |
| 299 | 299 | </div> |
| 300 | 300 | </div> |
| 301 | - <button class="btn btn-success btn-sm" type="submit" name="aprobado" id="aprobado" ><span class="fa fa-check" ></span> Aprobar</button> | |
| 302 | - <a id="modal_rechazo" class="btn btn-danger btn-sm" data-toggle="modal" data-target="#motivo_rechazo" ><span class="fa fa-close"></span> Rechazar</a> | |
| 301 | + {% if servicio.idEstatus.id == 3 %} | |
| 302 | + <button class="btn btn-success btn-sm" type="submit" name="aprobado" id="aprobado" ><span class="fa fa-check" ></span> Aprobar</button> | |
| 303 | + {% elseif servicio.idEstatus.id == 2 %} | |
| 304 | + <button class="btn btn-success btn-sm" type="submit" name="aprobado" id="aprobado" ><span class="fa fa-check" ></span> Aprobar</button> | |
| 305 | + <a id="modal_rechazo" class="btn btn-danger btn-sm" data-toggle="modal" data-target="#motivo_rechazo" ><span class="fa fa-close"></span> Rechazar</a> | |
| 306 | + {% endif %} | |
| 303 | 307 | </form> |
| 304 | 308 | </div> |
| 305 | 309 | <!-- MOSTRAR ACTIVIDAD PIDA DEL DOCENTE --> | ... | ... |