diff options
author | benal01 <bja4245@rit.edu> | 2025-03-06 10:40:22 -0500 |
---|---|---|
committer | benal01 <bja4245@rit.edu> | 2025-03-06 10:40:22 -0500 |
commit | ba5259048771cc780bce4d2c6977496606a7d6ca (patch) | |
tree | 02dea8e498db683fa0a52098767454d88ebf425f /ufund-ui/src/app/components/cupboard/cupboard.component.html | |
parent | bedb5fd032d645130ce804e1a36a356cf39ee9f0 (diff) | |
download | JellySolutions-ba5259048771cc780bce4d2c6977496606a7d6ca.tar.gz JellySolutions-ba5259048771cc780bce4d2c6977496606a7d6ca.tar.bz2 JellySolutions-ba5259048771cc780bce4d2c6977496606a7d6ca.zip |
API interaction for creation form and increased menu usability
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.html')
-rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.html b/ufund-ui/src/app/components/cupboard/cupboard.component.html index b767439..6faea9b 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.html +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.html @@ -1,8 +1,12 @@ <h1> Cupboard </h1> -<div id="create-button"> - <button (click)="open()">Create new Need</button> +<div id="menu"> + <button (click)="opencreate()">Create new Need</button> + <button (click)="opendestroy()">Delete all Needs</button> +</div> +<div id="destroy-form"> + <button (click)="destroy()">Really Really sure you want to delete all needs?</button> + <button (click)="back()">Close</button> </div> - <div id="create-form"> <h1> Create a new need </h1> <form #cupboardForm="ngForm" (ngSubmit)="submit(cupboardForm.value)"> @@ -18,8 +22,8 @@ <input type="radio" name="type" value="PHYSICAL" ngModel> <label>Physical</label><br> <input type="submit" value="Submit"> - <button (click)="close()">Close</button> + <button (click)="back()">Close</button> </form> </div> <hr> -<app-need-list></app-need-list> +<app-need-list></app-need-list>
\ No newline at end of file |