{% extends 'base.html.twig' %} {% import 'macro.html.twig' as macro %} {% block breadcrumb %} {% endblock %} {% block page_title %} {{ project.name }} {% for tag in project.tags %} {{ tag.name }} {% endfor %} {% endblock %} {% block page_content %}
Revenir aux projets {% if is_granted('IS_AUTHENTICATED_FULLY') %} {% if app.user is same as(project.createdBy) %} Modifier le projet Supprimer le projet {% endif %} {% if project.overpassQuery %} Requêter Overpass {% endif %} Créer une tâche {% endif %} {% if randomTask %} Piocher une tâche {% endif %}

{% include 'partials/_project-metadata.html.twig' %}

{% if project.description is not empty %}
{{ project.description|markdown_to_html }}
{% endif %} {% if project.tasks is not empty %}

Carte

{{ macro.map(project, project.overpassResult ? project.overpassResult : '') }}
{% endif %} {% if project.tasks is not empty %} {% set dummy = tasks.setParam('_fragment', 'tasks') %}

Tâches

{% set stats = taskLifecycleManager.getProjectStats(project) %} {% for place, data in stats %}
{{ data.percentage|format_number({fraction_digit: 0}) ~ '%' }}
{% endfor %}
{% for task in tasks %} {% endfor %}
{{ macro.paginated(tasks, 'Nom', 't.name') }} {{ macro.paginated(tasks, 'État', 't.status') }} {{ macro.paginated(tasks, 'Importance', 't.important') }} {{ macro.paginated(tasks, 'Urgence', 't.urgent') }}
{{ task.name }} {{ workflow_metadata(task, 'title', task.status) }} {{ task.important }} {{ task.urgent }}
{% endif %} {% if comments is not empty %}

Commentaires

{% for comment in comments %}
{{ comment.content|markdown_to_html }}
{% endfor %}
{% endif %} {% endblock %} {% block modals %} {{ form_start(csv_form) }} {{ form_end(csv_form) }} {% endblock %}