templates aus listen erstellen

This commit is contained in:
Bastian Wagner
2026-06-15 10:38:35 +02:00
parent c2d2157de8
commit 8caf207c7b
8 changed files with 243 additions and 4 deletions

View File

@@ -42,10 +42,26 @@
<mat-card-header>
<mat-card-title>Details</mat-card-title>
@if (!isCreateMode()) {
<button mat-stroked-button type="button" (click)="showEditor() ? cancelEditing() : startEditing()">
<mat-icon aria-hidden="true">{{ showEditor() ? 'close' : 'edit' }}</mat-icon>
{{ showEditor() ? 'Abbrechen' : 'Bearbeiten' }}
</button>
<div class="detail-actions">
<button
mat-stroked-button
type="button"
[disabled]="creatingTemplate()"
(click)="createTemplateFromList()"
>
@if (creatingTemplate()) {
<mat-progress-spinner mode="indeterminate" diameter="18" />
} @else {
<mat-icon aria-hidden="true">content_copy</mat-icon>
}
Template
</button>
<button mat-stroked-button type="button" (click)="showEditor() ? cancelEditing() : startEditing()">
<mat-icon aria-hidden="true">{{ showEditor() ? 'close' : 'edit' }}</mat-icon>
{{ showEditor() ? 'Abbrechen' : 'Bearbeiten' }}
</button>
</div>
}
</mat-card-header>