|
|
|
@ -1,54 +1,96 @@ |
|
|
|
|
<div *ngIf="collaborateur" style="overflow-x:auto;" class="mb-3"> |
|
|
|
|
|
|
|
|
|
<table class="mb-3"> |
|
|
|
|
<tr> |
|
|
|
|
<th>Name</th> |
|
|
|
|
<th>First Name</th> |
|
|
|
|
<th>Birth Date</th> |
|
|
|
|
<th>Gender</th> |
|
|
|
|
<th>Status</th> |
|
|
|
|
<th>Children Number</th> |
|
|
|
|
<th>Address</th> |
|
|
|
|
<th>Telephone</th> |
|
|
|
|
<th>Personal Mail</th> |
|
|
|
|
<th>Apside Mail</th> |
|
|
|
|
<th>Resignation Date</th> |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
<td><input id="collaborateur-name" [(ngModel)]="collaborateur.name" placeholder="name"></td> |
|
|
|
|
<td><input id="collaborateur-firstName" [(ngModel)]="collaborateur.firstName" placeholder="firstname"></td> |
|
|
|
|
<td><input id="collaborateur-birthDate" [(ngModel)]="collaborateur.birthDate" placeholder="birthDate"></td> |
|
|
|
|
<td><input id="collaborateur-gender" [(ngModel)]="collaborateur.gender" placeholder="gender"></td> |
|
|
|
|
<td><input id="collaborateur-status" [(ngModel)]="collaborateur.status" placeholder="status"></td> |
|
|
|
|
<td><input id="collaborateur-childrenNumber" [(ngModel)]="collaborateur.childrenNumber" placeholder="childrenNumber"></td> |
|
|
|
|
<td><input id="collaborateur-address" [(ngModel)]="collaborateur.address" placeholder="address"></td> |
|
|
|
|
<td><input id="collaborateur-telephone" [(ngModel)]="collaborateur.telephone" placeholder="telephone"></td> |
|
|
|
|
<td><input id="collaborateur-personalMail" [(ngModel)]="collaborateur.personalMail" placeholder="personalMail"></td> |
|
|
|
|
<td><input id="collaborateur-apsideMail" [(ngModel)]="collaborateur.apsideMail" placeholder="apsideMail"></td> |
|
|
|
|
<td><input id="collaborateur-resignationDate" [(ngModel)]="collaborateur.resignationDate" placeholder="resignationDate"></td> |
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
<select name="referrer" id="referrer-select" [(ngModel)]="collaborateur.referrerId"> |
|
|
|
|
<option value="">-- Choisissez un référent pour le nouveau collaborateur --</option> |
|
|
|
|
<option *ngFor="let collaborateur of collaborateurs" [ngValue]="collaborateur.id">{{collaborateur.name}} {{collaborateur.firstName}}</option> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select name="businessunit" id="businessunit-select" [(ngModel)]="collaborateur.businessUnitId"> |
|
|
|
|
<option value="">-- Choisissez la Business Unit pour le nouveau collaborateur --</option> |
|
|
|
|
<option *ngFor="let businessunit of businessunits" [ngValue]="businessunit.id">{{businessunit.name}} </option> |
|
|
|
|
</select> |
|
|
|
|
<br/> |
|
|
|
|
<span> |
|
|
|
|
*Tous les champs sont obligatoires |
|
|
|
|
</span> |
|
|
|
|
<div *ngIf="collaborateur" class="mb-3"> |
|
|
|
|
|
|
|
|
|
<div class="row mb-2"> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
<label for="collaborateur-name" class="form-label">Nom</label> |
|
|
|
|
<input class="form-control" id="collaborateur-name" [(ngModel)]="collaborateur.name" placeholder="Nom"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
<label for="collaborateur-firstName" class="form-label">Prénom</label> |
|
|
|
|
<input class="form-control" id="collaborateur-firstName" [(ngModel)]="collaborateur.firstName" placeholder="Prénom"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
<label for="collaborateur-birthDate" class="form-label">Date de naissance</label> |
|
|
|
|
<input type="date" class="form-control" id="collaborateur-birthDate" (change)="onBirthDateChange($event)" [(ngModel)]="bDate" placeholder="Date de naissance"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
<label class="form-label">Genre</label> |
|
|
|
|
<select class="form-select" name="genre" id="collaborateur-gender" [(ngModel)]="collaborateur.gender"> |
|
|
|
|
<option value="" disabled selected>Genre</option> |
|
|
|
|
<option value="MASCULIN">Masculin</option> |
|
|
|
|
<option value="FEMININ">Féminin</option> |
|
|
|
|
<option value="AUTRE">Autre</option> |
|
|
|
|
</select> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="row mb-2"> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
<label for="collaborateur-status" class="form-label">Statut</label> |
|
|
|
|
<input class="form-control" id="collaborateur-status" [(ngModel)]="collaborateur.status" placeholder="Statut"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
<label for="collaborateur-childrenNumber" class="form-label">Nombre d'enfants</label> |
|
|
|
|
<input type="number" min="0" onkeyup="if(this.value<0){this.value= this.value * -1}" class="form-control" id="collaborateur-childrenNumber" [(ngModel)]="collaborateur.childrenNumber" placeholder="Nombre d'enfants"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
<label for="collaborateur-address" class="form-label">Adresse</label> |
|
|
|
|
<input class="form-control" id="collaborateur-address" [(ngModel)]="collaborateur.address" placeholder="Adresse"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
<label for="collaborateur-telephone" class="form-label">Téléphone</label> |
|
|
|
|
<input class="form-control" id="collaborateur-telephone" [(ngModel)]="collaborateur.telephone" placeholder="Téléphone"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="row mb-4"> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
<label for="collaborateur-personalMail" class="form-label">Mail personnel</label> |
|
|
|
|
<input type="email" class="form-control" id="collaborateur-personalMail" [(ngModel)]="collaborateur.personalMail" placeholder="prenom.nom@example.com"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
<label for="collaborateur-apsideMail" class="form-label">Mail Apside</label> |
|
|
|
|
<input type="email" class="form-control" id="collaborateur-apsideMail" [(ngModel)]="collaborateur.apsideMail" placeholder="prenom.nom@apside-groupe.com"> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
<label for="collaborateur-resignationDate" class="form-label">Date de départ</label> |
|
|
|
|
<input type="date" class="form-control" id="collaborateur-resignationDate" (change)="onResignationDateChange($event)" [ngModel]="rDate" placeholder="Date de départ"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="row mb-2"> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-md-6"> |
|
|
|
|
<label class="form-label">Référent</label> |
|
|
|
|
<select class="form-select" name="referrer" id="referrer-select" [(ngModel)]="collaborateur.referrerId"> |
|
|
|
|
<option value="" disabled selected>Choisissez un référent pour le collaborateur</option> |
|
|
|
|
<option *ngFor="let collaborateur of collaborateurs" [ngValue]="collaborateur.id">{{collaborateur.name}} {{collaborateur.firstName}}</option> |
|
|
|
|
</select> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-md-6"> |
|
|
|
|
<label class="form-label">Business Unit</label> |
|
|
|
|
<select class="form-select" name="businessunit" id="businessunit-select" [(ngModel)]="collaborateur.businessUnitId"> |
|
|
|
|
<option value="" disabled selected>Choisissez la Business Unit pour le collaborateur</option> |
|
|
|
|
<option *ngFor="let businessunit of businessunits" [ngValue]="businessunit.id">{{businessunit.name}} </option> |
|
|
|
|
</select> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<br/> |
|
|
|
|
<span> |
|
|
|
|
*Tous les champs sont obligatoires |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|