finish all getall into table
This commit is contained in:
36
src/app/components/book-table/book-table.html
Normal file
36
src/app/components/book-table/book-table.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<nz-table [nzData]="books()"
|
||||
[nzLoading]="booksLoading()"
|
||||
[nzFrontPagination]="false">
|
||||
<thead>
|
||||
<tr style="text-align: center">
|
||||
<th>Titre</th>
|
||||
<th>ISBN</th>
|
||||
<th>Auteur</th>
|
||||
<th>Date de publication</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="text-align: center">
|
||||
@for (book of books(); track book.id) {
|
||||
<tr>
|
||||
<td>{{ book.title}}</td>
|
||||
<td>{{ book.isbn }}</td>
|
||||
<td>{{ book.bookAuthorName }} {{ book.bookAuthorFirstName }}</td>
|
||||
<td>{{ book.releaseYear}}</td>
|
||||
<div style="justify-content: center; display: flex">
|
||||
<td>
|
||||
<app-modal [name]="'Modifier'">
|
||||
<app-update-book></app-update-book>
|
||||
</app-modal>
|
||||
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
|
||||
<div>
|
||||
<button nz-button nzType="primary" (click)="delete()" class="bg-red-600 border-red-600">Supprimer</button>
|
||||
</div>
|
||||
</td>
|
||||
</div>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</nz-table>
|
||||
Reference in New Issue
Block a user