src/Company/BaseBundle/Resources/views/Index/all_documents.html.twig
author cavaliet
Mon, 07 Jul 2014 17:23:47 +0200
changeset 122 d672f7dd74dc
parent 16 89a003e5b108
permissions -rwxr-xr-x
Added tag V00.17 for changeset ada5f3d8b5b4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
{# display all documents #}
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
{% extends 'CompanyBaseBundle:Default:index.html.twig' %}
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
{% block content %}
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
<div id="content" class="span-24 last">
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
  <div id="inner_content">
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
    <table>
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    <tr><th>ID</th><th>TITLE</th><th>DESC</th><th>lien</th></tr>
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    {% for doc in documents %}
16
89a003e5b108 Update routing and templates for tag list.
cavaliet
parents: 9
diff changeset
    10
    <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>
9
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    {% endfor %}
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    </table>
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
    <p><a href="{{ url('document_new') }}">Add another document</a></p>
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
  </div>
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
</div>
41a9fa70a47b continue to implement example app
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
{% endblock %}