{% extends 'stela_control/inventory/index.html' %} {% load static %} {% load i18n %} {% load crispy_forms_tags %} {% block title %}

{% trans "Products" %}

{% endblock %} {% block side_title %}

STELA {% trans "CONTROL DYNAMIC" %} | {% trans "Inventory" %}

{% endblock %} {% block topButtons %}
{% if stock %} {% else %} {% endif %}
{% endblock %} {% block listTitle %}

{% trans "Products List" %}

{% endblock %} {% block thead %} Id {% trans "SKU" %} {% trans "Title" %} {% trans "Status" %} {% trans "Image" %} {% trans "Stock" %} {% trans "View" %} {% endblock %} {% block tbody %} {% for item in stock %} {{item.id}} {{item.sku}} {{item.title}} {% if item.status == 'Active' %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %} {{item.image_tag}} {% if item.qty is None %} {% trans "No Stock" %} {% elif item.qty == 0 %} {% trans "No Stock" %} {% elif item.qty < 5 %} {{item.qty}} {% trans "Low Stock" %} {% else %} {{item.qty}} {% endif %} {% endfor %} {% endblock %} {% block errors %} {% if errors %}

{% trans "Errors" %} {% trans "Sizes" %}

{% elif errors2 %}

{% trans "Errors" %} {% trans "Gallery" %}

{% elif errors3 %}

{% trans "Errors" %} {% trans "Bulletpoints" %}

{% elif errors4 %}

{% trans "Errors" %} {% trans "Variants" %}

{% endif %} {% endblock %} {% block extratable %}

{% trans "Variants List" %}

{% for item in stock %} {% for raw in item.variants.all %} {% if item.status == 'Active' %} {% else %} {% endif %} {% if raw.quantity == 0 %} {% elif raw.quantity < 5 %} {% else %} {% endif %} {% if raw.image %} {% else %} {% endif %} {% endfor %} {% endfor %}
Id {% trans "Parent" %} {% trans "Title" %} {% trans "Status" %} {% trans "Stock" %} {% trans "Image" %} {% trans "Price" %} {% trans "View" %}
{{raw.id}} {% trans "Active" %} {% trans "Inactive" %} {% trans "No Stock" %}{{raw.quantity}} {% trans "Low Stock" %}{{raw.quantity}}{{raw.image_tag}}{{raw.product.image_tag}}${{raw.price}}

{% trans "Size List" %}

{% for item in sizes %} {% endfor %}
Id {% trans "Size" %} {% trans "View" %}
{{item.id}}

{% trans "Catalog List" %}

{% for item in stock %} {% for raw in item.variants.all %} {% for get in raw.catalog.all %} {% endfor %} {% endfor %} {% endfor %}
Id {% trans "Variant" %} {% trans "Catalogue" %} {% trans "View" %}
{{get.id}}

{% trans "Category List" %}

{% for item in categ %} {% endfor %}
{% trans "Type" %} {% trans "Title" %} {% trans "View" %}
{{item.type}} {{item.title}}

{% trans "Colors Presets" %}

{% for item in colors %} {% if item.code1 and item.code2 and item.code3 %} {% elif item.code1 and item.code2 %} {% else %} {% endif %} {% endfor %}
{% trans "ID" %} {% trans "Color Name" %} {% trans "Code" %} N° {% trans "Preset" %} {% trans "View" %}
{{item.id}} {{item.name}} {{item.code}}
{% endblock %} {% block modals %}