src/Company/BaseBundle/Resources/views/Document/show.html.twig
author ymh <ymh.work@gmail.com>
Sun, 06 Nov 2011 23:44:37 +0100
changeset 27 1df556b2c0f9
parent 5 d8cb31543a3f
permissions -rwxr-xr-x
Correct memory problem

{% 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 %}