{% extends 'form_div_layout.html.twig' %} {% block form_row -%}
{{- form_label(form) -}} {{- form_widget(form) -}} {{- form_errors(form) -}}
{%- endblock form_row %} {%- block form_errors -%} {%- if errors|length > 0 -%} {%- for error in errors -%}
{{ error.message }}
{%- endfor -%} {%- endif -%} {%- endblock form_errors -%} {% block checkbox_row -%}
{{- form_widget(form) -}} {{- form_label(form) -}} {{- form_errors(form) -}}
{%- endblock checkbox_row %} {% block radio_row -%}
{{- form_label(form) -}} {{- form_widget(form) -}} {{- form_errors(form) -}}
{%- endblock radio_row %} {% block money_widget -%}
{{ currency|sylius_currency_symbol }}
{{- form_widget(form) -}}
{%- endblock money_widget %} {% block choice_row -%}
{{- form_label(form) -}} {% set attr = attr|merge({'class': attr.class|default ~ ' ui dropdown'}) %} {{- form_widget(form, {'attr': attr}) -}} {{- form_errors(form) -}}
{%- endblock choice_row %} {%- block choice_widget_expanded -%}
{%- for child in form %}
{{- form_label(child, null, {translation_domain: choice_translation_domain}) -}} {{- form_widget(child, sylius_test_form_attribute('option')) -}}
{% endfor -%}
{%- endblock choice_widget_expanded -%} {% block percent_widget -%}
{{- form_widget(form) -}}
%
{%- endblock percent_widget %} {% block collection_widget -%} {% from '@SyliusResource/Macros/notification.html.twig' import error %} {% import _self as self %} {% set attr = attr|merge({'class': attr.class|default ~ ' controls collection-widget'}) %} {% apply spaceless %}
{{ error(form.vars.errors) }} {% if prototypes|default is iterable %} {% for key, subPrototype in prototypes %} {% endfor %} {% endif %}
{% for child in form %} {{ self.collection_item(child, allow_delete, button_delete_label, loop.index0) }} {% endfor %}
{% if prototype is defined and allow_add %} {{ button_add_label|trans }} {% endif %}
{% endapply %} {%- endblock collection_widget %} {% macro collection_item(form, allow_delete, button_delete_label, index) %} {% apply spaceless %}
{{ form_widget(form) }} {% if allow_delete %} {{ button_delete_label|trans }} {% endif %}
{% endapply %} {% endmacro %} {% block sylius_province_widget %}
{{ form_row(form.code) }} {{ form_row(form.name) }} {{ form_row(form.abbreviation) }}
{% endblock %} {% block sylius_zone_member_widget %}
{{ form_row(form.code) }}
{% endblock %} {% block sylius_promotion_rule_widget %}
{{ form_widget(form) }}
{% endblock %} {% block sylius_promotion_action_widget %}
{{ form_widget(form) }}
{% endblock %} {% block sylius_promotion_configuration_widget %}
{% for child in form %}
{{ form_row(child) }}
{% endfor %}
{% endblock %} {% block sylius_product_option_value_widget %}
{{ form_row(form.code) }}
{% for locale, translationForm in form.translations %} {{ form_row(translationForm.value, {'label': locale|sylius_locale_name}) }} {% if 0 == loop.index % 5 %}
{% endif %} {% endfor %}
{% endblock %} {% block sylius_translations_row -%}

{{ form_label(form) }}

{% for translation in form %}
{{ form_label(translation, translation.vars.name|sylius_locale_name) }}
{{ form_widget(translation) }}
{{- form_errors(form) -}} {% endfor %}
{%- endblock sylius_translations_row %} {% block sylius_resource_autocomplete_choice_row %}
{{- form_label(form) -}} {{- form_errors(form) -}}
{% endblock %} {% block sylius_product_variant_generation_widget %}
{{ form_row(form.optionValues, {'label': false}) }}
{{ form_row(form.code) }} {{ form_row(form.name) }}

{{ 'sylius.ui.pricing'|trans }}

{{ form_row(form.channelPricings, {'label': false}) }}
{% endblock %} {% block sylius_image_widget %} {% apply spaceless %} {{ form_row(form.type) }} {% if form.vars.value.path|default(null) is not null %} {{ form.vars.value.type }} {% endif %}
{{- form_errors(form.file) -}}
{% endapply %} {% endblock %}