53 lines
2.0 KiB
Twig
53 lines
2.0 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %} = {{title}}{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1>{{title}}</h1>
|
|
|
|
|
|
<a href="{{ path(routecancel) }}" class="btn btn-secondary ms-1">Annuler</a>
|
|
|
|
{% if is_granted('MOVEDRAFT', project) %}
|
|
<a href="{{ path("app_user_project_move",{id:project.id, status:"DRAFT"}) }}" class="btn btn-primary" onclick="return confirm('Confirmez-vous le passage au vote ?')">Mettre en Brouillon</a>
|
|
{% endif %}
|
|
{% if is_granted('MOVETOVOTE', project) %}
|
|
<a href="{{ path("app_user_project_move",{id:project.id, status:"TOVOTE"}) }}" class="btn btn-primary" onclick="return confirm('Confirmez-vous le passage au vote ?')">Mettre au Vote</a>
|
|
{% endif %}
|
|
{% if is_granted('DELETE', project) %}
|
|
<a href="{{ path(routedelete,{id:project.id}) }}" class="btn btn-danger float-end" onclick="return confirm('Confirmez-vous la suppression de cet enregistrement ?')">Supprimer</a>
|
|
{% endif %}
|
|
|
|
<div class="row">
|
|
<div class="col-md-4 mx-auto">
|
|
<div class="card mt-3">
|
|
<div class="card-header">Information</div>
|
|
<div class="card-body">
|
|
{{ project.title }}
|
|
{{ project.nature }}
|
|
{{ project.summary }}
|
|
</div>
|
|
</div>
|
|
|
|
{{ render(path("bninefiles_files",{domain:'project',id:project.id, editable:0})) }}
|
|
|
|
<div class="card mt-3">
|
|
<div class="card-header">Timeline</div>
|
|
<div class="card-body">
|
|
{% include('project/timeline.html.twig') %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-8 mx-auto">
|
|
<div class="card mt-3">
|
|
<div class="card-header">Description du Projet</div>
|
|
<div class="card-body">
|
|
{{ project.description }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|