2025-07-28 17:10:56 +02:00
|
|
|
{% extends 'base.html.twig' %}
|
2025-08-03 22:42:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-28 17:10:56 +02:00
|
|
|
{%block body%}
|
|
|
|
<h2>Projets</h2>
|
2025-08-04 21:10:10 +02:00
|
|
|
<div class='d-flex flex-wrap' style='justify-content: left'>
|
2025-07-28 17:10:56 +02:00
|
|
|
{% for project in projects %}
|
2025-08-04 21:10:10 +02:00
|
|
|
{% 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'>
|
2025-08-04 22:53:49 +02:00
|
|
|
{{project.status}}<br>
|
2025-08-04 21:10:10 +02:00
|
|
|
{{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 %}
|
2025-08-03 22:42:14 +02:00
|
|
|
|
2025-08-04 22:53:49 +02:00
|
|
|
<a href="{{ path("app_user_project_view",{id:project.id}) }}" class="btn btn-secondary btn-sm"><i class="fas fa-eye"></i></a>
|
2025-08-04 21:10:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class='card-body'>
|
|
|
|
{{project.summary|raw}}
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<small><em>
|
|
|
|
Propriétaires =
|
|
|
|
{%for user in project.users%}
|
|
|
|
{{' '~user.username}}
|
|
|
|
{%endfor%}
|
|
|
|
</em></small>
|
|
|
|
</div>
|
2025-08-03 22:42:14 +02:00
|
|
|
</div>
|
2025-08-04 21:10:10 +02:00
|
|
|
{% endif %}
|
2025-07-28 17:10:56 +02:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{%endblock%}
|