Commit 93553629c71f88550701cb5722f864d97d981200
1 parent
3005528264
Exists in
master
validado que no salga el boton de aprobacion o rechazo si esta aprobada; salgan …
…los dos botones si esta en espera y solo el de aprobar si esta rechazada
Showing
1 changed file
with
9 additions
and
4 deletions
Show diff stats
app/Resources/views/cea/solicitudes_mostar.html.twig
... | ... | @@ -220,9 +220,10 @@ |
220 | 220 | </a> |
221 | 221 | {% endif %} |
222 | 222 | {% endif %} |
223 | - {% if verificado.idEstatus.id == 2 or verificado.idEstatus.id == 3 %} | |
223 | + | |
224 | 224 | <div class="caption"> |
225 | 225 | <p>{{ verificado.idTipoDocumentos.nombre }}</p> |
226 | + {% if verificado.idEstatus.id == 2 or verificado.idEstatus.id == 3 %} | |
226 | 227 | <div class="wrapper"> |
227 | 228 | <label for="yes_radio{{ loop.index }}" class="yes-lbl"><i class="fa fa-check"></i> |
228 | 229 | </label> |
... | ... | @@ -239,10 +240,11 @@ |
239 | 240 | |
240 | 241 | <div class="toggle"></div> |
241 | 242 | </div> |
243 | + {% endif %} | |
242 | 244 | </div> |
243 | 245 | {% endif %} |
244 | 246 | </div> |
245 | - {% endif %} | |
247 | + | |
246 | 248 | </div> |
247 | 249 | |
248 | 250 | {% endfor %} |
... | ... | @@ -277,8 +279,11 @@ |
277 | 279 | |
278 | 280 | </div> |
279 | 281 | {% endif %} |
280 | - <button type="submit" class="btn btn-success" id="aprobar" name="aprobar">Aprobar</button> | |
281 | - <a data-toggle="modal" data-target="#motivo_rechazo" class="btn btn-danger">Rechazar</a> | |
282 | + {% if servicio.idEstatus.id == 2 or servicio.idEstatus.id == 3 %} | |
283 | + <button type="submit" class="btn btn-success" id="aprobar" name="aprobar">Aprobar</button> | |
284 | + {% elseif servicio.idEstatus.id == 2 %} | |
285 | + <a data-toggle="modal" data-target="#motivo_rechazo" class="btn btn-danger">Rechazar</a> | |
286 | + {% endif %} | |
282 | 287 | |
283 | 288 | |
284 | 289 | <!-- Modal --> | ... | ... |