| author | cavaliet |
| Wed, 26 Oct 2011 16:01:33 +0200 | |
| changeset 17 | a16b5806e3f0 |
| parent 5 | d8cb31543a3f |
| permissions | -rwxr-xr-x |
| 2 | 1 |
{% extends 'CompanyBaseBundle::layout.html.twig' %} |
2 |
||
3 |
{% block content %} |
|
|
5
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
4 |
<h1>{{'document.index.list' | trans({},'CompanyBaseBundle') }}{# Documents list #}</h1> |
| 2 | 5 |
|
6 |
<table class="records_list"> |
|
7 |
<thead> |
|
8 |
<tr> |
|
|
5
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
9 |
<th>{{'document.model.col.id' | trans({},'CompanyBaseBundle') }}</th> |
|
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
10 |
<th>{{'document.model.col.title' | trans({},'CompanyBaseBundle') }}</th> |
|
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
11 |
<th>{{'document.model.col.description' | trans({},'CompanyBaseBundle') }}</th> |
|
d8cb31543a3f
translation and override FOSUserBundle layout
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
12 |
<th>{{'document.index.actions' | trans({},'CompanyBaseBundle') }}</th> |
| 2 | 13 |
</tr> |
14 |
</thead> |
|
15 |
<tbody> |
|
16 |
{% for entity in entities %} |
|
17 |
<tr> |
|
18 |
<td><a href="{{ path('document_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td> |
|
19 |
<td>{{ entity.title }}</td> |
|
20 |
<td>{{ entity.description }}</td> |
|
21 |
<td> |
|
22 |
<ul> |
|
23 |
<li> |
|
24 |
<a href="{{ path('document_show', { 'id': entity.id }) }}">show</a> |
|
25 |
</li> |
|
26 |
<li> |
|
27 |
<a href="{{ path('document_edit', { 'id': entity.id }) }}">edit</a> |
|
28 |
</li> |
|
29 |
</ul> |
|
30 |
</td> |
|
31 |
</tr> |
|
32 |
{% endfor %} |
|
33 |
</tbody> |
|
34 |
</table> |
|
35 |
||
36 |
<ul> |
|
37 |
<li> |
|
38 |
<a href="{{ path('document_new') }}"> |
|
39 |
Create a new entry |
|
40 |
</a> |
|
41 |
</li> |
|
42 |
</ul> |
|
43 |
{% endblock %} |