{% extends 'oscar/dashboard/intermediate_bulk_action.html' %} {% load i18n %} {% block title %}{% trans "Confirm variant action" %} | {{ block.super }}{% endblock %} {% block breadcrumbs %} {% endblock %} {% block form_content %} {% if has_extra_fields %}

{% block action_fields_header %}{% trans "Action parameters" %}{% endblock action_fields_header %}

{% block form_fields %} {% for field in form %} {% if not field.field.widget.is_hidden and field.html_name != "selected_products" %} {% include "oscar/dashboard/partials/form_field.html" %} {% endif %} {% endfor %} {% endblock %}
{% endif %} {% if form.selected_products.errors %}
{{ form.selected_products.errors }}
{% endif %}
{% if standalone_selectable or parent_selectable or children_selectable %}
{% if standalone_selectable %} {% endif %} {% if parent_selectable %} {% endif %} {% if children_selectable %} {% endif %}
{% endif %}
{% block extra_column_headers %}{% endblock %} {% with selected_values=form.selected_products.value %} {% for row in display_rows %} {% with product=row.product pk_str=row.product.pk|stringformat:"s" %} {% block extra_column_values %}{% endblock %} {% endwith %} {% if row.children_shown %} {% endif %} {% empty %} {% endfor %} {% endwith %} {% if hidden_count %} {% endif %}
{% trans "Title" %} {% trans "UPC" %} {% trans "Stockrecords" %}{% trans "Currently public" %}
{% if row.selectable %} {% endif %} {{ product.get_title }} {% if row.children_selectable %} ({{ row.children|length }} {% trans "variants" %}) {% endif %} {{ product.upc|default:"-" }} {{ product.stockrecord_count }}{% if product.is_public %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}
{% trans "Select all variants" %}
{% trans "No products." %}
{% blocktrans with count=hidden_count %}And {{ count }} more product(s) not shown. Use "Select all" above to include them.{% endblocktrans %}
{% endblock form_content %} {% block onbodyload %} {{ block.super }} oscar.dashboard.product_bulk_action.init({formBound: {{ form.is_bound|yesno:"true,false" }}}); {% endblock %}