{% extends "tienda/base.html" %}
{% load static %}

{% block content %}
<div class="row mt-4 mb-5">
    <div class="col-12">
        <div class="d-flex justify-content-between align-items-center mb-4">
            <h2>Crear Nuevo Producto</h2>
            <a href="{% url 'mis_productos' %}" class="btn btn-outline-secondary">← Volver a Mis Productos</a>
        </div>

        <div class="card">
            <div class="card-body">
                <form method="POST" enctype="multipart/form-data">
                    {% csrf_token %}
                    {{ form }}
                    <!-- Botones -->
                    <div class="d-flex justify-content-end gap-2">
                        <a href="{% url 'mis_productos' %}" class="btn btn-secondary">Cancelar</a>
                        <button type="submit" class="btn btn-primary">Crear Producto</button>
                    </div>
                </form>
            </div>
        </div>

        <div class="mt-3">
            <small class="text-muted">
                <span class="text-danger">*</span> Campos obligatorios
            </small>
        </div>
    </div>
</div>
{% endblock %}
