{% block oro_region_widget %} {# // check if block was not included yet #} {% if block('oro_region_updater_js') is not defined %} {{ block('oro_region_updater_js', '@OroAddress/Include/javascript.html.twig')|raw }} {% endif %} {% if country_field is not defined or country_field is empty %} {% set country_field = name|replace({'region': 'country'}) %} {% endif %} {% set country_field = form.parent[country_field] %} {% if region_text_field is not defined or region_text_field is empty %} {% set region_text_field = name ~ "_text" %} {% endif %} {% set region_text_field = form.parent[region_text_field] %} {% set attr = {} %} {% if required %} {% set attr = attr|merge({'attr': {'data-validation': { NotBlank: null}|json_encode} }) %} {% endif %} {% set showSelect = (choices is not empty and region_text_field.vars.value is empty) ? ' show-select' : '' %}
{% endblock oro_region_widget %} {% block oro_email_widget %}