{# * Copyright (C) 2018, Champs Libres Cooperative SCRLFS, * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . #} {% extends "ChillPersonBundle::layout.html.twig" %} {% set activeRouteKey = '' %} {% import "@ChillDocStore/Macro/macro.html.twig" as m %} {% block title %}{{ 'Documents for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName } )|capitalize }}{% endblock %} {% block js %} {% endblock %} {% block personcontent %}

{{ 'Documents for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName } )|capitalize }}

{% for document in documents %} {% else %} {% endfor %}
{{ 'Title' | trans }} {{ 'Category'|trans }} {{ 'Circle' | trans }} {{ 'Actions' | trans }}
{{ document.title }} {{ document.category.name|localize_translatable_string }} {{ document.scope.name|localize_translatable_string }}
    {% if is_granted('CHILL_PERSON_DOCUMENT_SEE_DETAILS', document) %}
  • {{ m.download_button(document.object, document.title) }}
  • {% endif %} {% if is_granted('CHILL_PERSON_DOCUMENT_UPDATE', document) %}
  • {% endif %}
{{ 'Any document found'|trans }}
{% if is_granted('CHILL_PERSON_DOCUMENT_CREATE', person) %} {% endif %} {% endblock %}