{% extends "prod/actions/Bridge/wrapper.html.twig" %} {% import "common/thumbnail.html.twig" as thumb %} {% import "prod/actions/Bridge/macro_error_form.html.twig" as error_form %} {% block menu %} {% trans %}Upload{% endtrans %} {% endblock %} {% block response %} {% set elements_length = route.get_elements()|length %} {% set elements_received_length = route.get_count_element_received() %} {% if elements_received_length == 0 %} {{ 'Vous n\'avez selectionne aucun element' | trans }} {% elseif elements_length == 0 %} {{ 'Les elements ne peuvent etre uploades (problemes de type ou de droit)' | trans }} {{ 'Le bridge FlickR ne prend en charge que les photos' | trans }} {% else %} {% if elements_length != elements_received_length %} {% set n_elements = elements_received_length - elements_length %} {% trans with {'%n_elements%' : n_elements} %}%n_elements% elements ne peuvent etre uploades{% endtrans %} {% endif %}
{% trans with {'%elements_length%' : elements_length} %}Upload sur Flickr de %elements_length% elements{% endtrans %} {% for record in route.get_elements() %} {% set caption = record.get_caption() %}
{{thumb.format(record.get_thumbnail, 100, 100, "", true, false)}} {% set name = "title_" ~ record.get_serialize_key() %}
{{ error_form.display_errors(name, constraint_errors) }}
{% set name = "description_" ~ record.get_serialize_key() %}
{{ error_form.display_errors(name, constraint_errors) }}
{% set name = "tags_" ~ record.get_serialize_key() %}
{{ error_form.display_errors(name, constraint_errors) }}
{{ "2000 caracteres maximum, separe par des espaces" | trans }}
{% endfor %}
{% endif %} {% endblock %}