{% extends "portal_base.html" %} {% load static %} {% block title %}{% if product %}Edit{% else %}New{% endif %} product · Portal{% endblock %} {% block topbar_title %}{% if product %}Edit product{% else %}New product{% endif %}{% endblock %} {% block extra_head %} {% include "shop/_stl_importmap.html" %} {% endblock %} {% block portal_content %}
{% csrf_token %}

Used when this product has no colors. Color stock is set on each color below.

JPEG, PNG, GIF, or WebP. Multiple photos. Used on the listing card and as the default gallery. Color-specific photos below replace these when that color is selected.

{% if product.catalog_images %}
{% for image in product.catalog_images %} {% endfor %}
{% endif %}
{% if product.stl_id %}

Shared across all colors. Current model is shown in the 3D preview. Upload a new STL to replace it.

{% else %}

Optional, shared across colors. Shoppers can spin the model on the product page. 25 MB max.

{% endif %}

Same name, price, description, and STL for every color. Stock and photos are per color.

{% for color in product.colors.all %}
{% for image in color.images.all %} {% endfor %}
{% endfor %}
{% if product %}
{% csrf_token %}
{% endif %} {% endblock %} {% block extra_js %} {% endblock %}