53 lines
1.3 KiB
HTML
53 lines
1.3 KiB
HTML
<section class="organizations-page">
|
|
<header class="page-header">
|
|
<div>
|
|
<h1>Organisationen</h1>
|
|
<p>Mandanten, externe Institutions-IDs und Status verwalten.</p>
|
|
<!-- Was meinte die KI mit Mandanten? -->
|
|
</div>
|
|
<button
|
|
mat-flat-button
|
|
color="primary"
|
|
type="button"
|
|
(click)="startCreate()">
|
|
<mat-icon>add_business</mat-icon>
|
|
Neue Organisation
|
|
</button>
|
|
</header>
|
|
|
|
<mat-card appearance="outlined">
|
|
<mat-card-content>
|
|
<app-data-table
|
|
[columns]="organizationColumns"
|
|
[data]="organizationPage().items" />
|
|
</mat-card-content>
|
|
</mat-card>
|
|
<app-query-param-paginator [total]="organizationPage().total" />
|
|
</section>
|
|
|
|
<ng-template #organizationStatusTmp let-row>
|
|
<span class="status" [class.status--deleted]="row.deleted">
|
|
{{ (row.deleted ? 'inactive' : 'active') | status }}
|
|
</span>
|
|
</ng-template>
|
|
|
|
<ng-template #organizationActionsTmp let-row>
|
|
<div class="row-actions">
|
|
<button
|
|
mat-icon-button
|
|
type="button"
|
|
aria-label="Bearbeiten"
|
|
(click)="startEdit(row)">
|
|
<mat-icon>edit</mat-icon>
|
|
</button>
|
|
<button
|
|
mat-icon-button
|
|
type="button"
|
|
aria-label="Deaktivieren"
|
|
[disabled]="row.deleted"
|
|
(click)="deleteOrganization(row)">
|
|
<mat-icon>delete</mat-icon>
|
|
</button>
|
|
</div>
|
|
</ng-template>
|