diff options
Diffstat (limited to 'ufund-ui/src/app/components/cupboard')
| -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,  | 
