{{ 'Add a document'|trans({}, 'icap_dropzone') }}

{% if allowedTypes|length <= 0 %} {{ 'No document type allowed'|trans({}, 'icap_dropzone') }} {% else %} {% set activeClass = " active " %} {% endif %} {% if allowedTypes|length > 0 %} {% set activeClass = " active " %}
{% if 'url' in allowedTypes %}
{% include 'IcapDropzoneBundle:Document:documentForm.html.twig' with {'form':form_url, 'documentType': 'url'} %}
{% set activeClass = "" %} {% endif %} {% if 'file' in allowedTypes %}
{% include 'IcapDropzoneBundle:Document:documentForm.html.twig' with {'form':form_file, 'documentType': 'file'} %}
{% set activeClass = "" %} {% endif %} {% if 'resource' in allowedTypes %}
{% include 'IcapDropzoneBundle:Document:documentForm.html.twig' with {'form':form_resource, 'documentType': 'resource'} %}
{% set activeClass = "" %} {% endif %} {% if 'text' in allowedTypes %}
{% include 'IcapDropzoneBundle:Document:documentForm.html.twig' with {'form':form_text, 'documentType': 'text'} %}
{% set activeClass = "" %} {% endif %}
{% endif %}