Update project_display.tpl
This commit is contained in:
parent
3cda2f0b85
commit
db1c382d8d
1 changed files with 22 additions and 0 deletions
|
|
@ -90,7 +90,29 @@
|
||||||
|
|
||||||
<button class="btn btn-primary">Contacter le talent</button>
|
<button class="btn btn-primary">Contacter le talent</button>
|
||||||
</div>
|
</div>
|
||||||
|
{*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())}
|
||||||
|
<div class="border rounded text-center">
|
||||||
|
<a class="btn btn-sm m-1 btn-danger" href="?ctrl=project&action=delete&id={$objProject->getId()}" name="toDelete">Supprimer le projet</a>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
|
||||||
|
{if $smarty.session.user.user_id == $objProject->getUser_id()}
|
||||||
|
<a class="btn btn-sm m-1 btn-warning" href="?ctrl=project&action=addedit_project&id={$objProject->getId()}" name="addedit">Modifier le projet</a>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{*Conditions permettant au Modérateur de modifier le status d'un projet*}
|
||||||
|
{if $smarty.session.user.user_status == 2 && $objProject->getStatus() == "en_attente"}
|
||||||
|
<a class="btn btn-sm m-1 btn-success" href="?ctrl=project&action=accept&id={$objProject->getId()}" name="toPublished">Accepter</a>
|
||||||
|
<a class="btn btn-sm m-1 btn-warning" href="?ctrl=project&action=refuse&id={$objProject->getId()}" name="toRefused">Refuser</a>
|
||||||
|
</div>
|
||||||
|
{elseif $projectStatus == "refusé"}
|
||||||
|
<p class="text-danger fw-bold">Portfolio refusé</p>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
{/block}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue