{% block oro_tax_zip_code_collection_type_widget %} {% import _self as fields %} {% apply spaceless %} {% set widgetContainerAttributes = block('widget_container_attributes') %} {% if prototype is defined %} {% set prototype_html = fields.oro_tax_zip_code_collection_prototype(form, widgetContainerAttributes) %} {% endif %} {% set attr = attr|merge({'class': (attr.class is defined ? attr.class ~ ' ' : '') ~ 'oro-item-collection collection-fields-list' }) %} {% set id = id ~ '_collection' %}
{% set prototype_name = form.vars.prototype_name %}
{% if form.children|length %} {% for child in form.children %} {{ fields.oro_tax_zip_code_collection_prototype(child, widgetContainerAttributes) }} {% endfor %} {% elseif show_form_when_empty and prototype_html is defined %} {% for i in 0..(form.vars.row_count_initial - 1) %} {{ prototype_html|replace({(prototype_name): i})|raw }} {% endfor %} {% endif %}
{{ 'oro.tax.zipcode.zip_range_start.label'|trans }} {{ 'oro.tax.zipcode.zip_range_end.label'|trans }}
{% if allow_add %} {% endif %}
{% endapply %} {% endblock %} {% macro oro_tax_zip_code_collection_prototype(widget, attributes) %} {% if 'collection' in widget.vars.block_prefixes %} {% set form = widget.vars.prototype %} {% set name = widget.vars.full_name ~ '[' ~ widget.vars.prototype.vars.name ~ ']' %} {% else %} {% set form = widget %} {% set name = widget.vars.full_name %} {% endif %} {{ form_widget(form) }} {% endmacro %} {% block oro_tax_zip_code_type_widget %} {{ form_widget(form.zipRangeStart, {'attr': { 'class': 'tax-zip-input full' }}) }} {{ form_errors(form.zipRangeStart) }} - {{ form_widget(form.zipRangeEnd, {'attr': { 'class': ' tax-zip-input full' }}) }} {{ form_errors(form.zipRangeEnd) }} {% endblock %} {% block _tax_calculation_oro_tax___use_as_base_exclusions_value_entry_country_row %} {% import _self as fields %} {{ fields.tax_address_block(form, false) }} {% endblock %} {% block _tax_calculation_oro_tax___use_as_base_exclusions_value_entry_region_row %} {% import _self as fields %} {{ fields.tax_address_block(form, false) }} {% endblock %} {% block _tax_calculation_oro_tax___use_as_base_exclusions_value_entry_region_text_row %} {% import _self as fields %} {{ fields.tax_address_block(form, false) }} {% endblock %} {% block _tax_calculation_oro_tax___use_as_base_exclusions_value_entry_option_row %} {% import _self as fields %} {{ fields.tax_address_block(form, false) }} {% endblock %} {% macro oro_collection_item_prototype(widget) %} {% if 'collection' in widget.vars.block_prefixes %} {% set form = widget.vars.prototype %} {% set name = widget.vars.prototype.vars.name %} {% set disabled = widget.vars.disabled %} {% set allow_delete = widget.vars.allow_delete %} {% set allow_add_after = widget.vars.allow_add_after %} {% else %} {% set form = widget %} {% set name = widget.vars.full_name %} {% set disabled = widget.parent.vars.disabled %} {% set allow_delete = widget.parent.vars.allow_delete %} {% set allow_add_after = widget.parent.vars.allow_add_after %} {% endif %}
{{ form_widget(form, {disabled: disabled}) }} {% if allow_delete %} {% endif %} {% if allow_add_after %} {% endif %}
{% endmacro %} {% block _tax_calculation_oro_tax___use_as_base_exclusions_value_widget %} {% import _self as fields %} {% apply spaceless %} {% if prototype is defined %} {% set prototype_html = fields.oro_collection_item_prototype(form) %} {% endif %} {% set attr = attr|merge({'class': (attr.class is defined ? attr.class ~ ' ' : '') ~ 'oro-item-collection collection-fields-list' }) %} {% set id = id ~ '_collection' %}
{% set prototype_name = form.vars.prototype_name %}
{% if form.children|length %} {% for child in form.children %} {{ fields.oro_collection_item_prototype(child) }} {% endfor %} {% elseif show_form_when_empty and prototype_html is defined %} {% for i in 0..(form.vars.row_count_initial - 1) %} {{ prototype_html|replace({(prototype_name): i})|raw }} {% endfor %} {% endif %}
{% if allow_add %} {{ form.vars.add_label|default('oro.form.collection.add')|trans }} {% endif %}
{% endapply %} {% endblock %} {% macro tax_address_block(form, disabled) %} {% set attrs = {'attr': {'data-validation': { NotBlank: null }|json_encode }, disabled: disabled } %}
{{ form_widget(form, attrs) }}
{% endmacro %} {% block _tax_calculation_oro_tax___origin_address_value_country_row %} {% import _self as fields %}
{{ fields.tax_address_block(form, use_parent_scope_value) }}
{% endblock %} {% block _tax_calculation_oro_tax___origin_address_value_region_row %} {% import _self as fields %}
{{ fields.tax_address_block(form, use_parent_scope_value) }}
{% endblock %} {% block _tax_calculation_oro_tax___origin_address_value_region_text_row %} {% import _self as fields %}
{{ fields.tax_address_block(form, use_parent_scope_value) }}
{% endblock %} {% block _tax_calculation_oro_tax___origin_address_value_postal_code_row %} {% import _self as fields %}
{{ fields.tax_address_block(form, use_parent_scope_value) }}
{% endblock %}