commit
						f31463a1b9
					
				
					 6 changed files with 12 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,8 @@
 | 
			
		|||
<div class="card m-1 p-1 avatar bg-light">
 | 
			
		||||
 | 
			
		||||
  <div class="card-img-top">
 | 
			
		||||
    <div class="rounded-circle"id="couleur"[style.background-color]="membre.couleur">
 | 
			
		||||
    <div class="rounded-circle" id="couleur" [style.background-color]="membre.couleur">
 | 
			
		||||
      <img *ngIf="membre.smiley" class="rounded-circle humeur" src="{{membre.smiley}}">
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,4 +13,10 @@
 | 
			
		|||
  width: 150px;
 | 
			
		||||
  height: 170px;
 | 
			
		||||
  border-radius: 20px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.humeur{
 | 
			
		||||
  width: 60px;
 | 
			
		||||
  height: 60px;
 | 
			
		||||
  margin: 0 auto;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -19,6 +19,7 @@ export class FicheContactComponent implements OnInit {
 | 
			
		|||
  ngOnInit(): void {
 | 
			
		||||
    const roleUser = this.tokenService.getRole();
 | 
			
		||||
 | 
			
		||||
    //gestion du role parent ou non pour mettre en "disable" les boutons pour les roles enfants
 | 
			
		||||
    if(roleUser == "ROLE_PARENT"){
 | 
			
		||||
      this.parent = true;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,7 +24,7 @@
 | 
			
		|||
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
      <div class="row d-flex flex-wrap my-2 p-1">
 | 
			
		||||
      <div class="row d-flex flex-wrap my-2 p-1 d-flex">
 | 
			
		||||
        <ul class="list-inline">
 | 
			
		||||
          <li class="list-inline-item" *ngFor="let membreData of listMembres">
 | 
			
		||||
            <app-card-avatar class="avatar" [membre]="membreData"> </app-card-avatar>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,5 +24,5 @@ h3{
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
.avatar{
 | 
			
		||||
  margin:O;
 | 
			
		||||
  margin:10px;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -33,6 +33,7 @@ export class PageRepertoireComponent implements OnInit {
 | 
			
		|||
  ngOnInit(): void {
 | 
			
		||||
    const roleUser = this.tokenService.getRole();
 | 
			
		||||
 | 
			
		||||
    //gestion du role parent ou non pour mettre en "disable" les boutons pour les roles enfants
 | 
			
		||||
    if(roleUser == "ROLE_PARENT"){
 | 
			
		||||
      this.parent = true;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue