<commit_before>{#

This file is part of the Sonata package.

(c) <NAME> <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

<tr{% if formView.quantity.vars.errors|length > 0 %} class="error unavailable"{% endif %}>
    {% if formView.vars.errors|length > 0 %} {# global error the product is not active anymore #}
        <td colspan="4">{% block product_error %}{{ "sonata.basket.message_product_not_available"|trans({}, 'SonataProductBundle')}}{% endblock %}</td>
    {% else %}
        <td>
            {{ form_widget(formView.productId) }}
            {% block product_name %}
                <strong><a href="{{ url('sonata_product_view', {'productId': basketElement.product.id, 'slug': basketElement.product.slug}) }}">{{ basketElement.name }}</a></strong>
            {% endblock %}
            {% if formView.quantity.vars.errors|length > 0 %}
                <span>{{ form_errors(formView.quantity) }}</span>
            {% endif %}
            {% block product_description %}
                <br />
                {{ basketElement.product.description|raw }}
            {% endblock %}
        </td>
        <td class="number">
            {% block product_unit_price %}
                {{ basketElement.getUnitPrice(false)|number_format_currency(basket.currency.label, {}, {}, basket.locale) }}
            {% endblock %}
        </td>
        <td>
            {% block product_quantity %}
                {{ form_widget(formView.quantity, {'attr': {'class': 'input-mini', 'min': 1}}) }}
            {% endblock %}
        </td>
        <td class="number">
            {% block product_total_excl %}
                {{ basketElement.getTotal(false)|number_format_currency(basket.currency.label, {}, {}, basket.locale) }}
            {% endblock %}
        </td>
        <td class="number">
            {% block product_total_inc %}
                {{ basketElement.getTotal(true)|number_format_currency(basket.currency.label, {}, {}, basket.locale) }}
            {% endblock %}
        </td>
    {% endif %}
    <td>
        {% block product_delete %}
            {{ form_widget(formView.delete) }}
        {% endblock %}
    </td>
</tr>
<commit_msg>Do not display checkbox label on basket update form<commit_after>{#

This file is part of the Sonata package.

(c) <NAME> <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

<tr{% if formView.quantity.vars.errors|length > 0 %} class="error unavailable"{% endif %}>
    {% if formView.vars.errors|length > 0 %} {# global error the product is not active anymore #}
        <td colspan="4">{% block product_error %}{{ "sonata.basket.message_product_not_available"|trans({}, 'SonataProductBundle')}}{% endblock %}</td>
    {% else %}
        <td>
            {{ form_widget(formView.productId) }}
            {% block product_name %}
                <strong><a href="{{ url('sonata_product_view', {'productId': basketElement.product.id, 'slug': basketElement.product.slug}) }}">{{ basketElement.name }}</a></strong>
            {% endblock %}
            {% if formView.quantity.vars.errors|length > 0 %}
                <span>{{ form_errors(formView.quantity) }}</span>
            {% endif %}
            {% block product_description %}
                <br />
                {{ basketElement.product.description|raw }}
            {% endblock %}
        </td>
        <td class="number">
            {% block product_unit_price %}
                {{ basketElement.getUnitPrice(false)|number_format_currency(basket.currency.label, {}, {}, basket.locale) }}
            {% endblock %}
        </td>
        <td>
            {% block product_quantity %}
                {{ form_widget(formView.quantity, {'attr': {'class': 'input-mini', 'min': 1}}) }}
            {% endblock %}
        </td>
        <td class="number">
            {% block product_total_excl %}
                {{ basketElement.getTotal(false)|number_format_currency(basket.currency.label, {}, {}, basket.locale) }}
            {% endblock %}
        </td>
        <td class="number">
            {% block product_total_inc %}
                {{ basketElement.getTotal(true)|number_format_currency(basket.currency.label, {}, {}, basket.locale) }}
            {% endblock %}
        </td>
    {% endif %}
    <td>
        {% block product_delete %}
            {{ form_widget(formView.delete, {'label_render': false}) }}
        {% endblock %}
    </td>
</tr>

{'fraction_non_alphanumeric': 0.1593852908891328, 'fraction_numerical': 0.0021953896816684962, 'mean_word_length': 2.2566118656182987, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3319153', 'n_tokens_mistral': 1375, 'n_tokens_neox': 1239, 'n_words': 266}