templates/documents/annexes/contrat/residence_designation_other.html.twig line 1

Open in your IDE?
  1. {% for representative in physicalLegalRepresentativeLoop %}
  2.     {% if not loop.first %}
  3.         <br>et
  4.     {% endif %}
  5.     {% if representative.person.type == 'LEGAL' %}
  6.         {{ representative.person.legalName }},
  7.         {% if representative.person.legalStatus|trim %}
  8.             {{ representative.person.legalStatus|readable_enum('LegalStatusTypeEnum')|trans }},
  9.         {% endif %}
  10.         {% if representative.shareCapital %}
  11.             au capital de {{ representative.shareCapital }} euros,
  12.         {% endif %}
  13.         {% if representative.person.address.fullAddress|trim %}
  14.             dont le siège social est situé au {{ representative.person.address.fullAddress }},
  15.         {% endif %}
  16.         {% if representative.person.SIRET|trim %}
  17.             immatriculée
  18.             {% if representative.person.registrationCity|trim %}
  19.                 au RCS de {{ representative.person.registrationCity }},
  20.             {% endif %}
  21.             sous le numéro {{ representative.person.SIRET }},
  22.         {% endif %}
  23.         {% set firstPhysicalChildren = null %}
  24.         {% set isBreak = false %}
  25.         {% for children in representative.children %}
  26.             {% if isBreak == false and children.person.type == 'PHYSICAL' %}
  27.                 {% set firstPhysicalChildren = children %}
  28.                 {% set isBreak = true %}
  29.             {% endif %}
  30.         {% endfor %}
  31.         {% if firstPhysicalChildren.person.familyName|trim or firstPhysicalChildren.person.givenName|trim %}
  32.             représentée par son
  33.             {{ firstPhysicalChildren.quality|readable_enum('LegalRepresentativeQualityTypeEnum')|trans }}
  34.             {{ firstPhysicalChildren.person.honorificPrefix|readable_enum('GenderTypeEnum')|trans }}
  35.             {{ firstPhysicalChildren.person.familyName|upper }} {{ firstPhysicalChildren.person.givenName }},
  36.             {% if firstPhysicalChildren.person.address.fullAddress|trim %}
  37.                 demeurant {{ firstPhysicalChildren.person.address.fullAddress }},
  38.             {% endif %}
  39.         {% endif %}
  40.         {% if loop.first %}
  41.             {% include 'documents/annexes/contrat/residence_designation_block_society.html.twig' %}
  42.         {% endif %}
  43.     {% else %}
  44.         {{ representative.person.honorificPrefix|readable_enum('GenderTypeEnum')|trans }}
  45.         {{ representative.person.familyName|upper }}
  46.         {{ representative.person.givenName }}{{ not representative.person.address.fullAddress|trim ? ',' }}
  47.         {% if representative.person.address.fullAddress|trim %}
  48.             demeurant {{ representative.person.address.fullAddress }},
  49.         {% endif %}
  50.         {% if loop.first %}
  51.             {% include 'documents/annexes/contrat/residence_designation_block_society.html.twig' %}
  52.         {% endif %}
  53.     {% endif %}
  54.     {% set quality = representative.quality|readable_enum('LegalRepresentativeQualityTypeEnum')|trans %}
  55.     en qualité de futur {{ quality }}{{ loop.last ? '.' : ',' }}
  56. {% endfor %}