Skip to content

Instantly share code, notes, and snippets.

@AnkurVyas-BTC
Created March 12, 2017 13:58
Show Gist options
  • Save AnkurVyas-BTC/2c2c7a76211f0286e09b1ced4283ccc2 to your computer and use it in GitHub Desktop.
Save AnkurVyas-BTC/2c2c7a76211f0286e09b1ced4283ccc2 to your computer and use it in GitHub Desktop.
Listing books handle bar template.
<div class="row">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Book Name</th>
<th>Book Price</th>
<th>Author</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{{#books}}
<tr>
<td>{{name}}</td>
<td>{{price}}</td>
<td>{{author}}</td>
<td><button class="edit-book btn btn-warning" data-book-id="{{id}}">Edit</button>
<button class="delete-book btn btn-danger" data-book-id="{{id}}">Delete</button>
</td>
</tr>
{{/books}}
</tbody>
</table>
<div>
<button id='new-book' class="btn btn-lg btn-primary">Add New Book</button>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment