{% extends 'oscar/dashboard/layout.html' %} {% load i18n %} {% block body_class %}{{ block.super }} create-page{% endblock %} {% block title %} {% blocktrans with name=range.name %}Products in range '{{ name }}'{% endblocktrans %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block headertext %} {{ range.name }}: {% trans "products" %} {% endblock %} {% block dashboard_content %} {% if range.includes_all_products %} {% trans "This range contains all products. To add products manually, please unselect the 'Includes All Products' option on the edit range page." %} {% else %}

{% trans "Add products" %}

{% csrf_token %} {% include 'oscar/dashboard/partials/form_fields.html' with form=form %}
{% with uploads=range.file_uploads.all %} {% if uploads %}

{% trans "Upload history" %}

{% for upload in uploads %} {% endfor %}
{% trans "Filename" %} {% trans "New products" %} {% trans "Duplicate products" %} {% trans "Unknown products" %} {% trans "Date uploaded" %}
{{ upload.filepath }} {{ upload.num_new_skus }} {{ upload.num_duplicate_skus }} {{ upload.num_unknown_skus }} {{ upload.date_uploaded }}
{% endif %} {% endwith %} {% if products %}
{% csrf_token %} {% for product in products %} {% endfor %}

{% trans "Products in range" %}

{% trans "UPC" %} {% trans "Title" context "Product title" %} {% trans "Is product discountable?" %}
{{ product.upc|default:"-" }} {{ product.get_title }} {% if product.get_is_discountable %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %} {% trans "Remove" %} {% if range.is_reorderable %} {% trans "Re-order" context "Change the sequence order" %} {% endif %}
{% include "oscar/dashboard/partials/pagination.html" %}
{% else %}
{% trans "Products in Range" %}
{% trans "No products found." %}
{% endif %}
{% endif %}
{% trans "Edit range" %} {% trans "or" %} {% trans "return to range list" %}
{% endblock dashboard_content %} {% block onbodyload %} {{ block.super }} oscar.dashboard.ranges.init(); oscar.dashboard.reordering.init({ wrapper: '.product_list', submit_url: '{% url 'dashboard:range-reorder' pk=range.id %}' }); {% endblock %}