-
+
Selecciona una opción @@ -38,13 +43,13 @@ - - - - + + + +
-
+
@@ -80,7 +85,7 @@
-
+
diff --git a/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.ts b/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.ts index fcf0bfe..59a2190 100644 --- a/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.ts +++ b/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.ts @@ -23,6 +23,7 @@ import { Router } from '@angular/router'; import { CreatePxeBootFileComponent } from "../../../ogboot/pxe-boot-files/create-pxeBootFile/create-pxe-boot-file/create-pxe-boot-file.component"; +import { JoyrideService } from 'ngx-joyride'; @Component({ @@ -69,7 +70,8 @@ export class AdvancedSearchComponent { private toastService: ToastrService, private _bottomSheet: MatBottomSheet, private http: HttpClient, - private router: Router + private router: Router, + private joyrideService: JoyrideService ) {} ngOnInit(): void { @@ -436,4 +438,23 @@ export class AdvancedSearchComponent { } } + iniciarTour(): void { + this.joyrideService.startTour({ + steps: [ + 'title2Step', + 'filterSelectionStep', + 'viewModeStep', + 'filtersStep', + 'selectAllStep', + 'saveFiltersStep', + 'sendActionStep', + 'addPxeStep', + 'resultsStep', + 'paginationStep' + ], + showPrevButton: true, + themeColor: '#3f51b5' + }); + } + } diff --git a/ogWebconsole/src/app/components/groups/groups.component.css b/ogWebconsole/src/app/components/groups/groups.component.css index 12e2d46..0028581 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.css +++ b/ogWebconsole/src/app/components/groups/groups.component.css @@ -194,8 +194,7 @@ mat-spinner { .result-card { width: 100%; max-width: 250px; - height: 250px; /* Fijo para mantener la forma cuadrada */ -} + height: 250px; .paginator-container { display: flex; @@ -210,3 +209,7 @@ mat-spinner { mat-card { margin-bottom: 20px; } + +.mat-tooltip { + white-space: pre-line; +} \ No newline at end of file diff --git a/ogWebconsole/src/app/components/groups/groups.component.html b/ogWebconsole/src/app/components/groups/groups.component.html index 289e1ca..ea965f1 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.html +++ b/ogWebconsole/src/app/components/groups/groups.component.html @@ -1,21 +1,39 @@ -
-

Administrar grupos

-
- - - +
+ +

Administrar grupos

+
+ + + + +
+
- + Centros + [ngClass]="{'selected-item': unidad === selectedUnidad, 'clickable-item': true}" + (click)="onSelectUnidad(unidad)">
apartment {{ unidad.name }} @@ -23,48 +41,37 @@ more_vert + + + + @@ -74,7 +81,11 @@ - + +
@@ -93,7 +104,9 @@ info No hay elementos internos
- +
apartment @@ -108,31 +121,45 @@ more_vert + + + + -
@@ -142,12 +169,15 @@
+ + + diff --git a/ogWebconsole/src/app/components/groups/groups.component.ts b/ogWebconsole/src/app/components/groups/groups.component.ts index e0763d9..42baf1b 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.ts +++ b/ogWebconsole/src/app/components/groups/groups.component.ts @@ -27,6 +27,7 @@ import { } from "./components/organizational-unit-tab-view/organizational-unit-tab-view.component"; import { ExecuteCommandComponent } from '../commands/main-commands/execute-command/execute-command.component'; import { ExecuteCommandOuComponent } from './shared/execute-command-ou/execute-command-ou.component'; +import { JoyrideService } from 'ngx-joyride'; @Component({ selector: 'app-groups', @@ -69,7 +70,8 @@ export class GroupsComponent implements OnInit { public dialog: MatDialog, private toastService: ToastrService, private _bottomSheet: MatBottomSheet, - private http: HttpClient + private http: HttpClient, + private joyrideService: JoyrideService ) {} ngOnInit(): void { @@ -449,4 +451,11 @@ export class GroupsComponent implements OnInit { const dialogRef = this.dialog.open(AcctionsModalComponent, { data: { selectedElements: this.selectedElements }, width: '700px'}); } + iniciarTour(): void { + this.joyrideService.startTour({ + steps: ['titleStep', 'addStep', 'keyStep', 'unitStep', 'elementsStep', 'tabsStep'], + showPrevButton: true, + themeColor: '#3f51b5' + }); + } }