diff options
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.html | 19 | 
1 files changed, 7 insertions, 12 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 b8633b8..178a2cd 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 @@ -9,7 +9,7 @@      <h2>There are no needs in the basket</h2>  </div> -<table class="needs" *ngIf="this.usersService.getBasket().getValue().length != 0"> +<table class="needs" id="funding-basket" *ngIf="this.usersService.getBasket().getValue().length != 0">      <thead>          <tr>              <th class="need"></th> @@ -18,20 +18,14 @@      <tbody>          <tr *ngFor="let need of usersService.getBasket().getValue()">              <td> -                <a routerLink="/need/{{need.id}}"> -                    {{need.name}} -                </a> +                <a routerLink="/need/{{need.id}}">{{need.name}}</a>                  <p>Goal: {{need.maxGoal}}</p>                  <p>Current: {{need.current}}</p> -                <p>How much to Contribute: <input type="number" #contribution></p> -                <div> -                <!-- <button type="button" class="addNeed" title="add need" -                (click)="addNeed(need)">Add Need</button> --> -                </div> +                <p>How much to Contribute: <input type="number" placeholder="insert value" min="0" 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> +                    <button type="button" class="removeNeed" title="delete need" +                    (click)="this.usersService.removeNeed(need.id)">Remove Need</button>                  </div>              </td>          </tr> @@ -39,5 +33,6 @@  </table>  <br>  <div> -    <button type="submit" class="checkout" title="checkout">Checkout</button> +    <p *ngIf="!isValid">Invalid input in funding basket!</p> +    <button type="submit" class="checkout" title="checkout" (click)="checkout()">Checkout</button>  </div>
\ No newline at end of file  | 
