updated modal from user loan's
This commit is contained in:
@@ -77,4 +77,5 @@ nz-content {
|
|||||||
padding: 24px;
|
padding: 24px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>{{ data.user.name}} {{data.user.firstName }}</td>
|
<td>{{ data.user.name}} {{data.user.firstName }}</td>
|
||||||
<td>{{ data.book.title }}</td>
|
<td>{{ data.book.title }}</td>
|
||||||
<p>{{ data.date | date: 'dd/MM/yyyy' }}</p>
|
<td>{{ data.date | date: 'dd/MM/yyyy' }}</td>
|
||||||
<td>{{ data.plannedReturningDate | date: 'dd/MM/yyyy'}}</td>
|
<td>{{ data.plannedReturningDate | date: 'dd/MM/yyyy'}}</td>
|
||||||
<td>{{ data.effectiveReturningDate | date: 'dd/MM/yyyy'}}</td>
|
<td>{{ data.effectiveReturningDate | date: 'dd/MM/yyyy'}}</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -14,11 +14,28 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td>{{ data.name}}</td>
|
<td>{{ data.name}}</td>
|
||||||
<td>{{ data.firstName }}</td>
|
<td>{{ data.firstName }}</td>
|
||||||
<p>{{ data.email }}</p>
|
<td>{{ data.email }}</td>
|
||||||
<td>{{ data.birthDate | date: 'dd/MM/yyyy'}}</td>
|
<td>{{ data.birthDate | date: 'dd/MM/yyyy'}}</td>
|
||||||
<td>
|
<td>
|
||||||
<app-modal [name]="'Afficher'">
|
<app-modal [name]="'Afficher'">
|
||||||
<app-loan-table></app-loan-table>
|
<nz-table #basicTable [nzData]="listOfData">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Livre</th>
|
||||||
|
<th>Date d'enregistrement</th>
|
||||||
|
<th>Date de retour finale</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@for (loans of data.loan; track loans) {
|
||||||
|
<tr>
|
||||||
|
<td>{{ loans.book.title }}</td>
|
||||||
|
<td>{{ loans.date | date: 'dd/MM/yyyy' }}</td>
|
||||||
|
<td>{{ loans.effectiveReturningDate | date: 'dd/MM/yyyy'}}</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
</tbody>
|
||||||
|
</nz-table>
|
||||||
</app-modal>
|
</app-modal>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import {NzButtonComponent} from "ng-zorro-antd/button";
|
|||||||
import {UserInfo} from "../../interfaces/user.interfaces";
|
import {UserInfo} from "../../interfaces/user.interfaces";
|
||||||
import {LoanTable} from "../loan-table/loan-table";
|
import {LoanTable} from "../loan-table/loan-table";
|
||||||
import {UpdateUser} from "../update-user/update-user";
|
import {UpdateUser} from "../update-user/update-user";
|
||||||
|
import {UpdateLoan} from "../update-loan/update-loan";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-user-table',
|
selector: 'app-user-table',
|
||||||
@@ -15,7 +16,8 @@ import {UpdateUser} from "../update-user/update-user";
|
|||||||
NzButtonComponent,
|
NzButtonComponent,
|
||||||
NzTableComponent,
|
NzTableComponent,
|
||||||
LoanTable,
|
LoanTable,
|
||||||
UpdateUser
|
UpdateUser,
|
||||||
|
UpdateLoan
|
||||||
],
|
],
|
||||||
templateUrl: './user-table.html',
|
templateUrl: './user-table.html',
|
||||||
styleUrl: './user-table.css',
|
styleUrl: './user-table.css',
|
||||||
@@ -28,6 +30,42 @@ export class UserTable {
|
|||||||
email: 'mathys@biblio.fr',
|
email: 'mathys@biblio.fr',
|
||||||
birthDate: new Date('2004-05-21'),
|
birthDate: new Date('2004-05-21'),
|
||||||
loan: [
|
loan: [
|
||||||
|
{
|
||||||
|
book: {
|
||||||
|
title: 'Dune',
|
||||||
|
isbn: '9780441013593',
|
||||||
|
author: 'Frank Herbert',
|
||||||
|
releaseYear: 1965
|
||||||
|
},
|
||||||
|
user: null,
|
||||||
|
date: new Date('2025-11-01'),
|
||||||
|
plannedReturningDate: new Date('2025-12-01'),
|
||||||
|
effectiveReturningDate: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
book: {
|
||||||
|
title: 'Dune',
|
||||||
|
isbn: '9780441013593',
|
||||||
|
author: 'Frank Herbert',
|
||||||
|
releaseYear: 1965
|
||||||
|
},
|
||||||
|
user: null,
|
||||||
|
date: new Date('2025-11-01'),
|
||||||
|
plannedReturningDate: new Date('2025-12-01'),
|
||||||
|
effectiveReturningDate: null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
book: {
|
||||||
|
title: 'Dune',
|
||||||
|
isbn: '9780441013593',
|
||||||
|
author: 'Frank Herbert',
|
||||||
|
releaseYear: 1965
|
||||||
|
},
|
||||||
|
user: null,
|
||||||
|
date: new Date('2025-11-01'),
|
||||||
|
plannedReturningDate: new Date('2025-12-01'),
|
||||||
|
effectiveReturningDate: null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
book: {
|
book: {
|
||||||
title: 'Dune',
|
title: 'Dune',
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>LibraryFrontend</title>
|
<title>My Library</title>
|
||||||
<base href="/">
|
<base href="/">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
<link rel="icon" type="image/x-icon" href="https://png.pngtree.com/png-vector/20250211/ourmid/pngtree-colorful-book-stack-logo-design-perfect-for-education-or-library-projects-vector-png-image_15444285.png">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
|
|||||||
Reference in New Issue
Block a user