src/Company/BaseBundle/Resources/views/Document/index.html.twig
author cavaliet
Wed, 26 Oct 2011 16:01:33 +0200
changeset 17 a16b5806e3f0
parent 5 d8cb31543a3f
permissions -rwxr-xr-x
Little modification to enable routing from tag list.

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

{% block content %}
<h1>{{'document.index.list' | trans({},'CompanyBaseBundle') }}{# Documents list #}</h1>

<table class="records_list">
    <thead>
        <tr>
            <th>{{'document.model.col.id' | trans({},'CompanyBaseBundle') }}</th>
            <th>{{'document.model.col.title' | trans({},'CompanyBaseBundle') }}</th>
            <th>{{'document.model.col.description' | trans({},'CompanyBaseBundle') }}</th>
            <th>{{'document.index.actions' | trans({},'CompanyBaseBundle') }}</th>
        </tr>
    </thead>
    <tbody>
    {% for entity in entities %}
        <tr>
            <td><a href="{{ path('document_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
            <td>{{ entity.title }}</td>
            <td>{{ entity.description }}</td>
            <td>
                <ul>
                    <li>
                        <a href="{{ path('document_show', { 'id': entity.id }) }}">show</a>
                    </li>
                    <li>
                        <a href="{{ path('document_edit', { 'id': entity.id }) }}">edit</a>
                    </li>
                </ul>
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>

<ul>
    <li>
        <a href="{{ path('document_new') }}">
            Create a new entry
        </a>
    </li>
</ul>
{% endblock %}