This commit is contained in:
2025-09-18 22:01:50 +02:00
parent bcdf788be3
commit 589a2eacb9
13 changed files with 139 additions and 5 deletions

View File

@@ -21,6 +21,8 @@
<div class="card-header">Information</div>
<div class="card-body">
{{ form_row(form.title) }}
{{ form_row(form.open) }}
{{ form_row(form.nature) }}
{{ form_row(form.dueDate) }}
{{ form_row(form.users) }}

View File

@@ -15,6 +15,12 @@
<a href="{{ path(routecancel) }}" class="btn btn-secondary me-5">Retour</a>
{% if is_granted('CANSUBSCRIBE', project) %}
<a href="{{ path(routesubscribe,{id:project.id}) }}" class="btn btn-secondary me-1" onclick="return confirm('Participer à ce projet ?')">
<i class="fas fa-users"></i> Participer à ce projet
</a>
{% endif %}
{% if is_granted('MOVETOVOTE', project) and project.status=="Brouillon"%}
<a href="{{ path(routemove,{id:project.id, status:"TOVOTE"}) }}" class="btn btn-primary me-1" onclick="return confirm('Statut = à Voter ?')">
<i class="fas fa-angle-double-right"></i> Statut = à Voter
@@ -59,6 +65,7 @@
<div class="card-header">Information</div>
<div class="card-body">
<b>Titre</b> = {{ project.title }}<br>
<b>Projet Ouvert</b> = {{ project.open ? "Oui" : "Non" }}<br>
<b>Nature</b> = {{ project.nature }}<br>
<b>A Voter pour le</b> = {{ project.dueDate ? project.dueDate|date("d/m/Y"):"" }}
</div>
@@ -71,6 +78,15 @@
</div>
</div>
<div class="card mt-3">
<div class="card-header">Participants</div>
<div class="card-body">
{%for user in project.users%}
{{loop.first ? user.username : ' - '~user.username}}
{%endfor%}
</div>
</div>
{{ render(path("bninefiles_files",{domain:'project',id:project.id, editable:0})) }}
<div class="card mt-3">