From 7a34954e74695f39d989aac0a490bcad88048393 Mon Sep 17 00:00:00 2001 From: Bess1k Date: Tue, 24 Feb 2026 13:10:46 +0100 Subject: [PATCH] Update project_display.tpl --- views/project_display.tpl | 173 ++++++++++++++++++-------------------- 1 file changed, 83 insertions(+), 90 deletions(-) diff --git a/views/project_display.tpl b/views/project_display.tpl index 1fe6866..54d3160 100644 --- a/views/project_display.tpl +++ b/views/project_display.tpl @@ -1,103 +1,96 @@ {extends file="views/layout.tpl"} +{block name="title" append} - Portfolio{/block} {block name="content"} -
+
- - {if isset($smarty.get.mail) && $smarty.get.mail === 'ok'} -
Email envoyé avec succès.
- {elseif isset($smarty.get.mail) && $smarty.get.mail === 'fail'} -
Erreur lors de l'envoi de l'email.
- {/if} + + {if isset($smarty.get.mail) && $smarty.get.mail === 'ok'} +
Email envoyé avec succès.
+ {elseif isset($smarty.get.mail) && $smarty.get.mail === 'fail'} +
Erreur lors de l'envoi de l'email.
+ {/if} -
+
- -
+ +
-

{$objProject->getTitle()}

+

{$objProject->getTitle()}

-

- {$arrProject.category_name ?? 'Général'} -

+

+ {$arrProject.category_name ?? 'Général'} +

-
- -
+
+ Aperçu du projet +
-
-

Description

-

{$objProject->getDescription()}

+
+

Description

+

{$objProject->getDescription()}

-
- {$objProject->getContent()} -
-
- - -
-
- - - - - - - -
-
- -
- - -
-
- - - -
{$objProject->getCreatorName()}
- -

- Publié le {$objProject->getCreation_date()} - -

- - - -
- {*Controle de l'utilisateur ainsi que du status du projet + Suppression disponible pour l'utilisateur possédant le projet*} - {if isset($smarty.session.user)} - {if ($smarty.session.user.user_status == 2 || $smarty.session.user.user_id == $objProject->getUser_id())} -
- Supprimer le projet - {/if} - - - {if $smarty.session.user.user_id == $objProject->getUser_id()} - Modifier le projet - {/if} - - {*Conditions permettant au Modérateur de modifier le status d'un projet*} - {if $smarty.session.user.user_status == 2 && $objProject->getStatus() == "en_attente"} - Accepter - Refuser +
+ {$objProject->getContent()}
- {elseif $projectStatus == "refusé"} -

Portfolio refusé

- {/if} - {/if} - -
- - -
-
+ + + +
+
+ + + + + + + +
+
+ + + + +
+ +
+ + Photo du créateur + + +
{$objProject->getCreatorName()}
+ +

+ Publié le {$objProject->getCreation_date()} +

+ + +
+
+ + {/block}