{% extends 'CompanyBaseBundle::layout.html.twig' %}

{% block content %}
<h1>{{'document.edit.title'| trans({},'CompanyBaseBundle')}}</h1>

<form action="{{ path('document_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}>
    {{ form_widget(edit_form) }}
    <p>
        <button type="submit">{{'document.edit.submit'| trans({},'CompanyBaseBundle')}}</button>
    </p>
</form>

<ul class="record_actions">
    <li>
        <a href="{{ path('document') }}">
            {{'document.edit.back'| trans({},'CompanyBaseBundle')}}
        </a>
    </li>
    <li>
        <form action="{{ path('document_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
            <button type="submit">{{'document.edit.delete'| trans({},'CompanyBaseBundle')}}</button>
        </form>
    </li>
</ul>
{% endblock %}
