This commit is contained in:
Sana EL HIRI 2022-03-22 12:36:25 +01:00
parent a2cf4f55ed
commit 33c431921d
5 changed files with 61 additions and 33 deletions

View File

@ -13,8 +13,8 @@
margin-right: auto; margin-right: auto;
border: solid 1px; border: solid 1px;
border-radius: 10px; border-radius: 10px;
background-color: #64c982; background-color: #306340;
border-color: #64c982; border-color: #306340;
} }
.form-plant .checkbox { .form-plant .checkbox {
@ -70,6 +70,6 @@
.btn-outline-success { .btn-outline-success {
margin-top: 10px; margin-top: 10px;
background-color: #ffff; background-color: #ffff;
color: #64c982 !important; color: #306340 !important;
border-color: #64c982 !important; border-color: #306340 !important;
} }

View File

@ -1,4 +1,6 @@
h1{ h1{
display: flex;
justify-content: center;
color: rgba(0, 0, 0, 0.658); color: rgba(0, 0, 0, 0.658);
font-size: 28px; font-size: 28px;
margin-top: 20px; margin-top: 20px;

View File

@ -1,4 +1,6 @@
h1{ h1{
display: flex;
justify-content: center;
color: rgba(0, 0, 0, 0.658); color: rgba(0, 0, 0, 0.658);
font-size: 28px; font-size: 28px;
margin-top: 20px; margin-top: 20px;

View File

@ -1,5 +1,9 @@
<div id="container">
<div id="button">
<button class="w-100 btn btn-lg btn-outline-success" routerLink="../ajouter">Ajouter une plante </button>
</div>
<table class="table" *ngIf="subCollection$ | async as collection"> <table class="table" *ngIf="subCollection$ | async as collection">
<thead class="thead-dark"> <thead class="thead-dark" style="background-color: #306340 ; color:#f3f7f4 ;">
<tr> <tr>
<th scope="col">Id</th> <th scope="col">Id</th>
<th scope="col">Nom</th> <th scope="col">Nom</th>
@ -15,16 +19,17 @@
</thead> </thead>
<tbody> <tbody>
<tr *ngFor="let products of collection"> <tr *ngFor="let products of collection">
<th scope="row">{{products.id}}</th> <td>{{products.id}}</td>
<td>{{products.name}}</td> <td>{{products.name}}</td>
<td>{{products.price}}</td> <td>{{products.price}}</td>
<td>{{products.quantity}}</td> <td>{{products.quantity}}</td>
<td>{{products.inStock}}</td> <td>{{products.inStock}}</td>
<td>{{products.category}}</td> <td>{{products.category}}</td>
<td>{{products.rating}}</td> <td>{{products.rating}}</td>
<td><a class="bi-pencil-square" routerLink="../modifier/{{products.id}}"></a></td> <td><a class="bi-pencil-square" style="color: #5472b1;" routerLink="../modifier/{{products.id}}"></a></td>
<td class="bi-trash-fill" style="color: red; cursor: pointer;" (click)="onClickDelete(products.id)"></td> <td class="bi-trash-fill" style="color: rgb(231, 73, 73); cursor: pointer;" (click)="onClickDelete(products.id)"></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<button routerLink="../ajouter">Ajouter une plante </button> </div>

View File

@ -0,0 +1,19 @@
#container{
display: flex;
justify-content: center;
margin-top: 5rem;
}
table{
width: 75%;
margin-left: 2rem;
}
button{
background-color: #306340;
color: #f3f7f4 !important;
border-color: #306340 !important;
}
#button{
width: 10%;
}