Commit 7e1efc35 authored by Walter Molina's avatar Walter Molina

Update...

Update frontend/src/app/views/register/create.pasajero/create.pasajero.component.html, frontend/src/app/views/register/create.pasajero/create.pasajero.component.ts files
parent a6063de2
Pipeline #362 canceled with stages
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<p style="color: red" class="error" *ngIf="passengerForm.get('phone_number')?.errors && <p style="color: red" class="error" *ngIf="passengerForm.get('phone_number')?.errors &&
(passengerForm.get('phone_number')?.touched || passengerForm.get('phone_number')?.dirty) (passengerForm.get('phone_number')?.touched || passengerForm.get('phone_number')?.dirty)
"> ">
Por favor, escriba su número de telefono Por favor, escriba su número de telefono valido (9 digitos)
</p> </p>
<div class="form-group mt-3"><label>Correo eléctronico</label> <div class="form-group mt-3"><label>Correo eléctronico</label>
<input type="email" placeholder="Ingresar email" <input type="email" placeholder="Ingresar email"
......
...@@ -23,8 +23,9 @@ export class CreatePasajeroComponent { ...@@ -23,8 +23,9 @@ export class CreatePasajeroComponent {
first_name: new FormControl('', Validators.required), first_name: new FormControl('', Validators.required),
second_name: new FormControl('', Validators.required), second_name: new FormControl('', Validators.required),
last_name: new FormControl('', Validators.required), last_name: new FormControl('', Validators.required),
phone_number: new FormControl('', Validators.required), phone_number: new FormControl('', [Validators.required, Validators.minLength(9),
email_address: new FormControl('', Validators.required), Validators.maxLength(9)]),
email_address: new FormControl('', [Validators.required, Validators.email]),
city: new FormControl('', Validators.required), city: new FormControl('', Validators.required),
country: new FormControl('', Validators.required), country: new FormControl('', Validators.required),
other_details: new FormControl('', Validators.required), other_details: new FormControl('', Validators.required),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment