Skip to content

Commit

Permalink
Validaciones
Browse files Browse the repository at this point in the history
  • Loading branch information
BlastyFN committed Nov 1, 2022
1 parent e6f6269 commit 3d38a90
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<h1 class="TextoCompleto Verde RedMid" id="txtPiso">Piso: #</h1>
<h1 class="TextoCompleto Verde RedMid" id="txtHora">Hora: </h1>
<h1 class="TextoCompleto Verde RedMid" id="txtTipo">Tipo: </h1>
<textarea name="txtNotas" placeholder="Notas:" class="Verde RedMid TextoCompleto tbox" id="txtNotas" cols="20" rows="5"></textarea>
<textarea name="txtNotas" placeholder="Notas:" class="Verde RedMid TextoCompleto tbox" id="txtNotas" cols="20" rows="5" maxlength= "150"></textarea>
<button class="Verde RedMid RedBot TextoCompleto" id="btnConfirmar" value="1">Comenzar</button>


Expand Down
4 changes: 2 additions & 2 deletions Recepcion/Reservacion/CrearReservacion/Reservacion.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
<div class="CamposFijos">
<h1 class="CentrarTexto">Titular</h1>
<br>
<input type="text" placeholder="Nombre" class="EntradaTexto CampoCentrado" name="Nombre" id="CampoNombre">
<input type="text" placeholder="Nombre" class="EntradaTexto CampoCentrado" name="Nombre" id="CampoNombre" maxlength = "20">
<br>
<input type="text" placeholder="Apellidos" class="EntradaTexto CampoCentrado" name="Apellidos" id = "CampoApellidos">
<input type="text" placeholder="Apellidos" class="EntradaTexto CampoCentrado" name="Apellidos" id = "CampoApellidos" maxlength = "20">
<br>
<input type="text" placeholder="Contacto" class="EntradaTexto CampoCentrado" name="Contacto" id = "CampoContacto">
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
<form id="InfoVehiculo">
<input type="text" name="Habitacion" placeholder="Habitacion" class="CampoCompleto" id ="cmpHabitacion">
<br><br>
<input type="text" name="Modelo" placeholder="Modelo" class="CampoMitad" id ="cmpModelo">
<input type="text" name="Color" placeholder="Color" class="CampoMitad" id ="cmpColor">
<input type="text" name="Modelo" placeholder="Modelo" class="CampoMitad" id ="cmpModelo" maxlength="20">
<input type="text" name="Color" placeholder="Color" class="CampoMitad" id ="cmpColor" maxlength="20">
<br><br>
<input type="text" name="Placas" placeholder="Placas" class="CampoMitad" id ="cmpPlacas">
<input type="text" name="Placas" placeholder="Placas" class="CampoMitad" id ="cmpPlacas" maxlength="8">
<input type="text" name="Lugar" placeholder="Lugar" class="CampoMitad" id ="cmpLugar">
<br><br>
<textarea placeholder="Notas" name="Notas" cols="40" rows="7" class="CampoCompleto" id ="cmpNotas"></textarea>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ function verificarBoton() {
}

});
if (contador == 5) {
if (contador == 5 && CPlacas.value.length > 4 && CColor.value.length > 4) {

btnConfirmar.disabled = false;

btnConfirmar.disabled = false;

}
else{
btnConfirmar.disabled = true;
Expand Down

0 comments on commit 3d38a90

Please sign in to comment.