@ -1,5 +1,5 @@
< div class = "my-4" >
< div class = "text-center rounded-lg overflow-hidden shadow-lg bg-white p-4 " >
< div class = "text-center rounded-lg overflow-hidden shadow-lg bg-white p-4 my-4 " >
< div class = "text-2xl font-bold" > Gestion des Tags< / div >
< div class = "text-2xl font-bold" > Gestion des Tags< / div >
< div class = "grid grid-cols-3 gap-4 mt-2" >
< div class = "grid grid-cols-3 gap-4 mt-2" >
< button class = "text-black bg-gradient-to-r from-teal-200 to-lime-200 hover:bg-gradient-to-l hover:from-teal-200 hover:to-lime-200 focus:ring-4 focus:outline-none focus:ring-lime-200 font-semibold py-2 px-2 rounded shadow mx-2" ( click ) = " addPress = !addPress" > Ajouter un Tag< / button >
< button class = "text-black bg-gradient-to-r from-teal-200 to-lime-200 hover:bg-gradient-to-l hover:from-teal-200 hover:to-lime-200 focus:ring-4 focus:outline-none focus:ring-lime-200 font-semibold py-2 px-2 rounded shadow mx-2" ( click ) = " addPress = !addPress" > Ajouter un Tag< / button >
@ -9,7 +9,7 @@
< div * ngIf = "addPress" >
< div * ngIf = "addPress" >
< div class = "bg-orange-400 w-full h-2 overflow-hidden my-4 rounded-lg" > < / div >
< div class = "bg-orange-400 w-full h-2 overflow-hidden my-4 rounded-lg" > < / div >
< div class = "grid grid-cols-2 gap-4" >
< div class = "grid grid-cols-1 md: grid-cols-2 gap-4" >
< div >
< div >
< div class = "text-lg font-semibold" > Nom du Tag : < / div >
< div class = "text-lg font-semibold" > Nom du Tag : < / div >
< input [ ( ngModel ) ] = " nameOfTag " type = "text" class = "block w-full my-2 pl-2 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-slate-800 focus:border-slate-800" placeholder = "Taper le nom ici..." >
< input [ ( ngModel ) ] = " nameOfTag " type = "text" class = "block w-full my-2 pl-2 text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-slate-800 focus:border-slate-800" placeholder = "Taper le nom ici..." >
@ -25,7 +25,7 @@
< div class = "bg-orange-400 w-full h-2 overflow-hidden my-4 rounded-lg" > < / div >
< div class = "bg-orange-400 w-full h-2 overflow-hidden my-4 rounded-lg" > < / div >
< div * ngIf = "modifyPress" >
< div * ngIf = "modifyPress" >
< div class = "grid grid-cols-2 gap-4" >
< div class = "grid grid-cols-1 md: grid-cols-2 gap-4" >
< div >
< div >
< div class = "text-lg font-semibold" > Nom du Tag : < / div >
< div class = "text-lg font-semibold" > Nom du Tag : < / div >
< div > {{ previousName }}< / div >
< div > {{ previousName }}< / div >
@ -42,20 +42,17 @@
< button class = "text-white bg-gradient-to-br from-green-400 to-blue-600 hover:bg-gradient-to-bl focus:ring-4 focus:outline-none focus:ring-green-200 font-semibold py-2 px-2 rounded shadow mx-2 my-4" ( click ) = " modifyTag ( ) " > Valider< / button >
< button class = "text-white bg-gradient-to-br from-green-400 to-blue-600 hover:bg-gradient-to-bl focus:ring-4 focus:outline-none focus:ring-green-200 font-semibold py-2 px-2 rounded shadow mx-2 my-4" ( click ) = " modifyTag ( ) " > Valider< / button >
< / div >
< / div >
< div class = "grid grid-cols-4 gap-4" >
< div class = "grid grid-cols-1 sm:grid-cols-2 md: grid-cols-4 gap-4" >
< div * ngFor = "let tag of allTags | filter: filterTag" class = "rounded-2xl overflow-hidden shadow-lg bg-slate-800 p-2" >
< div * ngFor = "let tag of allTags | filter: filterTag" class = "rounded-2xl overflow-hidden shadow-lg bg-slate-800 p-2" >
< div class = "text-white font-bold" > Nom du Tag : {{ tag.nameTag }}< / div >
< div class = "text-white font-bold" > Nom du Tag : {{ tag.nameTag }}< / div >
< div class = "text-white" > {{ tag.descriptionTag }}< / div >
< div class = "text-white" > {{ tag.descriptionTag }}< / div >
< div class = "flex justify-between my-2" >
< div class = "flex justify-between my-2" >
< button class = "text-white bg-gradient-to-br from-purple-600 to-blue-500 hover:bg-gradient-to-bl focus:ring-4 focus:outline-none focus:ring-blue-300 font-semibold py-2 px-2 rounded shadow mx-2" ( click ) = " pressModifyBtn ( tag . tagId , tag . nameTag , tag . descriptionTag ) " > Modifier< / button >
< button class = "text-white bg-gradient-to-br from-purple-600 to-blue-500 hover:bg-gradient-to-bl focus:ring-4 focus:outline-none focus:ring-blue-300 font-semibold py-2 px-2 rounded shadow mx-2" ( click ) = " pressModifyBtn ( tag . tagId , tag . nameTag , tag . descriptionTag ) " > Modifier< / button >
< button class = "text-white bg-gradient-to-br from-pink-500 to-orange-400 hover:bg-gradient-to-bl focus:ring-4 focus:outline-none focus:ring-pink-200 font-semibold py-2 px-2 rounded shadow mx-2" ( click ) = " deleleTag ( tag ) " > Supprimer< / button >
< button class = "text-white bg-gradient-to-br from-pink-500 to-orange-400 hover:bg-gradient-to-bl focus:ring-4 focus:outline-none focus:ring-pink-200 font-semibold py-2 px-2 rounded shadow mx-2" ( click ) = " deleleTag ( tag ) " > Supprimer< / button >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >