aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
diff options
context:
space:
mode:
authorAngelina Zhen <az8703@rit.edu>2025-03-17 22:18:47 -0400
committerAngelina Zhen <az8703@rit.edu>2025-03-17 22:18:47 -0400
commit7a5c5073e9e410b3ccc3ab7902a0d6f558277c7d (patch)
treefec30e2772f7d34c50465bdb583b0f3a4f2019a2 /ufund-ui/src/app/components/funding-basket/funding-basket.component.html
parente4e6ae9a3d142fc78f31ee19464ec5e54bfb516f (diff)
downloadJellySolutions-7a5c5073e9e410b3ccc3ab7902a0d6f558277c7d.tar.gz
JellySolutions-7a5c5073e9e410b3ccc3ab7902a0d6f558277c7d.tar.bz2
JellySolutions-7a5c5073e9e410b3ccc3ab7902a0d6f558277c7d.zip
part of funding basket ts and html
Diffstat (limited to '')
-rw-r--r--ufund-ui/src/app/components/funding-basket/funding-basket.component.html42
1 files changed, 41 insertions, 1 deletions
diff --git a/ufund-ui/src/app/components/funding-basket/funding-basket.component.html b/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
index 3fb2b5b..0a880af 100644
--- a/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
+++ b/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
@@ -1 +1,41 @@
-<p>funding-basket works!</p>
+<h1>Funding Basket</h1>
+
+<div id="needCount">
+ <label for="needCount">Needs in Basket:</label>
+ <span>{{ needCount }}</span>
+</div>
+
+<div *ngIf="isBasketEmpty">
+ <h2>There are no needs in the basket</h2>
+</div>
+
+<table class="needs" *ngIf="!isBasketEmpty">
+ <thead>
+ <tr>
+ <th class="need"></th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr *ngFor="let need of basket">
+ <td>
+ <a routerLink="/need/{{need.id}}">
+ {{need.name}}
+ </a>
+ <div>
+ <button type="button" class="addNeed" title="add need"
+ (click)="addNeed(need)">Add Need</button>
+ </div>
+ <br>
+ <div>
+ <button type="button" class="removeNeed" title="delete need"
+ (click)="removeNeed(need)">Remove Need</button>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+<br>
+<div>
+ <button type="submit" class="checkout" title="checkout"
+ (click)="checkout()">Checkout</button>
+</div> \ No newline at end of file