106 lines
3.0 KiB
HTML
106 lines
3.0 KiB
HTML
<section class="organizations-page">
|
||
<header class="page-header">
|
||
<div>
|
||
<h1>Organisationen</h1>
|
||
<p>Mandanten, externe Institutions-IDs und Status verwalten.</p>
|
||
</div>
|
||
<button
|
||
mat-flat-button
|
||
color="primary"
|
||
type="button"
|
||
(click)="startCreate()">
|
||
<mat-icon>add_business</mat-icon>
|
||
Neue Organisation
|
||
</button>
|
||
</header>
|
||
|
||
<section class="table-panel">
|
||
<div class="table-header">
|
||
<strong>{{ total }} Organisationen</strong>
|
||
@if (isLoading) {
|
||
<span>Wird geladen...</span>
|
||
}
|
||
</div>
|
||
|
||
<div class="table-wrap">
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Name</th>
|
||
<th>Externe Institutions-ID</th>
|
||
<th>Mitglieder</th>
|
||
<th>Status</th>
|
||
<th>Aktionen</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
@for (organization of organizations; track organization.id) {
|
||
<tr [class.deleted]="organization.deleted">
|
||
<td>
|
||
<button
|
||
class="link-button"
|
||
type="button"
|
||
(click)="startEdit(organization)">
|
||
{{ organization.name }}
|
||
</button>
|
||
</td>
|
||
<td>{{ organization.other_inst_id || '–' }}</td>
|
||
<td>{{ organization.member_count }}</td>
|
||
<td>
|
||
<span
|
||
class="status"
|
||
[class.status--deleted]="organization.deleted">
|
||
{{ organization.deleted ? 'deleted' : 'active' }}
|
||
</span>
|
||
</td>
|
||
<td>
|
||
<div class="row-actions">
|
||
<button
|
||
mat-icon-button
|
||
type="button"
|
||
aria-label="Bearbeiten"
|
||
(click)="startEdit(organization)">
|
||
<mat-icon>edit</mat-icon>
|
||
</button>
|
||
<button
|
||
mat-icon-button
|
||
type="button"
|
||
aria-label="Deaktivieren"
|
||
[disabled]="organization.deleted"
|
||
(click)="deleteOrganization(organization)">
|
||
<mat-icon>delete</mat-icon>
|
||
</button>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
} @empty {
|
||
<tr>
|
||
<td colspan="6" class="empty">Keine Organisationen gefunden.</td>
|
||
</tr>
|
||
}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="pagination">
|
||
<button
|
||
mat-button
|
||
type="button"
|
||
[disabled]="!canPageBack"
|
||
(click)="loadOrganizations(page - 1)">
|
||
<mat-icon>chevron_left</mat-icon>
|
||
Zurück
|
||
</button>
|
||
<span>Seite {{ page + 1 }}</span>
|
||
<button
|
||
mat-button
|
||
type="button"
|
||
[disabled]="!canPageForward"
|
||
(click)="loadOrganizations(page + 1)">
|
||
Weiter
|
||
<mat-icon>chevron_right</mat-icon>
|
||
</button>
|
||
</div>
|
||
</section>
|
||
</section>
|