{% extends 'chef/dashboard.html.twig' %} {% block title %}Edit Menu{% endblock %} {% block dashboard_content %} {% form_theme form 'bootstrap_5_layout.html.twig' %}

Edit Menu

{% for label, messages in app.flashes %} {% for message in messages %}
{{ message }}
{% endfor %} {% endfor %} {{ form_start(form, { 'attr': {'enctype': 'multipart/form-data', 'novalidate': 'novalidate'} }) }} {% if form.vars.submitted and not form.vars.valid %}
Please correct the errors below.
{% endif %}
{{ form_label(form.title) }} {{ form_widget(form.title, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.title) }}
{{ form_label(form.description) }} {{ form_widget(form.description, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.description) }}
{{ form_label(form.availableFrom) }} {{ form_widget(form.availableFrom, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.availableFrom) }}
{{ form_label(form.availableTo) }} {{ form_widget(form.availableTo, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.availableTo) }}
{{ form_label(form.cuisineType) }} {{ form_widget(form.cuisineType, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.cuisineType) }}
{{ form_widget(form.isActive, {'attr': {'class': 'form-check-input'}}) }} {{ form_label(form.isActive, null, {'label_attr': {'class': 'form-check-label'}}) }}
{{ form_errors(form.isActive) }}
{% if menu.image %}
Menu Image
{% endif %} {{ form_label(form.image) }} {{ form_widget(form.image, {'attr': {'class': 'form-control'}}) }}
{{ form_errors(form.image) }}
{{ form_end(form) }}
{% endblock %}