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

Edit Dish

← Back to List
{{ form_start(form, { 'attr': { 'enctype': 'multipart/form-data', 'novalidate': 'novalidate' } }) }}
{{ form_label(form.name) }} {{ form_widget(form.name, { 'attr': { 'class': 'form-control' } }) }}
{{ form_errors(form.name) }}
{{ form_label(form.description) }} {{ form_widget(form.description, { 'attr': { 'class': 'form-control', 'rows': 3 } }) }}
{{ form_errors(form.description) }}
{{ form_label(form.ingredients) }} {{ form_widget(form.ingredients, { 'attr': { 'class': 'form-select' } }) }}
{{ form_errors(form.ingredients) }}
{{ form_label(form.menu) }} {{ form_widget(form.menu, { 'attr': { 'class': 'form-select' } }) }}
{{ form_errors(form.menu) }}
{{ form_label(form.price) }} {{ form_widget(form.price, { 'attr': { 'class': 'form-select' } }) }}
{{ form_errors(form.price) }}
{% if dish.image %}
Current Image:
{% endif %} {{ form_label(form.image) }} {{ form_widget(form.image, { 'attr': { 'class': 'form-control' } }) }}
{{ form_errors(form.image) }}
{{ form_end(form) }}
{% endblock %}