{% extends 'public/base.html.twig' %} {% trans_default_domain 'public' %} {% import 'public/_icons.html.twig' as icons %} {% block title %}{{ page.title }}{% endblock %} {% block meta %} {# An application form has nothing to offer a search engine, and the unit page is the page worth indexing. #} {% endblock %} {% block body %}
{{ page.landlordName }} {{ icons.icon('left') }} {{ 'apply.backToUnit'|trans }}
{% if sent %}
{{ icons.icon('check') }}

{{ 'apply.sentTitle'|trans }}

{{ 'apply.sentBody'|trans({landlord: page.landlordName, unit: page.unitName}) }}

{{ 'apply.backToUnit'|trans }}
{% else %}
{{ 'apply.badge'|trans }}

{{ 'apply.title'|trans }}

{{ 'apply.lead'|trans({unit: page.unitName, property: page.propertyName, landlord: page.landlordName}) }}

{% if formError or errors %} {% endif %}

{{ 'apply.aboutYou'|trans }}

{% for field in [{name: 'firstName', type: 'text', autocomplete: 'given-name', max: 120}, {name: 'lastName', type: 'text', autocomplete: 'family-name', max: 120}, {name: 'email', type: 'email', autocomplete: 'email', max: 180}, {name: 'phone', type: 'tel', autocomplete: 'tel', max: 50}] %} {% endfor %}

{{ 'apply.documents'|trans }}

{{ 'apply.documentsHelp'|trans }}

    {% for requirement in requirements %}
  1. {{ requirement.label }} {{ (requirement.required ? 'apply.required' : 'apply.optionalDoc')|trans }}
    {% if requirement.description %}

    {{ requirement.description }}

    {% endif %} {% if errors[requirement.field] is defined %}{{ errors[requirement.field] }}{% endif %}
  2. {% endfor %}

{{ icons.icon('lock') }}{{ 'apply.privacy'|trans({landlord: page.landlordName}) }}

{% endif %}
{% endblock %}