svg
This commit is contained in:
@ -4,30 +4,28 @@
|
||||
|
||||
{%block body%}
|
||||
<h2>Projets</h2>
|
||||
<a href="{{ path('app_user_project_submit') }}" class="btn btn-success mb-3">Ajouter</a>
|
||||
|
||||
<div class='d-flex flex-wrap' style='justify-content: left'>
|
||||
{% for project in projects %}
|
||||
{% if is_granted('VIEW', project) %}
|
||||
<div class='card' style='width:300px; margin-right:10px;'>
|
||||
<div class='card-header d-flex justify-content-between align-items-center'>
|
||||
{{project.status}}<br>
|
||||
{{project.title}}
|
||||
|
||||
<div>
|
||||
{% if is_granted('UPDATE', project) %}
|
||||
<a href="{{ path("app_user_project_update",{id:project.id}) }}" class="btn btn-primary btn-sm"><i class="fas fa-pencil"></i></a>
|
||||
{% endif %}
|
||||
<h5>{{project.title}}</h5>
|
||||
|
||||
<div>
|
||||
<a href="{{ path("app_user_project_view",{id:project.id}) }}" class="btn btn-secondary btn-sm"><i class="fas fa-eye"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class='card-body'>
|
||||
{{project.summary|raw}}
|
||||
|
||||
<br>
|
||||
{{project.summary|nl2br}}
|
||||
</div>
|
||||
<div class='card-footer'>
|
||||
<small><em>
|
||||
Propriétaires =
|
||||
<b>Statut</b> = {{ project.status }}<br>
|
||||
<b>Propriétaires</b> =
|
||||
{%for user in project.users%}
|
||||
{{' '~user.username}}
|
||||
{{loop.first ? user.username : ' - '~user.username}}
|
||||
{%endfor%}
|
||||
</em></small>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user