{% extends 'base.html.twig' %} {% block title %}Nouvelle recette{% endblock %} {% block body %}

Nouvelle recette

Retour
{{ form_start(form, {'attr': {'enctype': 'multipart/form-data'}}) }} {# ── INFOS GÉNÉRALES ── #}
Informations générales
{{ form_row(form.title) }}
{{ form_row(form.description) }}
{{ form_row(form.difficulty) }}
{{ form_row(form.prepTime) }}
{{ form_row(form.cookTime) }}
{{ form_row(form.servings) }}
{# ── CATÉGORIES ── #}
Catégories
{{ form_widget(form.categories, {'attr': {'class': 'form-select', 'size': '5'}}) }}
Maintiens Ctrl (ou Cmd) pour sélectionner plusieurs catégories.
{{ form_errors(form.categories) }}
{# ── INGRÉDIENTS ── #}
Ingrédients
{# ── ÉTAPES ── #}
Étapes de préparation
Étape 1
{# ── PHOTOS ── #}
Photos
Tu peux sélectionner plusieurs photos. La première sera la photo de couverture.
{# ── SOURCE ── #}
Source (optionnel)
{{ form_row(form.sourceUrl) }}
{{ form_row(form.sourceLabel) }}
{# ── ACTIONS ── #}
Annuler
{{ form_end(form) }}
{% endblock %} {% block javascripts %} {% endblock %}