{% extends 'base.html.twig' %}

{% block body %}
    <h1>Ürün Düzenleme</h1>
    <ul>
        <li>
            <a href="{{ path('product_index') }}">Listeye Geri Dön</a>
        </li>
        <li>
            {{ form_start(delete_form) }}
            <input type="submit" onclick="return confirm('Silmek istediğinize emin misiniz?');" value="Sil">
            {{ form_end(delete_form) }}
        </li>
    </ul>
    {{ form_start(edit_form) }}
    <input type="submit" value="Düzenle"/>
    {{ form_widget(edit_form) }}
    {{ form_end(edit_form) }}

{% endblock %}
