diff options
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.html | 14 | 
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  | 
