Avancer sur la fonctionnalité de Créer/Modifier un projet

This commit is contained in:
Guillaume HESS 2026-02-13 11:58:36 +01:00
parent 483ae3c9c0
commit 7be3bac167
12 changed files with 67 additions and 51 deletions

View file

@ -1,18 +1,18 @@
<?php
/* Smarty version 5.7.0, created on 2026-02-11 15:26:16
/* Smarty version 5.7.0, created on 2026-02-13 09:26:02
from 'file:views/_partial/preview.tpl' */
/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.7.0',
'unifunc' => 'content_698c9f98010897_35547345',
'unifunc' => 'content_698eee2a213901_58530696',
'has_nocache_code' => false,
'file_dependency' =>
array (
'd60fb02b58bc4794052e022152a4d410b20abede' =>
array (
0 => 'views/_partial/preview.tpl',
1 => 1770822997,
1 => 1770967614,
2 => 'file',
),
),
@ -20,7 +20,7 @@ if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
array (
),
))) {
function content_698c9f98010897_35547345 (\Smarty\Template $_smarty_tpl) {
function content_698eee2a213901_58530696 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views\\_partial';
?>
@ -38,7 +38,7 @@ $_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views\\_partial';
<div class="d-flex align-items-start gap-3">
<img src=".<?php echo $_smarty_tpl->getValue('objProject')->getUser_image();?>
<img src="<?php echo $_smarty_tpl->getValue('objProject')->getUser_image();?>
"
class="rounded-circle flex-shrink-0 mt-2 ml-5"
style="width: 48px; height: 48px; object-fit: cover;"
@ -51,15 +51,30 @@ $_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views\\_partial';
<small class="text-body-secondary d-block mb-1">
<time><?php echo $_smarty_tpl->getValue('objProject')->getCreation_date();?>
</time>
<?php echo $_smarty_tpl->getValue('objProject')->getCreatorname();?>
<a href="index.php?ctrl=user&action=user&id=<?php echo $_smarty_tpl->getValue('objProject')->getUser();?>
"
class="text-decoration-none"
style="position: relative; z-index: 2;">
<?php echo $_smarty_tpl->getValue('objProject')->getCreatorname();?>
</a>
</small>
<a href="index.php?ctrl=project&action=display&id=<?php echo $_smarty_tpl->getValue('objProject')->getId();?>
"
class="stretched-link small">
Lire la suite
class="stretched-link small">
Lire la suite
</a>
<?php if ((true && (true && null !== ($_SESSION['user'] ?? null)))) {?>
<?php if ($_SESSION['user']['user_id'] == $_smarty_tpl->getValue('objProject')->getUser()) {?>
<a href="index.php?ctrl=project&action=display&id=<?php echo $_smarty_tpl->getValue('objProject')->getId();?>
"
class="stretched-link small">
Editer
</a>
<?php }?>
<?php }?>
</div>
</div>
@ -77,5 +92,6 @@ $_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\views\\_partial';
<?php } elseif ($_smarty_tpl->getValue('projectStatus') == "refusé") {?>
<p class="text-danger fw-bold">Portfolio refusé</p>
<?php }?>
</article><?php }
</article>
<?php }
}