{% extends 'admin/dashboard.html.twig' %} {% block title %}Edit Menu - Admin{% endblock %} {% block dashboard_content %}
{% for label, messages in app.flashes %} {% for message in messages %} {% endfor %} {% endfor %}

Edit Menu

← Back to List
{% for message in app.flashes('success') %}
{{ message }}
{% endfor %} {% for message in app.flashes('danger') %}
{{ message }}
{% endfor %} {{ form_start(form, { attr: { novalidate: 'novalidate' } }) }}
{{ 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', 'rows': 4}}) }} {{ 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_label(form.isActive) }} {{ form_widget(form.isActive, {'attr': {'class': 'form-check-input'}}) }} {{ form_errors(form.isActive) }}

{% if menu.image %} {% else %}

No image uploaded

{% endif %}
{{ form_label(form.image) }} {{ form_widget(form.image, {'attr': {'class': 'form-control'}}) }} {{ form_errors(form.image) }}
{{ form_end(form) }}
{% endblock %}