Files
lmnp-organizer/frontend/src/app/components/apartments-page/apartments-page.html
T
nessar 82f339e209 Refactor application structure to use WorkspaceService for state management
- Removed direct state management from components and centralized it in WorkspaceService.
- Updated ApartmentsPage, TenantsPage, LeasesPage, and DashboardPage to utilize WorkspaceService for data handling.
- Introduced SessionService to manage user session state and authentication.
- Simplified component templates to reflect new service-based architecture.
- Removed unused ConfigService and its tests.
- Added lease.html template for lease document generation.
- Created app.routes.spec.ts for route mapping tests.
2026-08-17 14:18:15 +02:00

17 lines
450 B
HTML

<section class="page-section apartments-page">
@if (!showForm()) {
<app-apartment-list
[apartments]="workspace.apartments()"
(addRequested)="openAddForm()"
(editRequested)="openEditForm($event)"
(deleteRequested)="workspace.deleteApartment($event)"
/>
} @else {
<app-apartment-form
[apartment]="editingApartment()"
(closed)="closeForm()"
(saved)="saveApartment($event)"
/>
}
</section>