Commit 49db1999ffc3f9c44b7eddcd394b42450ca4bf6f
1 parent
08f8136358
Exists in
master
mejora el boton de cambio de estatus de la actividad del PIDA
Showing
1 changed file
with
7 additions
and
4 deletions
Show diff stats
app/Resources/views/solicitudes/pida.html.twig
| ... | ... | @@ -117,15 +117,15 @@ |
| 117 | 117 | {% for tarea in pid.pidaTareaEspecifico | sort %} |
| 118 | 118 | <td>{{ tarea.pidaTareaEspecifico }} |
| 119 | 119 | {% if loop.index == loop.length %} |
| 120 | - {% if servicio.idEstatus.id == 2 %}<a data-id="{{ pid.id }}" id="add_actividad{{ pid.id }}" data-toggle="modal" data-target="#nueva_actividad" class="btn btn-xs btn-warning">+</a>{% endif %} | |
| 120 | + {% if servicio.idEstatus.id == 2 %}<button data-id="{{ pid.id }}" id="add_actividad{{ pid.id }}" data-toggle="modal" data-target="#nueva_actividad" class="btn btn-xs btn-warning">+</button>{% endif %} | |
| 121 | 121 | {% else %} |
| 122 | - {% if servicio.idEstatus.id == 2 %}<a data-id="{{ tarea.id }}" id="remove{{ tarea.id }}" class="btn btn-xs btn-danger">-</a>{% endif %} | |
| 122 | + {% if servicio.idEstatus.id == 2 %}<button data-id="{{ tarea.id }}" id="remove{{ tarea.id }}" class="btn btn-xs btn-danger">-</button>{% endif %} | |
| 123 | 123 | {% endif %} |
| 124 | 124 | </td> |
| 125 | 125 | <td>{{ tarea.idPidaPlazo }}</td> |
| 126 | 126 | <td> |
| 127 | 127 | {{ tarea.idPidaEstatus }} |
| 128 | - {% if servicio.idEstatus.id != 5 %}<a data-id="{{ tarea.id }}" id="estatus{{ tarea.id }}" data-toggle="modal" data-target="#nuevo_estatus" class="btn btn-xs btn-default">.</a>{% endif %} | |
| 128 | + {% if servicio.idEstatus.id != 5 %}<button data-id="{{ tarea.id }}" id="estatus{{ tarea.id }}" data-toggle="modal" data-target="#nuevo_estatus" class="btn btn-xs btn-default">.</button>{% endif %} | |
| 129 | 129 | </td> |
| 130 | 130 | |
| 131 | 131 | </tr> |
| ... | ... | @@ -351,10 +351,13 @@ |
| 351 | 351 | |
| 352 | 352 | |
| 353 | 353 | $('[id^="estatus"]').click(function() { |
| 354 | - alert("presionado: " + $(this).attr('data-id')) | |
| 355 | 354 | $("#id_estatus").val($(this).attr('data-id')); |
| 356 | 355 | }); |
| 357 | 356 | |
| 357 | + $('#nuevo_estatus').on('hidden.bs.modal', function (e) { | |
| 358 | + $("#estatus" + $("#id_estatus").val()).button('reset'); | |
| 359 | + }) | |
| 360 | + | |
| 358 | 361 | |
| 359 | 362 | |
| 360 | 363 | ... | ... |