Advertisement
Shell_Casing

template

Nov 19th, 2018
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.81 KB | None | 0 0
  1. <a routerLink="/admin/products/new" class="btn btn-primary my-3">New product</a>
  2.  
  3. <div class="form-inline my-2 my-lg-0">
  4.   <input #query (keyup)="filterProducts(query.value)" class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
  5. </div>
  6.  
  7.  
  8. <table class="table table-striped my-3">
  9.   <thead>
  10.   <tr>
  11.     <th>Title</th> <th>Category</th> <th>Price</th>
  12.   </tr>
  13.   </thead>
  14.   <tbody>
  15.   <tr *ngFor="let product of filteredProducts">
  16.     <td>{{ product.title }}</td>
  17.     <td>{{ product.category }}</td>
  18.     <td>{{ product.price | currency: 'USD': 'symbol-narrow' }}</td>
  19.     <td><a (click)="editProduct(product._id)" class="btn btn-link btn-info">Edit</a></td>
  20.     <td><a (click)="deleteProduct(product._id)" class="btn btn-link btn-danger">Delete</a></td>
  21.   </tr>
  22.   </tbody>
  23. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement