Réarrangement du code de l'éditeur de recette.

This commit is contained in:
FyloZ 2021-04-01 17:36:55 -04:00
parent 6666bb2f1a
commit 0135c457fa
2 changed files with 14 additions and 4 deletions

View File

@ -3,10 +3,20 @@
<div class="d-flex flex-column">
<div class="mt-1 pb-2">
<button mat-raised-button color="primary" routerLink="/color/list">Retour</button>
<button mat-raised-button color="accent" (click)="submit(editComponent, stepTable)"
[disabled]="editComponent.form && editComponent.form.invalid">Enregistrer
<button
mat-raised-button
color="accent"
[disabled]="editComponent.form && editComponent.form.invalid"
(click)="submit(editComponent, stepTable)">
Enregistrer
</button>
<button
*ngIf="hasDeletePermission"
mat-raised-button
color="warn"
(click)="confirmBoxComponent.show()">
Supprimer
</button>
<button mat-raised-button color="warn" *ngIf="hasDeletePermission" (click)="confirmBoxComponent.show()">Supprimer</button>
</div>
<mat-form-field>
<mat-label>Unités</mat-label>

View File

@ -1,4 +1,4 @@
import {Component, EventEmitter, Input, Output} from '@angular/core'
import {ChangeDetectorRef, Component, EventEmitter, Input, Output} from '@angular/core'
import {FormBuilder, FormControl, FormGroup} from '@angular/forms'
import {FormField} from '../entity-add/entity-add.component'
import {EmployeePermission} from '../../model/employee'