diff --git a/app/Resources/views/cea/ascenso_mostar.html.twig b/app/Resources/views/cea/ascenso_mostar.html.twig
index 8ea9e22..0f75386 100644
--- a/app/Resources/views/cea/ascenso_mostar.html.twig
+++ b/app/Resources/views/cea/ascenso_mostar.html.twig
@@ -297,7 +297,7 @@
- Rechazar
+ Rechazar
@@ -396,6 +396,25 @@
});
});
+
+ $('form').submit(function() {
+ console.log($(':radio:checked', this).length);
+ for (var i = 0; i < $(':radio:checked', this).length; i ++){
+ console.log($(':radio:checked', this)[i]);
+ if ( ($(':radio:checked', this)[i].value == "")) {
+ alert('Debes revisar todos los documentos para poder enviar la solicitud!');
+ $("#aprobado").button('reset');
+ return false;
+ }
+
+ }
+
+
+ });
+
+ $('#motivo_rechazo').on('hidden.bs.modal', function (e) {
+ $("#modal_rechazo").button('reset');
+ })