Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add edit and fav #13

Merged
merged 4 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,4 @@ <h3 class="mb-4 text-xl font-semibold leading-6">Santé :</h3>
Contacter {{chat.nom }}
</button>


</div>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
aria-label="Association" title="L'association">Association : {{chat.association.nom}}</a>
<span class="text-gray-600"> - {{formatDate(chat.createdAt)}}</span>
</p>
<fa-icon [icon]="faHeart" aria-label="Favori" title="Favori"
class="mr-2 fa-xl text-red-500 cursor-pointer"></fa-icon>
<div [routerLink]="'/animaux/' + chat.id" aria-label="Animaux" title="En savoir plus"
class="inline-block mb-3 text-2xl font-bold leading-5 transition-colors duration-200 hover:text-deep-purple-accent-700">
<a [routerLink]="'/animaux/' + chat.id" class="inline-block">{{chat.nom}}</a>
Expand All @@ -28,13 +30,14 @@
class="inline-flex items-center font-semibold transition-colors duration-200 text-deep-purple-accent-400 hover:text-deep-purple-800">
En savoir plus sur {{chat.nom}}
</a>
</div>
</div>



<button [routerLink]="'/animaux/' + chat.id + '/modifier'"
class="m-2 focus:outline-none text-white bg-yellow-400 hover:bg-yellow-500 focus:ring-4 focus:ring-yellow-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:focus:ring-yellow-900">
Édition
</button>


</div>
</div>

</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { faMars, faVenus } from '@fortawesome/free-solid-svg-icons';
import { faMars, faVenus, faHeart } from '@fortawesome/free-solid-svg-icons';
import { AppService } from '../../../services/app.service';
import { Chat } from '../../../interfaces/interfaces';
import { DatePipe } from '@angular/common';
Expand All @@ -13,6 +13,7 @@ import { DatePipe } from '@angular/common';
export class AnimauxListComponent {
faMars = faMars;
faVenus = faVenus;
faHeart = faHeart;
constructor(private appService: AppService, private datePipe: DatePipe) {}

chats: Chat[] = [];
Expand Down
Loading