aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.html
diff options
context:
space:
mode:
authorbenal01 <bja4245@rit.edu>2025-03-25 08:46:45 -0400
committerbenal01 <bja4245@rit.edu>2025-03-25 08:46:45 -0400
commit20458b2ae22466d0b75a2ae60f318e514c0d905f (patch)
tree81d0d0efb7affcc66c3bfca5590825e3df082cd8 /ufund-ui/src/app/components/need-list/need-list.component.html
parent428992e125d3089aeb34da0190a3df05d0992cf0 (diff)
downloadJellySolutions-20458b2ae22466d0b75a2ae60f318e514c0d905f.tar.gz
JellySolutions-20458b2ae22466d0b75a2ae60f318e514c0d905f.tar.bz2
JellySolutions-20458b2ae22466d0b75a2ae60f318e514c0d905f.zip
need list reformatting- button does not span whole list element
Diffstat (limited to 'ufund-ui/src/app/components/need-list/need-list.component.html')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.html14
1 files changed, 10 insertions, 4 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.html b/ufund-ui/src/app/components/need-list/need-list.component.html
index 741b899..b31ccf0 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.html
+++ b/ufund-ui/src/app/components/need-list/need-list.component.html
@@ -13,13 +13,19 @@
<h2 *ngIf="searchResults.length == 0"> No Results Found </h2>
<ul>
- <li *ngFor="let need of searchResults" id="need-button-{{need.id}}" (mouseenter) ="changeText(need.id, '(details)')" (mouseleave)="changeText(need.id, '')" >
- <button [routerLink]="'/need/' + need.id">
+ <li *ngFor="let need of searchResults" id="need-button-{{need.id}}" >
+ <button [routerLink]="'/need/' + need.id" (mouseenter) ="changeText(need.id, '(details)')" (mouseleave)="changeText(need.id, '')">
<p>{{need.name}}<span id="hover-status-label-{{need.id}}"> </span></p>
+ </button>
+
+ <button (click)="add(need)" *ngIf="isHelper()">Add To Basket</button>
+ <section *ngIf="isManager()">
+ <button (click)="select(need)">
+ <img class="icon" src="/edit.png" alt="Select">
+ </button>
<button (click)="delete(need.id)" *ngIf="isManager()">
<img class="icon" src="/delete.png" alt="Delete">
</button>
- <button (click)="add(need)" *ngIf="isHelper()">Add To Basket</button>
- </button>
+ </section>
</li>
</ul> \ No newline at end of file