diff options
| -rw-r--r-- | ufund-ui/public/delete.png | bin | 0 -> 6396 bytes | |||
| -rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.css | 11 | ||||
| -rw-r--r-- | ufund-ui/src/app/components/need-list/need-list.component.html | 7 | 
3 files changed, 14 insertions, 4 deletions
diff --git a/ufund-ui/public/delete.png b/ufund-ui/public/delete.png Binary files differnew file mode 100644 index 0000000..6403705 --- /dev/null +++ b/ufund-ui/public/delete.png diff --git a/ufund-ui/src/app/components/need-list/need-list.component.css b/ufund-ui/src/app/components/need-list/need-list.component.css index 64988d1..f8948ee 100644 --- a/ufund-ui/src/app/components/need-list/need-list.component.css +++ b/ufund-ui/src/app/components/need-list/need-list.component.css @@ -3,7 +3,6 @@      border: 2px solid #000;      display: block;      border-radius: 5px; -      }  li, div { @@ -11,7 +10,17 @@ li, div {      border-radius: 5px;      padding: 5px;      margin: 5px; +} + +li { +    display: flex; +    justify-content: space-between; +    align-items: center; +} +.icon { +    width: 15px; +    margin: 3px -3px -1px -3px;  }  #search-container { 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 504deb9..9f22633 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 @@ -1,12 +1,11 @@  <h1>Needs List</h1> -<input id="search-button" type="button" value="Search" (click)="open()">  <div id="search-container">      <form id="search-form" #searchForm="ngForm">          <label>Search:</label><br>          <input type="text" name="search" (input)="search(searchForm.value)" ngModel>          <input type="reset" value="Clear" (click)="search(null)"> <br>      </form> -    <button (click)="close()">Close</button> +    <!--<button (click)="close()">Close</button>-->  </div>  <!-- display for when results are present and filtered--> @@ -18,6 +17,8 @@      <a routerLink="/need/{{need.id}}">          {{need.name}}      </a> -    <button (click)="delete(need.id)" *ngIf="isManager()">Delete</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>  </li>  | 
