2021-07-04 01:44:15 +00:00
|
|
|
<!-- <div>
|
2021-07-03 21:48:27 +00:00
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-lg-6 col-md-8 col-sm-10">
|
|
|
|
<h1 jhiTranslate="login.title" data-cy="loginTitle">Sign in</h1>
|
|
|
|
<div class="alert alert-danger" *ngIf="authenticationError" jhiTranslate="login.messages.error.authentication" data-cy="loginError">
|
|
|
|
<strong>Failed to sign in!</strong> Please check your credentials and try again.
|
|
|
|
</div>
|
|
|
|
<form class="form" role="form" (ngSubmit)="login()" [formGroup]="loginForm">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="username-label" for="username" jhiTranslate="global.form.username.label">Login</label>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
class="form-control"
|
|
|
|
name="username"
|
|
|
|
id="username"
|
|
|
|
placeholder="{{ 'global.form.username.placeholder' | translate }}"
|
|
|
|
formControlName="username"
|
|
|
|
#username
|
|
|
|
data-cy="username"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="password" jhiTranslate="login.form.password">Password</label>
|
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
class="form-control"
|
|
|
|
name="password"
|
|
|
|
id="password"
|
|
|
|
placeholder="{{ 'login.form.password.placeholder' | translate }}"
|
|
|
|
formControlName="password"
|
|
|
|
data-cy="password"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-check">
|
|
|
|
<label class="form-check-label" for="rememberMe">
|
|
|
|
<input class="form-check-input" type="checkbox" name="rememberMe" id="rememberMe" formControlName="rememberMe" />
|
|
|
|
<span jhiTranslate="login.form.rememberme">Remember me</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button type="submit" class="btn btn-primary" jhiTranslate="login.form.button" data-cy="submit">Sign in</button>
|
|
|
|
</form>
|
|
|
|
<div class="mt-3 alert alert-warning">
|
|
|
|
<a class="alert-link" routerLink="/account/reset/request" jhiTranslate="login.password.forgot" data-cy="forgetYourPasswordSelector"
|
|
|
|
>Did you forget your password?</a
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
<span jhiTranslate="global.messages.info.register.noaccount">You don't have an account yet?</span>
|
|
|
|
<a class="alert-link" routerLink="/account/register" jhiTranslate="global.messages.info.register.link">Register a new account</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-04 01:44:15 +00:00
|
|
|
</div> -->
|
|
|
|
|
|
|
|
<div class="account-pages pt-2 pt-sm-5 pb-4 pb-sm-5" style="height: 100vh; background-color: #f1f5f9">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-xxl-4 col-lg-5">
|
|
|
|
<div class="card mt-5">
|
|
|
|
<!-- Logo -->
|
|
|
|
<div class="pl-4 pt-4 pr-4 pb-1 text-center">
|
|
|
|
<img src="../../content/img_datasurvey/datasurvey-logo-text-black.svg" alt="" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body p-4">
|
|
|
|
<div class="text-center w-75 m-auto">
|
|
|
|
<h4 class="text-dark-50 text-center pb-0 fw-bold p-0 m-0" style="color: #727070; font-weight: 700; font-size: 1.3rem">
|
2021-07-11 23:45:21 +00:00
|
|
|
INICIAR SESIÓN
|
2021-07-04 01:44:15 +00:00
|
|
|
</h4>
|
2021-07-11 21:09:53 +00:00
|
|
|
<p class="mb-4" style="color: rgba(146, 146, 146, 0.664)">Ingrese su correo electrónico y contraseña</p>
|
2021-07-04 01:44:15 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
class="alert alert-danger"
|
|
|
|
*ngIf="authenticationError"
|
|
|
|
jhiTranslate="login.messages.error.authentication"
|
|
|
|
data-cy="loginError"
|
|
|
|
>
|
|
|
|
<strong>Failed to sign in!</strong> Please check your credentials and try again.
|
|
|
|
</div>
|
2021-07-11 21:09:53 +00:00
|
|
|
|
2021-07-11 23:45:21 +00:00
|
|
|
<form class="ds-form" role="form" (ngSubmit)="login()" [formGroup]="loginForm">
|
2021-07-04 01:44:15 +00:00
|
|
|
<div class="mb-3">
|
|
|
|
<div class="form-group">
|
2021-07-11 21:09:53 +00:00
|
|
|
<label for="username" class="form-label">Correo electrónico</label>
|
2021-07-04 01:44:15 +00:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
class="form-control"
|
|
|
|
name="username"
|
|
|
|
id="username"
|
|
|
|
placeholder="{{ 'global.form.email.placeholder' | translate }}"
|
|
|
|
formControlName="username"
|
|
|
|
#username
|
|
|
|
data-cy="username"
|
|
|
|
/>
|
2021-07-11 21:09:53 +00:00
|
|
|
<div
|
|
|
|
*ngIf="loginForm.get('username')!.invalid && (loginForm.get('username')!.dirty || loginForm.get('username')!.touched)"
|
|
|
|
>
|
|
|
|
<small
|
|
|
|
class="form-text text-danger"
|
|
|
|
*ngIf="loginForm.get('username')?.errors?.required"
|
|
|
|
jhiTranslate="global.messages.validate.email.required"
|
|
|
|
>
|
2021-07-12 04:37:44 +00:00
|
|
|
Your email is required
|
2021-07-11 21:09:53 +00:00
|
|
|
</small>
|
|
|
|
|
|
|
|
<small
|
|
|
|
class="form-text text-danger"
|
2021-07-12 05:32:06 +00:00
|
|
|
*ngIf="loginForm.get('username')?.errors?.email"
|
2021-07-11 21:09:53 +00:00
|
|
|
jhiTranslate="global.messages.validate.email.invalid"
|
|
|
|
>
|
2021-07-12 04:37:44 +00:00
|
|
|
Your email is invalid
|
2021-07-11 21:09:53 +00:00
|
|
|
</small>
|
|
|
|
|
2021-07-12 05:32:06 +00:00
|
|
|
<!--<small
|
2021-07-11 21:09:53 +00:00
|
|
|
class="form-text text-danger"
|
|
|
|
*ngIf="loginForm.get('username')?.errors?.minlength"
|
|
|
|
jhiTranslate="global.messages.validate.email.minlength"
|
|
|
|
>
|
2021-07-12 04:37:44 +00:00
|
|
|
Your email is required to be at least 5 characters
|
2021-07-12 05:32:06 +00:00
|
|
|
</small> -->
|
2021-07-11 21:09:53 +00:00
|
|
|
|
|
|
|
<small
|
|
|
|
class="form-text text-danger"
|
|
|
|
*ngIf="loginForm.get('username')?.errors?.maxlength"
|
|
|
|
jhiTranslate="global.messages.validate.email.maxlength"
|
|
|
|
>
|
2021-07-12 04:37:44 +00:00
|
|
|
Your email cannot be longer than 100 characters
|
2021-07-11 21:09:53 +00:00
|
|
|
</small>
|
|
|
|
</div>
|
2021-07-04 01:44:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="password" jhiTranslate="login.form.password">Password</label>
|
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
class="form-control"
|
|
|
|
name="password"
|
|
|
|
id="password"
|
|
|
|
placeholder="{{ 'login.form.password.placeholder' | translate }}"
|
|
|
|
formControlName="password"
|
|
|
|
data-cy="password"
|
|
|
|
/>
|
2021-07-11 21:09:53 +00:00
|
|
|
<div
|
|
|
|
*ngIf="loginForm.get('password')!.invalid && (loginForm.get('password')!.dirty || loginForm.get('password')!.touched)"
|
|
|
|
>
|
|
|
|
<small
|
|
|
|
class="form-text text-danger"
|
|
|
|
*ngIf="loginForm.get('password')?.errors?.required"
|
|
|
|
jhiTranslate="global.messages.validate.newpassword.required"
|
|
|
|
>
|
2021-07-12 04:32:30 +00:00
|
|
|
Your password is required
|
2021-07-11 21:09:53 +00:00
|
|
|
</small>
|
|
|
|
|
|
|
|
<small
|
|
|
|
class="form-text text-danger"
|
|
|
|
*ngIf="loginForm.get('password')?.errors?.minlength"
|
|
|
|
jhiTranslate="global.messages.validate.newpassword.minlength"
|
|
|
|
>
|
2021-07-12 04:32:30 +00:00
|
|
|
Your password is required to be at least 8 characters
|
2021-07-11 21:09:53 +00:00
|
|
|
</small>
|
|
|
|
|
|
|
|
<small
|
|
|
|
class="form-text text-danger"
|
|
|
|
*ngIf="loginForm.get('password')?.errors?.maxlength"
|
|
|
|
jhiTranslate="global.messages.validate.newpassword.maxlength"
|
|
|
|
>
|
2021-07-12 04:32:30 +00:00
|
|
|
Your password cannot be longer than 50 characters
|
2021-07-11 21:09:53 +00:00
|
|
|
</small>
|
|
|
|
</div>
|
2021-07-04 01:44:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mb-3 mb-3">
|
|
|
|
<div class="form-check">
|
|
|
|
<input class="form-check-input" type="checkbox" name="rememberMe" id="rememberMe" formControlName="rememberMe" />
|
|
|
|
<label class="form-check-label" for="checkbox-signin" jhiTranslate="login.form.rememberme">Remember me</label>
|
|
|
|
</div>
|
|
|
|
<a routerLink="/account/reset/request" class="text-muted float-end"
|
|
|
|
><small jhiTranslate="login.password.forgot">Forgot your password?</small></a
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mb-3 mb-0 text-center">
|
2021-07-11 23:45:21 +00:00
|
|
|
<button type="submit" class="ds-btn ds-btn--primary w-100" data-cy="submit">Iniciar sesión</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="mb-3 mb-0 text-center">
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="ds-btn ds-btn--google w-100 d-flex align-items-center justify-content-center"
|
|
|
|
(click)="signInWithGoogle()"
|
|
|
|
>
|
2021-07-12 06:38:52 +00:00
|
|
|
<img class="mr-2" src="./../../content/img_datasurvey/google-logo.svg" />
|
2021-07-11 23:45:21 +00:00
|
|
|
Iniciar con Google
|
|
|
|
</button>
|
2021-07-04 01:44:15 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
2021-07-07 02:19:14 +00:00
|
|
|
|
2021-07-11 23:45:21 +00:00
|
|
|
<!-- <div class="google-btn w-80 m-auto">
|
2021-07-11 02:02:17 +00:00
|
|
|
<div class="google-icon-wrapper">
|
|
|
|
<img class="google-icon" src="https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg" />
|
|
|
|
</div>
|
|
|
|
<button class="btn-text" (click)="signInWithGoogle()">Iniciar con Google</button>
|
2021-07-11 23:45:21 +00:00
|
|
|
</div> -->
|
2021-07-11 02:02:17 +00:00
|
|
|
|
|
|
|
<!--<div class="mb-3 mb-0">
|
2021-07-07 02:19:14 +00:00
|
|
|
<button class="btn" (click)="signInWithGoogle()">
|
|
|
|
<i class="fa fa-Google">Iniciar con Google</i>
|
|
|
|
</button>
|
2021-07-11 02:02:17 +00:00
|
|
|
</div>-->
|
2021-07-04 01:44:15 +00:00
|
|
|
</div>
|
|
|
|
<!-- end card-body -->
|
|
|
|
</div>
|
|
|
|
<!-- end card -->
|
|
|
|
|
|
|
|
<div class="row mt-3">
|
|
|
|
<div class="col-12 text-center">
|
|
|
|
<p class="text-muted">
|
|
|
|
¿Listo para explorar?
|
|
|
|
<a routerLink="/account/register" class="text-muted ms-1"><b>Crea una cuenta</b></a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<!-- end col -->
|
|
|
|
</div>
|
|
|
|
<!-- end row -->
|
|
|
|
</div>
|
|
|
|
<!-- end col -->
|
|
|
|
</div>
|
|
|
|
<!-- end row -->
|
|
|
|
</div>
|
|
|
|
<!-- end container -->
|
2021-07-03 21:48:27 +00:00
|
|
|
</div>
|
2021-07-04 01:44:15 +00:00
|
|
|
<!-- end page -->
|