|
@@ -173,7 +173,7 @@ if(!is_null($user->periodo_id)){
|
|
|
<div class="row">
|
|
|
<?php
|
|
|
if(isset($reposiciones_rs) && count($reposiciones_rs)>0){ ?>
|
|
|
- <h3 class="mb-3">Reposiciones creadas</h3>
|
|
|
+ <h3 class="mb-3">Solicitudes creadas</h3>
|
|
|
<div class="col-12 table-responsive px-0">
|
|
|
<table class="table table-sm table-striped table-white">
|
|
|
<thead class="thead-dark">
|
|
@@ -592,24 +592,25 @@ if(!is_null($user->periodo_id)){
|
|
|
invalidDatalist("#materia", false);
|
|
|
$("#fecha_nueva").removeClass("is-invalid");
|
|
|
$("#fecha_falta").removeClass("is-invalid");
|
|
|
- $("#fecha_cambio").removeClass("is-invalid");
|
|
|
+ $("#fecha_cambio").removeClass("is-invalid");
|
|
|
+
|
|
|
+ if($('#fecha_falta').is(':required') && $("#fecha_falta").val() == ""){
|
|
|
+ $("#fecha_falta").addClass("is-invalid");
|
|
|
+ error = true;
|
|
|
+ }
|
|
|
+ if($('#fecha_nueva').is(':required') && $("#fecha_nueva").val() == ""){//fecha reposición
|
|
|
+ $("#fecha_nueva").addClass("is-invalid");
|
|
|
+ error = true;
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
- if($("#tipo").val() == 1){//reposición
|
|
|
- if($("#fecha_falta").val() == ""){
|
|
|
- $("#fecha_falta").addClass("is-invalid");
|
|
|
- error = true;
|
|
|
- }
|
|
|
- if($("#fecha_nueva").val() == ""){//fecha reposición
|
|
|
- $("#fecha_nueva").addClass("is-invalid");
|
|
|
- error = true;
|
|
|
- }
|
|
|
- }else{
|
|
|
- if($("#fecha_cambio").val() == ""){
|
|
|
- $("#fecha_cambio").addClass("is-invalid");
|
|
|
- error = true;
|
|
|
- }
|
|
|
+ if($('#fecha_cambio').is(':required') && $("#fecha_cambio").val() == ""){
|
|
|
+ $("#fecha_cambio").addClass("is-invalid");
|
|
|
+ error = true;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if($("#horario").val().trim() == "" || $("#horario").val() === null){
|
|
|
invalidDatalist("#horario", true);
|
|
|
error = true;
|
|
@@ -636,6 +637,7 @@ if(!is_null($user->periodo_id)){
|
|
|
$('#fecha_cambio').parents('.row').hide();
|
|
|
$('#fecha_falta').parents('.row').show();
|
|
|
$('#fecha_nueva').parents('.row').show();
|
|
|
+ $("#hora_nombre").parents('.row').show();
|
|
|
|
|
|
$('#fecha_cambio').removeAttr("required");
|
|
|
$('#fecha_falta').attr("required", true);
|
|
@@ -648,12 +650,12 @@ if(!is_null($user->periodo_id)){
|
|
|
$('#fecha_cambio').parents('.row').show();
|
|
|
$('#fecha_falta').parents('.row').hide();
|
|
|
$('#fecha_nueva').parents('.row').hide();
|
|
|
+ $("#hora_nombre").parents('.row').hide();
|
|
|
|
|
|
$('#fecha_cambio').attr("required", true);
|
|
|
$('#fecha_falta').removeAttr("required");
|
|
|
$('#fecha_nueva').removeAttr("required");
|
|
|
|
|
|
- $("#hora_nombre").text("Hora cambio *");
|
|
|
$("#materiaBlock").show();
|
|
|
var hora = $("#dlMateria ul li.selected").data("hr");
|
|
|
var min = $("#dlMateria ul li.selected").data("min");
|
|
@@ -664,6 +666,7 @@ if(!is_null($user->periodo_id)){
|
|
|
$('#fecha_cambio').parents('.row').hide();
|
|
|
$('#fecha_falta').parents('.row').hide();
|
|
|
$('#fecha_nueva').parents('.row').show();
|
|
|
+ $("#hora_nombre").parents('.row').show();
|
|
|
|
|
|
$('#fecha_cambio').removeAttr("required");
|
|
|
$('#fecha_falta').removeAttr("required");
|
|
@@ -676,6 +679,7 @@ if(!is_null($user->periodo_id)){
|
|
|
$('#fecha_cambio').parents('.row').show();
|
|
|
$('#fecha_falta').parents('.row').hide();
|
|
|
$('#fecha_nueva').parents('.row').show();
|
|
|
+ $("#hora_nombre").parents('.row').show();
|
|
|
|
|
|
$('#fecha_cambio').attr("required", true);
|
|
|
$('#fecha_falta').removeAttr("required");
|