Employé -> Utilisateur
This commit is contained in:
parent
7d85053d81
commit
d1ca6e7ad1
|
@ -1,6 +1,6 @@
|
|||
<mat-card class="x-centered mt-5">
|
||||
<mat-card-header>
|
||||
<mat-card-title>Création d'un employé</mat-card-title>
|
||||
<mat-card-title>Création d'un utilisateur</mat-card-title>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
<form [formGroup]="form">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<mat-card *ngIf="employee" class="x-centered mt-5">
|
||||
<mat-card-header>
|
||||
<mat-card-title>Modification de l'employé #{{employee.id}}</mat-card-title>
|
||||
<mat-card-title>Modification de l'utilisateur #{{employee.id}}</mat-card-title>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
<form [formGroup]="form">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<mat-card *ngIf="employee" class="x-centered mt-5">
|
||||
<form [formGroup]="form">
|
||||
<mat-card-header>
|
||||
<mat-card-title>Modification du mot de passe de l'employé #{{employee.id}}</mat-card-title>
|
||||
<mat-card-title>Modification du mot de passe de l'utilisateur #{{employee.id}}</mat-card-title>
|
||||
</mat-card-header>
|
||||
<mat-card-content>
|
||||
<mat-form-field>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<td mat-cell *matCellDef="let group">{{group.permissions.length}}</td>
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="employeeCount">
|
||||
<th mat-header-cell *matHeaderCellDef>Nombre d'employés</th>
|
||||
<th mat-header-cell *matHeaderCellDef>Nombre d'utilisateurs</th>
|
||||
<td mat-cell *matCellDef="let group">{{group.employeeCount}}</td>
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="defaultGroup">
|
||||
|
|
|
@ -15,7 +15,7 @@ export class HeaderComponent extends SubscribingComponent {
|
|||
links: HeaderLink[] = [
|
||||
{route: '/color', title: 'Couleurs', requiredPermission: EmployeePermission.VIEW_RECIPE},
|
||||
{route: '/catalog', title: 'Catalogue', enabled: true},
|
||||
{route: '/employee', title: 'Employés', requiredPermission: EmployeePermission.VIEW_EMPLOYEE},
|
||||
{route: '/employee', title: 'Utilisateurs', requiredPermission: EmployeePermission.VIEW_EMPLOYEE},
|
||||
{route: '/group', title: 'Groupes', requiredPermission: EmployeePermission.VIEW_EMPLOYEE_GROUP},
|
||||
{route: '/account/login', title: 'Connexion', enabled: true},
|
||||
{route: '/account/logout', title: 'Déconnexion', enabled: false},
|
||||
|
|
|
@ -65,7 +65,7 @@ export const mapped_permissions = {
|
|||
description: 'Voir',
|
||||
impliedPermissions: [EmployeePermission.VIEW_MATERIAL, EmployeePermission.VIEW_MATERIAL_TYPE, EmployeePermission.VIEW_COMPANY, EmployeePermission.VIEW_RECIPE]
|
||||
},
|
||||
{permission: EmployeePermission.VIEW_EMPLOYEE, description: 'Voir les employés', impliedPermissions: []},
|
||||
{permission: EmployeePermission.VIEW_EMPLOYEE, description: 'Voir les utilisateurs', impliedPermissions: []},
|
||||
{permission: EmployeePermission.VIEW_EMPLOYEE_GROUP, description: 'Voir les groupes', impliedPermissions: []},
|
||||
],
|
||||
edit: [
|
||||
|
@ -96,7 +96,7 @@ export const mapped_permissions = {
|
|||
},
|
||||
{
|
||||
permission: EmployeePermission.EDIT_EMPLOYEE,
|
||||
description: 'Modifier les employés',
|
||||
description: 'Modifier les utilisateurs',
|
||||
impliedPermissions: [EmployeePermission.VIEW_EMPLOYEE]
|
||||
},
|
||||
{
|
||||
|
@ -138,7 +138,7 @@ export const mapped_permissions = {
|
|||
},
|
||||
{
|
||||
permission: EmployeePermission.REMOVE_EMPLOYEE,
|
||||
description: 'Supprimer des employés',
|
||||
description: 'Supprimer des utilisateurs',
|
||||
impliedPermissions: [EmployeePermission.EDIT_EMPLOYEE]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue