{% extends "dashboard/base.html" %} {% load crispy_forms_tags static %} {% block title %}{% if object %}Modifier le produit{% else %}Nouveau produit{% endif %} — Comptoir{% endblock %} {% block content %}
{% csrf_token %}
Produits

{% if object %}{{ saved_title|default:object.title }}{% else %}Nouveau produit{% endif %}

{% comment %}Saved with « Enregistrer », unlike the page editor's instant toggle: a new product doesn't exist yet.{% endcomment %} {{ form.is_public }} {% if storefront_url %} Voir sur la boutique ↗ {% endif %}
{% comment %}Two columns (.product-form__main / __aside) and the photos card come from ProductForm.helper.{% endcomment %}
{% crispy form form.helper %}
{% endblock %}