{% import 'common/thumbnail.html.twig' as thumbnail %} {% macro print_ftp_form(datas) %}
{% endmacro %} {% macro choose_title(id, choose_export_title, default_export_title)%}

{% trans 'Nom des fichiers a l\'export'%}

{% endmacro %} {% if download.get_total_download() <= 0 and download.get_total_order() <= 0 and download.get_total_ftp() <= 0%}

{% trans 'Les documents ne peuvent pas etre exportes' %}

{% endif %}
{% if download.get_total_download() > 0 %}

{% trans 'export:: telechargement' %}

{% for name, values in download.get_display_download() %} {% if values.available > 0 %}
{% set title%} {% trans 'Documents indisponibles' %} {% endset %} {% if values.refused|length > 0 %} + {% endif %}
{% endif %} {% endfor %} {% if download.has_business_fields_access() %} {% endif %} {{ _self.choose_title('download', choose_export_title, default_export_title) }}

{% trans 'export:: envoi par mail' %}

{% trans 'export::mail: destinataire' %} {% set my_email = app['phraseanet.user'].get_email() %} {% if my_email != '' %} {% else %} {% endif %} {% trans 'Entrez plusieurs adresses email en les separant par des points-virgules' %}

{% trans 'export::mail: contenu du mail' %}

{% trans 'export::mail: fichiers joint' %}

{% for name, values in download.get_display_download() %} {% if values.available > 0 %}
{% set title%} {% trans 'Documents indisponibles' %} {% endset %} {% if values.refused|length > 0 %} + {% endif %}
{% endif %} {% endfor %}
{% if download.has_business_fields_access() %} {% endif %} {{ _self.choose_title('sendmail', choose_export_title, default_export_title) }}
{% endif %} {% if download.get_total_order() > 0 %}
{% for name, values in download.get_display_orderable() %} {% if values.available > 0 %}
{% set docs_orderable = values.available %} {% trans %}{{docs_orderable}} documents commandes{% endtrans %} {% set docs_not_orderable = values.total - values.available %} {% if docs_not_orderable > 0%} {% trans %}{{docs_not_orderable}} documents ne peuvent pas etre commandes{% endtrans %} {% endif %} {% set title%} {% trans 'Documents indisponibles' %} {% endset %} {% if values.refused|length > 0 %} + {% endif %}
{% endif %} {% endfor %}
{% endif %} {% if download.get_total_ftp() > 0 %}

{% trans 'export:: FTP' %}

{% for datas in download.get_ftp_datas() %} {{ _self.print_ftp_form(datas) }} {% endfor %}

{% trans 'export::mail: fichiers joint' %}

{% for name, values in download.get_display_ftp() %} {% if values.available > 0 %}
{% set title%} {% trans 'Documents indisponibles' %} {% endset %} {% if values.refused|length > 0 %} + {% endif %}
{% endif %} {% endfor %}
{% if download.has_business_fields_access() %} {% endif %}
{% endif %}