commit
						e86e81ad81
					
				| 
						 | 
				
			
			@ -6,7 +6,7 @@
 | 
			
		|||
      <button
 | 
			
		||||
        id="jh-create-entity"
 | 
			
		||||
        data-cy="entityCreateButton"
 | 
			
		||||
        class="btn btn-primary jh-create-entity create-categoria ds-btn ds-btn-primary"
 | 
			
		||||
        class="jh-create-entity create-categoria ds-btn ds-btn--primary"
 | 
			
		||||
        [routerLink]="['/categoria/new']"
 | 
			
		||||
      >
 | 
			
		||||
        <fa-icon icon="plus"></fa-icon>
 | 
			
		||||
| 
						 | 
				
			
			@ -33,7 +33,6 @@
 | 
			
		|||
    <table class="table table-striped" aria-describedby="page-heading">
 | 
			
		||||
      <thead>
 | 
			
		||||
        <tr>
 | 
			
		||||
          <th scope="col"><span jhiTranslate="global.field.id">ID</span></th>
 | 
			
		||||
          <th scope="col"><span jhiTranslate="dataSurveyApp.categoria.nombre">Nombre</span></th>
 | 
			
		||||
          <th scope="col"><span jhiTranslate="dataSurveyApp.categoria.estado">Estado</span></th>
 | 
			
		||||
          <th scope="col"></th>
 | 
			
		||||
| 
						 | 
				
			
			@ -41,9 +40,6 @@
 | 
			
		|||
      </thead>
 | 
			
		||||
      <tbody>
 | 
			
		||||
        <tr *ngFor="let categoria of categorias | filter: 'nombre':searchString; trackBy: trackId" data-cy="entityTable">
 | 
			
		||||
          <td>
 | 
			
		||||
            <a [routerLink]="['/categoria', categoria.id, 'view']">{{ categoria.id }}</a>
 | 
			
		||||
          </td>
 | 
			
		||||
          <td>{{ categoria.nombre }}</td>
 | 
			
		||||
          <td jhiTranslate="{{ 'dataSurveyApp.EstadoCategoria.' + categoria.estado }}">{{ categoria.estado }}</td>
 | 
			
		||||
          <td class="text-right">
 | 
			
		||||
| 
						 | 
				
			
			@ -51,19 +47,14 @@
 | 
			
		|||
              <button
 | 
			
		||||
                type="submit"
 | 
			
		||||
                [routerLink]="['/categoria', categoria.id, 'edit']"
 | 
			
		||||
                class="btn btn-primary btn-sm ds-btn ds-btn-primary"
 | 
			
		||||
                class="btn-sm ds-btn ds-btn--primary"
 | 
			
		||||
                data-cy="entityEditButton"
 | 
			
		||||
              >
 | 
			
		||||
                <fa-icon icon="pencil-alt"></fa-icon>
 | 
			
		||||
                <span class="d-none d-md-inline" jhiTranslate="entity.action.edit">Edit</span>
 | 
			
		||||
              </button>
 | 
			
		||||
 | 
			
		||||
              <button
 | 
			
		||||
                type="submit"
 | 
			
		||||
                (click)="delete(categoria)"
 | 
			
		||||
                class="btn btn-danger btn-sm ds-btn ds-btn-danger"
 | 
			
		||||
                data-cy="entityDeleteButton"
 | 
			
		||||
              >
 | 
			
		||||
              <button type="submit" (click)="delete(categoria)" class="btn-sm ds-btn ds-btn--danger" data-cy="entityDeleteButton">
 | 
			
		||||
                <fa-icon icon="times"></fa-icon>
 | 
			
		||||
                <span class="d-none d-md-inline" jhiTranslate="entity.action.delete">Delete</span>
 | 
			
		||||
              </button>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -64,7 +64,7 @@ export class CategoriaUpdateComponent implements OnInit {
 | 
			
		|||
 | 
			
		||||
  protected categoryExists(categoria: ICategoria): boolean {
 | 
			
		||||
    this.loadAll();
 | 
			
		||||
    var condicion = this.categorias!.some(cat => cat.nombre === categoria.nombre);
 | 
			
		||||
    var condicion = this.categorias!.some(cat => cat.nombre!.toLowerCase() === categoria.nombre!.toLowerCase());
 | 
			
		||||
    return condicion;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -77,7 +77,7 @@
 | 
			
		|||
    <li class="position-absolute fixed-bottom w-100 mb-5">
 | 
			
		||||
      <a (click)="logout()" class="p-3 w-100 m-0 text-center">
 | 
			
		||||
        <!-- <i class="nc-icon nc-user-run"></i> -->
 | 
			
		||||
        <p style="letter-spacing: 0.3rem">Cerrar Sesion</p>
 | 
			
		||||
        <p style="letter-spacing: 0.3rem">Cerrar Sesión</p>
 | 
			
		||||
      </a>
 | 
			
		||||
    </li>
 | 
			
		||||
    <li class="position-absolute fixed-bottom w-100 mb-5" style="bottom: -4rem">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -110,19 +110,19 @@
 | 
			
		|||
 | 
			
		||||
                    <small
 | 
			
		||||
                      class="form-text text-danger"
 | 
			
		||||
                      *ngIf="loginForm.get('username')?.errors?.invalid"
 | 
			
		||||
                      *ngIf="loginForm.get('username')?.errors?.email"
 | 
			
		||||
                      jhiTranslate="global.messages.validate.email.invalid"
 | 
			
		||||
                    >
 | 
			
		||||
                      Your email is invalid
 | 
			
		||||
                    </small>
 | 
			
		||||
 | 
			
		||||
                    <small
 | 
			
		||||
                    <!--<small
 | 
			
		||||
                      class="form-text text-danger"
 | 
			
		||||
                      *ngIf="loginForm.get('username')?.errors?.minlength"
 | 
			
		||||
                      jhiTranslate="global.messages.validate.email.minlength"
 | 
			
		||||
                    >
 | 
			
		||||
                      Your email is required to be at least 5 characters
 | 
			
		||||
                    </small>
 | 
			
		||||
                    </small> -->
 | 
			
		||||
 | 
			
		||||
                    <small
 | 
			
		||||
                      class="form-text text-danger"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,7 +27,7 @@ export class LoginComponent implements OnInit, AfterViewInit {
 | 
			
		|||
  errorUserExists = false;
 | 
			
		||||
 | 
			
		||||
  loginForm = this.fb.group({
 | 
			
		||||
    username: [null, [Validators.required, Validators.email, Validators.minLength(5), Validators.maxLength(254)]],
 | 
			
		||||
    username: [null, [Validators.required, Validators.email, Validators.maxLength(254)]],
 | 
			
		||||
    password: [null, [Validators.required, Validators.minLength(8), Validators.maxLength(50)]],
 | 
			
		||||
    rememberMe: [false],
 | 
			
		||||
  });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,7 +2,7 @@
 | 
			
		|||
  "register": {
 | 
			
		||||
    "title": "Registro",
 | 
			
		||||
    "form": {
 | 
			
		||||
      "button": "Crear la cuenta"
 | 
			
		||||
      "button": "Guardar"
 | 
			
		||||
    },
 | 
			
		||||
    "messages": {
 | 
			
		||||
      "validate": {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue