|
|
|
@ -1,29 +1,33 @@ |
|
|
|
|
<div xmlns=""> |
|
|
|
|
<h2 class = mb-4>Agences</h2> |
|
|
|
|
|
|
|
|
|
<table class = mb-5> |
|
|
|
|
<div style="overflow-x:auto;" class="mb-5 col-12"> |
|
|
|
|
<table class="table"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th class="spaced">Name</th> |
|
|
|
|
<th scope="col">ID</th> |
|
|
|
|
<th scope="col">Nom</th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<tr *ngFor="let agence of agences"> |
|
|
|
|
<td class="spaced"> {{agence.name}} </td> |
|
|
|
|
<td class="spaced"> <a routerLink="{{agence.id}}"> Modifier </a></td> |
|
|
|
|
<th scope="row">{{agence.id}}</th> |
|
|
|
|
<td> {{agence.name}} </td> |
|
|
|
|
<td> <a routerLink="{{agence.id}}"> Modifier </a></td> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<h3>Ajouter une agence : </h3> |
|
|
|
|
|
|
|
|
|
<div class = mb-3> |
|
|
|
|
<table> |
|
|
|
|
<tr> |
|
|
|
|
<th>Name</th> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<input id="agence-name" [(ngModel)]="agence.name" placeholder="name"> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
<div class="row mb-2"> |
|
|
|
|
|
|
|
|
|
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3"> |
|
|
|
|
|
|
|
|
|
<label for="agence-name" class="form-label">Nom</label> |
|
|
|
|
<input class="form-control" id="agence-name" [(ngModel)]="agence.name" placeholder="name"> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<button class="add-button" (click)="add(agence)"> |
|
|
|
|