{% block email %} {% if not ibexa_field_is_empty( content, "content_for_autoresponse" ) %} {{ ibexa_render_field( content, "content_for_autoresponse" ) }}
{% else %} Vielen Dank für deine Bewerbung. Wir werden uns schnellstmöglich bei Dir melden. {% endif %} {% if ibexa_field_value( content, "show_fields_for_autoresponse" ) == "1" %} {% set content_type = content.contentType %} {% for field_name, field_value in collected_fields %} {% if field_name == "input_datenschutz" or content_type.getFieldDefinitions.get(field_name).fieldTypeIdentifier == 'enhancedezbinaryfile' %} {# ignore at the moment as not needed or attached#} {% elseif content.fields[field_name] is defined and content.fields[field_name] is not empty and field_value is not empty%}
{{ ibexa_field_name(content, field_name) }}: {% if content_type.getFieldDefinitions.get(field_name).fieldTypeIdentifier == 'eztext' %} {# add a break after label for text fields #}
{% endif %} {% if content_type.getFieldDefinitions.get(field_name).fieldTypeIdentifier == 'ezselection' %} {% set selectionArray=field_value.value|split('-') %} {% if selectionArray|length > 1 %}{% endif %} {% elseif content_type.getFieldDefinitions.get(field_name).fieldTypeIdentifier == 'ezboolean' %} {% if field_value.value=="1" %}Ja{% else %}Nein{% endif %} {% else %} {{ field_value.value }} {% endif %}
{% endif %} {% endfor %} {% endif %} {% endblock %} {% block auto_responder_subject %} {% if not ibexa_field_is_empty( content, "subject_for_autoresponse" ) %} {{ ibexa_field_value( content, "subject_for_autoresponse" ) }} {% else %} Vielen Dank für deine Bewerbung. {% endif %} {% endblock %} {% block recipient %} {{ collected_fields["input_mail"].value }} {% endblock %} {% block sender %} {% if event.options is defined and event.options.contact_mail is defined %} {{ event.options.contact_mail }} {% elseif not ibexa_field_is_empty( content, "sender_for_autoresponse" ) %} {{ ibexa_field_value( content, "sender_for_autoresponse" ) }} {% endif %} {% endblock %}