{# display all documents #}
{% extends 'CompanyBaseBundle:Default:index.html.twig' %}

{% block content %}
<div id="content" class="span-24 last">
  <div id="inner_content">
    <table>
    <tr><th>ID</th><th>TITLE</th><th>DESC</th><th>lien</th></tr>
    {% for doc in documents %}
    <tr><td>{{ doc.id }}</td><td>{{ doc.title }}</td><td>{{ doc.description }}</td><td><a href="{{ url('document_with_tags', { 'idDoc': doc.id }) }}">voir les tags</a></td></tr>
    {% endfor %}
    </table>
    <p><a href="{{ url('document_new') }}">Add another document</a></p>
  </div>
</div>
{% endblock %}