aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/funding-basket/funding-basket.component.html
diff options
context:
space:
mode:
authorHayden Hartman <haydenhartman10@gmail.com>2025-03-18 07:50:55 -0400
committerGitHub <noreply@github.com>2025-03-18 07:50:55 -0400
commit3362bba1ccf1cee3985be95ab74a2456e6503d7a (patch)
tree64f6b52fbd4714a29be0102ac988cb7ab02dbb33 /ufund-ui/src/app/components/funding-basket/funding-basket.component.html
parentf063bf6e8634386f6ae3a3cf13fe2228e74454c9 (diff)
parentbd41fc58b5537a12072625bbf75baf75d5ed2274 (diff)
downloadJellySolutions-2.0.tar.gz
JellySolutions-2.0.tar.bz2
JellySolutions-2.0.zip
Merge pull request #13 from RIT-SWEN-261-02/funding_basketv2.0
funding-basket merge
Diffstat (limited to 'ufund-ui/src/app/components/funding-basket/funding-basket.component.html')
-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