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-04-04 15:38:02 -0400
committerGitHub <noreply@github.com>2025-04-04 15:38:02 -0400
commit24ab92f79ccbb1a109ed1186b7b8030cae768eab (patch)
tree5bdda3e7c6e560f06a1fef8074cc4169f0a705b3 /ufund-ui/src/app/components/funding-basket/funding-basket.component.html
parent2423f4ee67e7e9079e12ecde51326472308cf22f (diff)
parent8c38792e8e257cf264d5739e80e085c824ccecd8 (diff)
downloadJellySolutions-24ab92f79ccbb1a109ed1186b7b8030cae768eab.tar.gz
JellySolutions-24ab92f79ccbb1a109ed1186b7b8030cae768eab.tar.bz2
JellySolutions-24ab92f79ccbb1a109ed1186b7b8030cae768eab.zip
Merge pull request #26 from RIT-SWEN-261-02/checkout-improvement
Checkout improvement
Diffstat (limited to '')
-rw-r--r--ufund-ui/src/app/components/funding-basket/funding-basket.component.html39
1 files changed, 1 insertions, 38 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 52b35c1..bba66a3 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,36 +1,3 @@
-
-<!--<div id="needCount">-->
-<!-- <label for="needCount">Needs in Basket:</label>-->
-<!-- <span>{{ this.usersService.getBasket().getValue().length }}</span>-->
-<!--</div>-->
-
-<!--<div *ngIf="this.usersService.getBasket().getValue().length == 0">-->
-<!-- <h2>There are no needs in the basket</h2>-->
-<!--</div>-->
-
-<!--<table class="needs" id="funding-basket" *ngIf="this.usersService.getBasket().getValue().length != 0">-->
-<!-- <thead>-->
-<!-- <tr>-->
-<!-- <th class="need"></th>-->
-<!-- </tr>-->
-<!-- </thead>-->
-<!-- <tbody>-->
-<!-- <tr *ngFor="let need of usersService.getBasket().getValue()">-->
-<!-- <td>-->
-<!-- <a routerLink="/need/{{need.id}}">{{need.name}}</a>-->
-<!-- <p>Goal: {{need.maxGoal}}</p>-->
-<!-- <p>Current: {{(need.current).toFixed(2)}}</p>-->
-<!-- <p>How much to Contribute: <input type="number" placeholder="insert value" min="1" id={{need.id}} class="contribution"></p>-->
-<!-- <br>-->
-<!-- <div>-->
-<!-- <button type="button" class="removeNeed" title="delete need"-->
-<!-- (click)="this.usersService.removeNeed(need.id)">Remove Need</button>-->
-<!-- </div>-->
-<!-- </td>-->
-<!-- </tr>-->
-<!-- </tbody>-->
-<!--</table>-->
-<!--<br>-->
<div id="box">
<h1>Funding Basket</h1>
<ng-template [ngIf]="usersService.getBasket().getValue().length">
@@ -56,14 +23,10 @@
<span>{{need.current}}/{{need.maxGoal}} ({{((need.current / need.maxGoal) * 100).toFixed(0)}}%)</span>
<progress [value]="need.current" [max]="need.maxGoal"></progress>
</div>
-
- <!-- <div class="description">-->
- <!-- {{need.description}}-->
- <!-- </div>-->
</div>
<div class="actionArea">
- <input type="number" placeholder="Quantity" min="1" id={{need.id}} class="contribution">
+ <input type="number" placeholder="Quantity" min="1" [id]="need.id" class="contribution" (input)="resetColor($event)">
<button class="removeNeed" title="delete need" (click)="this.usersService.removeNeed(need.id)">
<span class="icon">delete</span> Remove from Basket
</button>