<turbo-stream action="update" target="modal-root"><template><div class="modal-backdrop">
    <dialog class="modal" open aria-labelledby="category-edit-modal-title">
        <form method="post" action="/clothes/categories/2" enctype="multipart/form-data" data-turbo="false">
            <header class="modal__header">
                <h2 id="category-edit-modal-title">Modifier la categorie</h2>
                <button type="button" class="modal__close" onclick="this.closest('.modal-backdrop').remove()" aria-label="Fermer">
                    ×
                </button>
            </header>

            <div class="modal__body">
                <input type="hidden" name="_csrf_token" value="8bb7d273282559ffb7481958aa0.GuZ3Y-sr8vAvFjZui2VbmHgth_9Xuq_GDHE4dGgSDZA.b7cFEaIGhpwdUnsjvT8P8CpO06UH8-meYCNxEAV1ZPl-hT4yvhyFs3BzRQ">

                <label class="category-form__field">
                    <span>Nom</span>
                    <input type="text" name="name" value="CHEMISES" required maxlength="50">
                </label>

                <label class="category-form__field">
                    <span>Description courte</span>
                    <textarea name="metaDescription" maxlength="120" rows="3">Haut de vêtements (manches longues ou courtes)</textarea>
                </label>

                <label class="category-form__field">
                    <span>Remplacer l'image d'illustration PNG, JPEG ou SVG</span>
                    <input type="file" name="illustration" accept=".png,.jpg,.jpeg,.svg,image/png,image/jpeg,image/svg+xml">
                </label>

                            </div>

            <footer class="modal__actions">
                <button type="button" class="category-show__button" onclick="this.closest('.modal-backdrop').remove()">
                    Annuler
                </button>
                <button type="submit" class="category-show__button">
                    Enregistrer
                </button>
            </footer>
        </form>
    </dialog>
</div>
</template></turbo-stream>