-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathupdate-item.page.html
More file actions
23 lines (22 loc) · 949 Bytes
/
update-item.page.html
File metadata and controls
23 lines (22 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<ion-header>
<ion-toolbar color="tertiary">
<ion-title>Update Item</ion-title>
<ion-buttons slot="start">
<ion-back-button></ion-back-button>
</ion-buttons>
</ion-toolbar>
</ion-header>
<ion-content *ngIf="item" padding>
<form [formGroup]="edit_item_form" (ngSubmit)="updateItem(edit_item_form.value)">
<ion-item>
<ion-label color="tertiary" position="floating">Title</ion-label>
<ion-input type="text" formControlName="title" required></ion-input>
</ion-item>
<ion-item>
<ion-label color="tertiary" position="floating">Description</ion-label>
<ion-input type="text" formControlName="description" required></ion-input>
</ion-item>
<ion-button class="submit-btn" expand="block" type="submit" [disabled]="!edit_item_form.valid">Update</ion-button>
</form>
<ion-button class="submit-btn" expand="block" (click)="deleteItem(item)" type="submit">Delete</ion-button>
</ion-content>