{% block component_review_form %} {% if data is not defined and reviews.customerReview is defined %} {% set data = reviews.customerReview %} {% endif %} {% set formAjaxSubmitOptions = { replaceSelectors: '.js-review-container' } %} {% block component_review_form_form %}
{% block component_review_form_forward %} {% endblock %} {% if reviews.customerReview %} {% endif %} {% block component_review_form_details %}
{% block component_review_form_rating %}
{% if data.get('points') is not empty %} {% set currentPoints = data.get('points')|number_format %} {% else %} {% set currentPoints = reviews.matrix.maxPoints %} {% endif %} {% set maxPoints = reviews.matrix.maxPoints %} {% for point in 1..maxPoints %} {% endfor %} {% for matrix in reviews.matrix.matrix %}

{{ "detail.review#{matrix.points}PointRatingText"|trans|sw_sanitize }}

{% endfor %}
{% endblock %} {% block component_review_form_title %} {% sw_include '@Storefront/storefront/component/form/form-input.html.twig' with { label: 'detail.reviewFormTitleLabel'|trans|sw_sanitize, id: 'reviewTitle', name: 'title', value: data.get('title'), violationPath: '/title', validationRules: 'required,minLength', minlength: '5', maxlength: '255', additionalClass: 'col-12 product-detail-review-form-title', description: 'detail.reviewTitleMinLengthHint'|trans|sw_sanitize } %} {% endblock %}
{% endblock %} {% block component_review_form_content %} {% sw_include '@Storefront/storefront/component/form/form-textarea.html.twig' with { label: 'detail.reviewFormContentLabel'|trans|sw_sanitize, id: 'reviewContent', name: 'content', value: data.get('content'), violationPath: '/content', validationRules: 'required,minLength', minlength: '40', additionalClass: 'col-12 product-detail-review-form-content', description: 'detail.reviewTextMinLengthHint'|trans|sw_sanitize } %} {% endblock %} {% block component_review_form_footer %} {% endblock %}
{% endblock %} {% endblock %}