svg
This commit is contained in:
@ -4,23 +4,34 @@
|
||||
|
||||
{%block body%}
|
||||
<h2>Projets</h2>
|
||||
<div class='d-flex' style='justify-content: left'>
|
||||
<div class='d-flex flex-wrap' style='justify-content: left'>
|
||||
{% for project in projects %}
|
||||
<div class='card' style='width:300px'>
|
||||
<div class='card-header d-flex justify-content-between align-items-center'>
|
||||
{{project.title}}
|
||||
|
||||
<div>
|
||||
{% if is_granted('EDIT', project) %}
|
||||
<button type="button" class="btn btn-primary btn-sm"><i class="fas fa-pencil"></i></button>
|
||||
{% endif %}
|
||||
{% 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.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 %}
|
||||
|
||||
<button type="button" class="btn btn-secondary btn-sm"><i class="fas fa-eye"></i></button>
|
||||
</div>
|
||||
<button type="button" class="btn btn-secondary btn-sm"><i class="fas fa-eye"></i></button>
|
||||
</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>
|
||||
</div>
|
||||
<div class='card-body'>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user