diff options
author | Tyler Ferrari <69283684+Sowgro@users.noreply.github.com> | 2025-03-31 23:01:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-31 23:01:28 -0400 |
commit | 469678629e456a792e5f0c328e7c6786064279cb (patch) | |
tree | 2c3a13246596e01d4bc95166d25548311e5be25f /ufund-ui/src/app/components/need-edit/need-edit.component.html | |
parent | 4f8ddd385924b3c7c2b36acd28daf658ecc2cb09 (diff) | |
parent | 4186983da13740ec0a4731770ac238922631be11 (diff) | |
download | JellySolutions-469678629e456a792e5f0c328e7c6786064279cb.tar.gz JellySolutions-469678629e456a792e5f0c328e7c6786064279cb.tar.bz2 JellySolutions-469678629e456a792e5f0c328e7c6786064279cb.zip |
Merge pull request #23 from RIT-SWEN-261-02/need-edit-component
Need edit component
Diffstat (limited to 'ufund-ui/src/app/components/need-edit/need-edit.component.html')
-rw-r--r-- | ufund-ui/src/app/components/need-edit/need-edit.component.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ufund-ui/src/app/components/need-edit/need-edit.component.html b/ufund-ui/src/app/components/need-edit/need-edit.component.html new file mode 100644 index 0000000..bcb166b --- /dev/null +++ b/ufund-ui/src/app/components/need-edit/need-edit.component.html @@ -0,0 +1,22 @@ +<div id="update-form"> + <h1> Update Need </h1> + <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> + <label>Type</label><br> + <input type="radio" name="type" value="MONETARY" [(ngModel)]="selectedNeed.type"> + <label>Monetary</label><br> + <input type="radio" name="type" value="PHYSICAL" [(ngModel)]="selectedNeed.type"> + <label>Physical</label><br> + <input type="checkbox" name="urgent" [(ngModel)]="selectedNeed.urgent"> + <label>Urgent</label> <br> + <label>Description</label> <br> + <textarea name="description" [(ngModel)]="selectedNeed.description"></textarea><br> + <input type="submit" value="Submit"> + + </form> +</div>
\ No newline at end of file |