diff options
Diffstat (limited to 'ufund-ui')
| -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 | ||||
| -rw-r--r-- | ufund-ui/src/app/models/Need.ts | 1 | 
3 files changed, 6 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, diff --git a/ufund-ui/src/app/models/Need.ts b/ufund-ui/src/app/models/Need.ts index 2a2800c..6cf7e76 100644 --- a/ufund-ui/src/app/models/Need.ts +++ b/ufund-ui/src/app/models/Need.ts @@ -1,5 +1,6 @@  export interface Need {      name: string, +    image: string,      id: number,      filterAttributes: string[],      location: string;  | 
