Files
smartguide/webapp/src/app/modules/organizations/organizations.component.html
T
farajollahi 5a91887861
LocationBasedServices/smartguide/pipeline/head There was a failure building this commit
LocationBasedServices/smartguide/pipeline/pr-auth There was a failure building this commit
implement organisation management
2026-06-29 19:11:03 +02:00

106 lines
3.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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>