Factorisation du détail des collaborateurs de la vue pour ajouter et pour éditer dans le composant collaborateur-detail
parent
8fbcff9b17
commit
2ed1eed328
@ -0,0 +1,40 @@ |
||||
<div *ngIf="collaborateur"> |
||||
<label class="col-2" for="collaborateur-name">Collaborateur name </label> |
||||
<input id="collaborateur-name" [(ngModel)]="collaborateur.name" placeholder="name"> |
||||
|
||||
<label class="col-2" for="collaborateur-firstName">Collaborateur firstname </label> |
||||
<input id="collaborateur-firstName" [(ngModel)]="collaborateur.firstName" placeholder="firstname"> |
||||
|
||||
<label class="col-2" for="collaborateur-birthDate">Collaborateur birthDate </label> |
||||
<input id="collaborateur-birthDate" [(ngModel)]="collaborateur.birthDate" placeholder="birthDate"> |
||||
|
||||
<label class="col-2" for="collaborateur-gender">Collaborateur gender </label> |
||||
<input id="collaborateur-gender" [(ngModel)]="collaborateur.gender" placeholder="gender"> |
||||
|
||||
<label class="col-2" for="collaborateur-status">Collaborateur status </label> |
||||
<input id="collaborateur-status" [(ngModel)]="collaborateur.status" placeholder="status"> |
||||
|
||||
<label class="col-2" for="collaborateur-childrenNumber">Collaborateur childrenNumber </label> |
||||
<input id="collaborateur-childrenNumber" [(ngModel)]="collaborateur.childrenNumber" placeholder="childrenNumber"> |
||||
|
||||
<label class="col-2" for="collaborateur-address">Collaborateur address </label> |
||||
<input id="collaborateur-address" [(ngModel)]="collaborateur.address" placeholder="address"> |
||||
|
||||
<label class="col-2" for="collaborateur-telephone">Collaborateur telephone </label> |
||||
<input id="collaborateur-telephone" [(ngModel)]="collaborateur.telephone" placeholder="telephone"> |
||||
|
||||
<label class="col-2" for="collaborateur-personalMail">Collaborateur personalMail </label> |
||||
<input id="collaborateur-personalMail" [(ngModel)]="collaborateur.personalMail" placeholder="personalMail"> |
||||
|
||||
<label class="col-2" for="collaborateur-apsideMail">Collaborateur apsideMail </label> |
||||
<input id="collaborateur-apsideMail" [(ngModel)]="collaborateur.apsideMail" placeholder="apsideMail"> |
||||
|
||||
<label class="col-2" for="collaborateur-resignationDate">Collaborateur resignationDate </label> |
||||
<input id="collaborateur-resignationDate" [(ngModel)]="collaborateur.resignationDate" placeholder="resignationDate"> |
||||
|
||||
<label class="col-2" for="collaborateur-referrerId">Collaborateur referrerId </label> |
||||
<input id="collaborateur-referrerId" [(ngModel)]="collaborateur.referrerId" placeholder="referrerId"> |
||||
|
||||
<label class="col-2" for="collaborateur-businessUnitId">Collaborateur businessUnitId </label> |
||||
<input id="collaborateur-businessUnitId" [(ngModel)]="collaborateur.businessUnitId" placeholder="businessUnitId"> |
||||
</div> |
@ -0,0 +1,9 @@ |
||||
label { |
||||
color: #435960; |
||||
font-weight: bold; |
||||
} |
||||
input { |
||||
font-size: 1em; |
||||
padding: .3rem; |
||||
margin: .5rem; |
||||
} |
@ -0,0 +1,19 @@ |
||||
import {Component, Input, OnInit} from '@angular/core'; |
||||
import {Collaborateur} from "../../../interfaces/collaborateur"; |
||||
|
||||
@Component({ |
||||
selector: 'app-collaborateur-detail', |
||||
templateUrl: './collaborateur-detail.component.html', |
||||
styleUrls: ['./collaborateur-detail.component.scss'] |
||||
}) |
||||
export class CollaborateurDetailComponent implements OnInit { |
||||
|
||||
@Input() |
||||
collaborateur: Collaborateur | undefined; |
||||
|
||||
constructor() { } |
||||
|
||||
ngOnInit(): void { |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue