{% if documents[0].directory is not defined %}{% set nodirectorylink = true %}{% endif %} {% set slicelimit = (limit is defined)? limit : null %} {% set counter = 0 %} {% if documents|length > 0 %}
{% if noicon is not defined and notype is not defined %} {% endif %} {% if noaction is not defined %} {% endif %} {% for i in documents |slice(0, slicelimit) %} {% set counter = counter + 1 %} {% if noicon is not defined and notype is not defined %} {% endif %} {% if noaction is not defined %} {% endif %} {% endfor %}
{% if notype is not defined %} {% trans %}title_type{% endtrans %} {% endif %} {% trans %}title_title{% endtrans %} {% if noauthor is not defined %}{% trans %}title_author{% endtrans %} / {% endif %}{% trans %}title_date{% endtrans %}{% trans %}title_actions{% endtrans %}
{% if noicon is not defined %} {% set groupLogo = 'img/nologo.png' %} {% if i.mainGroup %} {% if i.mainGroup.imageSize != 0 %} {% set groupLogo = 'uploads/groups/' ~ i.mainGroup.imageName %} {% endif %} {% endif %} {{  i.mainGroup.name }} {% endif %} {% if notype is not defined %} {{ ("documentType_" ~ i.classShort)|trans }}
N°: #{{i.id}} {% endif %}
`{{i.title | u.truncate(50, '...')}}` {% if notype is defined %}
N°: #{{i.id}} {% endif %} {% if i.status is defined %}
{% trans %}title_status{% endtrans %}: {{ i.status|trans }} {% endif %} {% if i.removingDate is defined %}
{% trans %}title_can_be_removed_at{% endtrans %}: {{ i.removingDate|date('_datetime.format'|trans) }} {% endif %} {% if i.type is defined and i.type is not null %}
{% trans %}title_type{% endtrans %}: {{ i.type|trans }} {% endif %} {% if i.numberplate is defined and i.numberplate is not null %}
{% trans %}title_numberplate{% endtrans %}: {{ i.numberplate }} {% endif %} {% if i.directory is defined and nodirectoryinfo is not defined %}
{% trans %}title_directory{% endtrans %}: {{ i.directory.firstname | u.truncate(2, '.')}} {{ i.directory.lastname }} {% if i.directory.dead %}, {% trans %}title_dead{% endtrans %}{% endif %} {% endif %} {% if i.user is defined %}
{% trans %}title_user{% endtrans %}: {{ i.user.firstname | u.truncate(2, '.')}} {{ i.user.lastname }} {% endif %} {% if i.amountMoney is defined %}
{% trans %}title_amount{% endtrans %}: {{ i.amountMoney ? i.amountMoney ~ ' ' ~'currency_symbol'|trans :'value_no_value'|trans }} {% endif %} {% if i.amountTime is defined %}
{% trans %}title_hours{% endtrans %}: {{ i.amountTime ? i.amountTime ~ ' h' :'value_no_value'|trans}} {% endif %} {% if i.accessorySentence is defined and i.accessorySentence is not null %}
{% trans %}title_accessorySentence{% endtrans %} : {{ 'value_yes'|trans}} {% endif %}
{% if noauthor is not defined %} {{i.creator.firstname | u.truncate(2, '.')}} {{i.creator.lastname}}, {{i.creator.mainGroup ? i.creator.mainGroup.shortname : 'value_no_group'|trans}}
{% endif %} {{i.createdAt |date('_datetime.format'|trans)}}
{% include '_cells/documentActions.html.twig' with {'document': i} %}
{% if slicelimit is not null and documents|length > slicelimit %}
{% if nodirectorylink is not defined %} {% trans %}button_view_more{% endtrans %} {% else %} {% trans %}button_view_more{% endtrans %} {% endif %}
{% endif %} {% else %}

{% trans %}no_data{% endtrans %}

{% endif %}