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

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

<table class="record_properties">
    <tbody>
        <tr>
            <th>{{'document.model.col.id'| trans({},'CompanyBaseBundle')}}Id</th>
            <td>{{ entity.id }}</td>
        </tr>
        <tr>
            <th>{{'document.model.col.title'| trans({},'CompanyBaseBundle')}}Title</th>
            <td>{{ entity.title }}</td>
        </tr>
        <tr>
            <th>{{'document.model.col.description'| trans({},'CompanyBaseBundle')}}Description</th>
            <td>{{ entity.description }}</td>
        </tr>
    </tbody>
</table>

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