refactor(employee-detail): restructure HTML layout with container
All checks were successful
Playwright Tests / test (pull_request) Successful in 2m49s
All checks were successful
Playwright Tests / test (pull_request) Successful in 2m49s
This commit is contained in:
parent
fb90c770f6
commit
300520093d
2 changed files with 26 additions and 25 deletions
|
@ -1,5 +1,5 @@
|
|||
<div class="container">
|
||||
<div class="d-flex flex-col" style="height: 100%;">
|
||||
<app-navigation-bar></app-navigation-bar>
|
||||
<div class="p-3" style="width: 100%;">
|
||||
<button class="btn btn-primary" (click)="goToEmployeePage()">Zurück</button>
|
||||
<div class="row align-items-start pt-3">
|
||||
|
@ -26,3 +26,4 @@
|
|||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -3,7 +3,7 @@ import { EmployeeNameAndSkillDataDTO, EmployeeRequestPutDTO, EmployeeResponseDTO
|
|||
import { AbstractControl, FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Router } from '@angular/router';
|
||||
import { AsyncPipe, NgFor } from '@angular/common';
|
||||
import { AsyncPipe, NgFor, Location } from '@angular/common';
|
||||
import { SkillService } from '../../service/skill.service';
|
||||
import { QualificationGetDTO } from '../../models/skill';
|
||||
import { Observable, of } from 'rxjs';
|
||||
|
@ -24,10 +24,10 @@ export class MitarbeiterFormComponent {
|
|||
public hasAllSkills: boolean = false;
|
||||
errorMessages: Record<string, string> = {};
|
||||
|
||||
constructor(public http: HttpClient, public router: Router, private skillService: SkillService) {}
|
||||
constructor(public http: HttpClient, public router: Router, private skillService: SkillService, private location: Location) {}
|
||||
|
||||
returnToEmployeeOverview() {
|
||||
this.router.navigate(["mitarbeiter"]);
|
||||
this.location.back();
|
||||
}
|
||||
|
||||
private setupForm() {
|
||||
|
|
Loading…
Add table
Reference in a new issue