themes/webapicTheme/templates/bundles/SyliusShopBundle/Common/Form/_address.html.twig line 1

Open in your IDE?
  1. {% if type is defined %}
  2.     {% set type = type ~ '-' %}
  3. {% else %}
  4.     {% set type = null %}
  5. {% endif %}
  6. {% if country is defined %}
  7.     {% set country = country %}
  8. {% else %}
  9.     {% set country = true %}
  10. {% endif %}
  11. {% if country %}
  12.     <div class="field country">   
  13.         {% include '@SyliusShop/Common/Form/_countryCode.html.twig' with {'form': form.countryCode} %}
  14.     </div>
  15. {% endif %}
  16. <div class="two fields">
  17.     {{ form_row(form.firstName, sylius_test_form_attribute(type ~ 'first-name')) }}
  18.     {{ form_row(form.lastName, sylius_test_form_attribute(type ~ 'last-name')) }}
  19. </div>
  20. {# {{ form_row(form.company, sylius_test_form_attribute(type ~ 'company')) }} #}
  21. <div class="field street">
  22.     {{ form_row(form.street, sylius_test_form_attribute(type ~ 'street')) }}
  23. </div>
  24. <div class="field streetComplementary">  
  25.     {{ form_row(form.streetComplementary, sylius_test_form_attribute(type ~ 'streetComplementary')) }}
  26. </div>
  27. {% if form.provinceCode is defined %}
  28.     {{ form_errors(form) }}
  29. {% endif %}
  30. <div class="two fields postcode city">    
  31.     {{ form_row(form.postcode, sylius_test_form_attribute(type ~ 'postcode')) }}
  32.     {{ form_row(form.city, sylius_test_form_attribute(type ~ 'city')) }}
  33. </div>
  34. <div class="province-container field" data-url="{{ path('sylius_shop_ajax_render_province_form') }}">
  35.     {% if form.provinceCode is defined %}
  36.         {{ form_row(form.provinceCode, sylius_test_form_attribute('province-code')|sylius_merge_recursive( {'attr': {'class': 'ui dropdown'}})) }}
  37.     {% elseif form.provinceName is defined %}
  38.         {{ form_row(form.provinceName, sylius_test_form_attribute('province-name')) }}
  39.     {% endif %}
  40. </div>
  41. {{ form_row(form.phoneNumber) }}
  42. <small>{{ 'app.front.commande.suivilivraison'|trans }}</small>