|
| 1 | +<ActionBar title="Budget" |
| 2 | + class="action-bar"> |
| 3 | + <ActionItem (tap)="onEditButtonTap()" |
| 4 | + ios.systemIcon="2" |
| 5 | + ios.position="right" |
| 6 | + android.position="left" |
| 7 | + *ngIf="state == 'read'"> |
| 8 | + <Label text="Edit" |
| 9 | + class="action-item"></Label> |
| 10 | + </ActionItem> |
| 11 | + <ActionItem ios.position="right" |
| 12 | + android.position="right" |
| 13 | + (tap)="onSaveButtonTap()" |
| 14 | + *ngIf="state == 'edit'"> |
| 15 | + <Label text="Save" |
| 16 | + class="action-item"></Label> |
| 17 | + </ActionItem> |
| 18 | + <ActionItem ios.position="left" |
| 19 | + android.position="left" |
| 20 | + (tap)="onCancelButtonTap()" |
| 21 | + *ngIf="state == 'edit'"> |
| 22 | + <Label text="Cancel" |
| 23 | + class="action-item"></Label> |
| 24 | + </ActionItem> |
| 25 | + <NavigationButton text="Go Back" |
| 26 | + android.systemIcon="ic_menu_back" |
| 27 | + (tap)="onBackTap()" |
| 28 | + class="btn-back"></NavigationButton> |
| 29 | +</ActionBar> |
| 30 | + |
| 31 | +<StackLayout> |
| 32 | + <FlexboxLayout> |
| 33 | + <Label text="Budget for a mounth - " |
| 34 | + class="budget-label" |
| 35 | + *ngIf="state == 'read'"></Label> |
| 36 | + <Label [text]="budgetService.budget" |
| 37 | + class="budget-item" |
| 38 | + *ngIf="state == 'read'"></Label> |
| 39 | + </FlexboxLayout> |
| 40 | + |
| 41 | + <TextField [text]="budgetService.budget" |
| 42 | + keyboardType="number" |
| 43 | + *ngIf="state == 'edit'" |
| 44 | + class="get-budget" |
| 45 | + #newBudgetTextField></TextField> |
| 46 | + |
| 47 | + <FlexboxLayout> |
| 48 | + <Label text="Budget for a day - " |
| 49 | + class="budget-label"></Label> |
| 50 | + <Label [text]="budgetService.budgetForDay" |
| 51 | + class="budget-item"></Label> |
| 52 | + </FlexboxLayout> |
| 53 | +</StackLayout> |
| 54 | + |
| 55 | + |
0 commit comments