Ajout de la page user fonctionnelle (ctrl, model associé etc) update des liens en display pour fonctionnement. Correction nom fichier project_display
This commit is contained in:
parent
48108f717f
commit
f4d5669e44
16 changed files with 471 additions and 364 deletions
43
views/user.tpl
Normal file
43
views/user.tpl
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{extends file="views/layout.tpl"}
|
||||
|
||||
{block name="content"}
|
||||
|
||||
<section class="user-profile mb-5">
|
||||
<div class="row">
|
||||
<div class="col-md-4 text-center">
|
||||
<img src="" alt="Avatar de {$user->getPseudo()}" class="img-fluid rounded-circle mb-3" style="max-width: 200px">
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<h1>{$user->getPseudo()}</h1>
|
||||
<p class="text-muted">{$user->getMail()}</p>
|
||||
|
||||
{if $user->getWork()}
|
||||
<p>{$user->getWork()}</p>
|
||||
{/if}
|
||||
|
||||
{if $user->getLocation()}
|
||||
<p>{$user->getLocation()}</p>
|
||||
{/if}
|
||||
|
||||
<p class="mt-3">{$user->getDescription()}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2 class="mb-4 border-bottom pb-2">Les projets de {$user->getPseudo()}</h2>
|
||||
|
||||
<div class="row">
|
||||
{if count($arrProjectToDisplay) > 0}
|
||||
{foreach $arrProjectToDisplay as $objProject}
|
||||
<div class="col-md-4 mb-4">
|
||||
{include file="views/_partial/preview.tpl"}
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<p class="alert alert-info">Cet utilisateur n'a pas encore publié de projets.</p>
|
||||
{/if}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/block}
|
||||
Loading…
Add table
Add a link
Reference in a new issue