Update routing and templates for tag list.
--- a/src/Company/BaseBundle/Resources/config/routing.yml Fri Oct 21 17:10:54 2011 +0200
+++ b/src/Company/BaseBundle/Resources/config/routing.yml Wed Oct 26 15:39:04 2011 +0200
@@ -8,7 +8,7 @@
company_other:
pattern: /other
defaults: { _controller: CompanyBaseBundle:Index:other }
-doctag:
+document_with_tags:
pattern: /doctag/{idDoc}
defaults: { _controller: CompanyBaseBundle:Index:documentWithTag }
all_tags:
--- a/src/Company/BaseBundle/Resources/views/Index/all_documents.html.twig Fri Oct 21 17:10:54 2011 +0200
+++ b/src/Company/BaseBundle/Resources/views/Index/all_documents.html.twig Wed Oct 26 15:39:04 2011 +0200
@@ -7,7 +7,7 @@
<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('doctag', { 'idDoc': doc.id }) }}">voir les tags</a></td></tr>
+ <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>
--- a/src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig Fri Oct 21 17:10:54 2011 +0200
+++ b/src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig Wed Oct 26 15:39:04 2011 +0200
@@ -22,7 +22,7 @@
<p><b>Description</b><br/>{{doc.description}}</p>
</div>
<div class="right_sheet">
- <p style="float:right;"><a href="{{ url('doctag', { 'idDoc': (doc.id-1) }) }}"> < </a> - <a href="{{ url('doctag', { 'idDoc': (doc.id+1) }) }}"> > </a></p>
+ <p style="float:right;"><a href="{{ url('document_with_tags', { 'idDoc': (doc.id-1) }) }}"> < </a> - <a href="{{ url('document_with_tags', { 'idDoc': (doc.id+1) }) }}"> > </a></p>
{% render "WikiTagBundle:WikiTag:documentTags" with {'id_doc': doc.id} %}
{#
<div id="tags_commands" style="float:left;width: 100%" >