|
|
@@ -2,66 +2,113 @@
|
|
|
|
|
|
<app-headerbox [title]="'Haushaltsmitglieder'">
|
|
|
<div toolbar>
|
|
|
- <button
|
|
|
+ <a
|
|
|
class="plus-button button"
|
|
|
title="Person hinzufügen"
|
|
|
(click)="addPerson()"
|
|
|
>
|
|
|
+
|
|
|
- </button>
|
|
|
+ </a>
|
|
|
</div>
|
|
|
<div content>
|
|
|
- <div class="table">
|
|
|
- <div class="table-header mobile-not-visble">
|
|
|
- <div class="table-cell">Nr.</div>
|
|
|
- <div class="table-cell">Kindsalter</div>
|
|
|
- <div class="table-cell">Freibeträge</div>
|
|
|
- <div class="table-cell">Gesamteinkommen</div>
|
|
|
- <div class="table-cell">Löschen</div>
|
|
|
- </div>
|
|
|
- <div class="table-body">
|
|
|
- <div class="table-row" *ngFor="let person of persons">
|
|
|
- <div class="table-header-mobile table-cell">
|
|
|
- {{ person.index }}. Person
|
|
|
- <button
|
|
|
- class="delete-button button desktop-not-visble"
|
|
|
- title="Person löschen"
|
|
|
- (click)="deletePerson(person.index)"
|
|
|
- >
|
|
|
- ×
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div class="table-cell">
|
|
|
- <span class="table-cell-header-mobile">Kindsalter</span
|
|
|
- >{{ person.index }}
|
|
|
- </div>
|
|
|
- <div class="table-cell">
|
|
|
- <span class="table-cell-header-mobile">Freibeträge</span
|
|
|
- >{{ person.index }}
|
|
|
- </div>
|
|
|
- <div class="table-cell">
|
|
|
- <span class="table-cell-header-mobile">Gesamteinkommen</span
|
|
|
- >{{ calculateTotalIncome(person) }}
|
|
|
- </div>
|
|
|
- <div class="table-cell mobile-not-visble">
|
|
|
- <button
|
|
|
- class="delete-button button"
|
|
|
- title="Person löschen"
|
|
|
- (click)="deletePerson(person.index)"
|
|
|
- >
|
|
|
- ×
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <table class="responsive-table">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>Nr.</th>
|
|
|
+ <th>Kindsalter</th>
|
|
|
+ <th>Freibeträge</th>
|
|
|
+ <th>Gesamteinkommen</th>
|
|
|
+ <th>Löschen</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <ng-container *ngFor="let person of persons">
|
|
|
+ <tr>
|
|
|
+ <td data-title="Nr.">
|
|
|
+ {{ person.index }}
|
|
|
+ </td>
|
|
|
+ <td data-title="Kindsalter">
|
|
|
+ {{ person.index }}
|
|
|
+ </td>
|
|
|
+ <td data-title="Freibeträge">
|
|
|
+ {{ person.index }}
|
|
|
+ </td>
|
|
|
+ <td data-title="Gesamteinkommen">
|
|
|
+ {{ person.totalincome }}
|
|
|
+ </td>
|
|
|
+ <td data-title="Löschen">
|
|
|
+ <a
|
|
|
+ class="delete-button button"
|
|
|
+ title="Person löschen"
|
|
|
+ (click)="deletePerson(person.index)"
|
|
|
+ >
|
|
|
+ ×
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </ng-container>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
|
|
|
</div>
|
|
|
</app-headerbox>
|
|
|
|
|
|
|
|
|
-<div *ngFor="let p of persons" style="margin-top: 20px;">
|
|
|
- <app-income [person]="p">
|
|
|
+<div *ngFor="let person of persons" style="margin-top: 20px;">
|
|
|
+ <app-headerbox [title]="'Einkommen der ' + person.index + '. Person'">
|
|
|
+ <div toolbar>
|
|
|
+ <a class="plus-button button" title="Einkommen hinzufügen" (click)="addIncome(person.index)">
|
|
|
+ +
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div content>
|
|
|
+ <table class="responsive-table">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th >Nr.</th>
|
|
|
+ <th >Typ</th>
|
|
|
+ <th>Frequenz</th>
|
|
|
+ <th >Brutto Betrag</th>
|
|
|
+ <th >jährliche Werbungskosten</th>
|
|
|
+ <th >Löschen</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <ng-container *ngFor="let income of person.incomes; let i = index">
|
|
|
+ <tr>
|
|
|
+ <td data-title="Nr.">
|
|
|
+ {{ income.index }}
|
|
|
+ </td>
|
|
|
+ <td data-title="Typ">
|
|
|
+ {{ income.type }}
|
|
|
+ </td>
|
|
|
+ <td data-title="Frequenz">
|
|
|
+ {{ income.frequency }}
|
|
|
+ </td>
|
|
|
+ <td data-title="Brutto Betrag">
|
|
|
+ <input type="number" [(ngModel)]="income.amount" (input)="calculateTotalIncome(person.index)">
|
|
|
+ </td>
|
|
|
+ <td data-title="jährliche Werbungskosten">
|
|
|
+ <input type="number" [(ngModel)]="income.advertisingCosts" (input)="calculateTotalIncome(person.index)">
|
|
|
+ </td>
|
|
|
+ <td data-title="Löschen">
|
|
|
+ <a class="delete-button button"
|
|
|
+ title="{{ income.index }}. Einkommen der {{person.index}}. Person löschen"
|
|
|
+ (click)="deleteIncome(person.index, income.index)">
|
|
|
+ ×
|
|
|
+ </a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </ng-container>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </app-headerbox>
|
|
|
+</div>
|
|
|
|
|
|
- </app-income>
|
|
|
+<app-headerbox [title]="'WBS berechnen'">
|
|
|
+ <div content>
|
|
|
+ <button>WBS berechnen</button>
|
|
|
</div>
|
|
|
+</app-headerbox>
|