Changement Front pour du responsive

pull/4/head
Clement FERRERE 3 years ago
parent 9059e79a2b
commit 0aa6913864
  1. 13
      src/app/components/agence/agence-edit/agence-edit.component.html
  2. 12
      src/app/components/agence/agence.component.html
  3. 2
      src/app/components/collaborateur/collaborateur-detail/collaborateur-detail.component.html
  4. 20
      src/app/components/collaborateur/collaborateur.component.html
  5. 14
      src/styles.scss

@ -4,9 +4,20 @@
<h2>{{agence.name | uppercase}} </h2> <h2>{{agence.name | uppercase}} </h2>
<div><span>id : </span>{{agence.id}}</div> <div><span>id : </span>{{agence.id}}</div>
<div> <div>
<label class="col-2" for="agence-name">Agence name </label> <div class = mb-3>
<table>
<tr>
<th>Name</th>
</tr>
<tr>
<td>
<input id="agence-name" [(ngModel)]="agence.name" placeholder="name"> <input id="agence-name" [(ngModel)]="agence.name" placeholder="name">
</td>
</tr>
</table>
</div> </div>
</div>
<button (click)="goBack()">Retour</button> <button (click)="goBack()">Retour</button>
<button (click)="save()">Sauvegarder les changements</button> <button (click)="save()">Sauvegarder les changements</button>

@ -1,19 +1,19 @@
<div xmlns=""> <div xmlns="">
<h2>Agences</h2> <h2 class = mb-4>Agences</h2>
<table> <table class = mb-5>
<tr> <tr>
<th>Name</th> <th class="spaced">Name</th>
</tr> </tr>
<tr *ngFor="let agence of agences"> <tr *ngFor="let agence of agences">
<td class="list"> {{agence.name}} </td> <td class="spaced"> {{agence.name}} </td>
<td class="list"> <a routerLink="{{agence.id}}"> Modifier </a></td> <td class="spaced"> <a routerLink="{{agence.id}}"> Modifier </a></td>
</tr> </tr>
</table> </table>
<h3>Ajouter une agence : </h3> <h3>Ajouter une agence : </h3>
<div> <div class = mb-3>
<table> <table>
<tr> <tr>
<th>Name</th> <th>Name</th>

@ -1,4 +1,4 @@
<div *ngIf="collaborateur" style="overflow-x:auto;"> <div *ngIf="collaborateur" style="overflow-x:auto;" class="mb-3">
<table> <table>
<tr> <tr>

@ -1,19 +1,19 @@
<div xmlns=""> <div xmlns="">
<h2>Collaborateurs</h2> <h2 class = mb-4>Collaborateurs</h2>
<div style="overflow-x:auto;"> <div style="overflow-x:auto;" class="mb-5">
<table> <table >
<tr> <tr>
<th>Name</th> <th class="spaced">Name</th>
<th>First Name</th> <th class="spaced">First Name</th>
<th>Apside Mail</th> <th class="spaced">Apside Mail</th>
</tr> </tr>
<tr *ngFor="let collaborateur of collaborateurs"> <tr *ngFor="let collaborateur of collaborateurs">
<td class="list"> {{collaborateur.name}} </td> <td class="spaced"> {{collaborateur.name}} </td>
<td class="list"> {{collaborateur.firstName}} </td> <td class="spaced"> {{collaborateur.firstName}} </td>
<td class="list"> {{collaborateur.apsideMail}} </td> <td class="spaced"> {{collaborateur.apsideMail}} </td>
<td class="list"> <a routerLink="{{collaborateur.id}}"> Modifier </a></td> <td class="spaced"> <a routerLink="{{collaborateur.id}}"> Modifier </a></td>
</tr> </tr>
</table> </table>
</div> </div>

@ -72,17 +72,15 @@ button:disabled {
color: #fafafa; color: #fafafa;
} }
td { .spaced{
align-content: center; padding : 0 25px;
text-align: center;
} }
.list { .list {
padding: 0 30px;
}
th{ }
text-align: center; input{
margin: 0;
} }

Loading…
Cancel
Save