diff options
author | benal01 <bja4245@rit.edu> | 2025-03-31 17:51:17 -0400 |
---|---|---|
committer | benal01 <bja4245@rit.edu> | 2025-03-31 17:51:17 -0400 |
commit | a2e1329a510375fdada021c3d6a2f631a9c162ee (patch) | |
tree | 7d9699b0fd83747b45b07e1e6c957d55ce617fe2 /ufund-ui/src/app/components | |
parent | 371caf37fb71fd9adf89e52a5557a9359d680539 (diff) | |
download | JellySolutions-a2e1329a510375fdada021c3d6a2f631a9c162ee.tar.gz JellySolutions-a2e1329a510375fdada021c3d6a2f631a9c162ee.tar.bz2 JellySolutions-a2e1329a510375fdada021c3d6a2f631a9c162ee.zip |
image property frontend support
Diffstat (limited to 'ufund-ui/src/app/components')
-rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.html | 3 | ||||
-rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.ts | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index f6a2041..855bd7e 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -13,6 +13,8 @@ <form #cupboardForm="ngForm" (ngSubmit)="submit(cupboardForm.value)"> <label>Name:</label><br> <input type="text" name="name" ngModel><br> + <label>Image:</label><br> + <input type="text" name="image" ngModel><br> <label>Location:</label><br> <input type="text" name="location" ngModel><br> <label>Max Goal:</label><br> @@ -37,6 +39,7 @@ <label>Needs:</label><br> <form #updateForm="ngForm" (ngSubmit)="update(updateForm.value)"> <input type="text" name="name" [(ngModel)]="selectedNeed.name"><br> + <input type="text" name="image" [(ngModel)]="selectedNeed.image"><br> <input type="text" name="location" [(ngModel)]="selectedNeed.location"><br> <label>Max Goal:</label><br> <input type="number" name="maxGoal" [(ngModel)]="selectedNeed.maxGoal"><br> diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.ts b/ufund-ui/src/app/components/cupboard/cupboard.component.ts index feb39e0..9c8a173 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.ts +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.ts @@ -85,6 +85,7 @@ export class CupboardComponent implements OnInit { console.log(form); const need: Need = { name: form.name, + image: form.image, location: form.location, id: this.selectedNeed.id, //system will control this maxGoal: form.maxGoal, @@ -122,6 +123,7 @@ export class CupboardComponent implements OnInit { submit(form: any) { const need: Need = { name: form.name, + image: form.image, location: form.location, id: 0, maxGoal: form.maxGoal, |