1
1
<?= $ helper ->getHeadPrintCode ($ entity_class_name .' index ' ); ?>
2
2
3
- {% block stylesheets %}
4
- <style>
5
- .example-wrapper { margin: 1em auto; max-width: 1018px; width: 95%; }
6
- .example-wrapper table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
7
- .example-wrapper thead th { border-bottom: 1px solid #999; padding: 2px 4px; text-align: left; }
8
- .example-wrapper tbody tr:nth-child(odd) { background-color: #F5F5F5; }
9
- .example-wrapper tbody td { padding: 2px 4px; }
10
- .example-actions form, .example-actions a { display: inline-block; margin: 0 2px; }
11
- </style>
12
- {% endblock %}
13
-
14
3
{% block body %}
15
- <div class="example-wrapper" >
16
- <h1> <?= $ entity_class_name ?> index</h1>
17
- <table>
18
- <thead>
19
- <tr>
4
+ <h1> <?= $ entity_class_name ?> index</h1 >
5
+
6
+ <table class="table" >
7
+ <thead>
8
+ <tr>
20
9
<?php foreach ($ entity_fields as $ field ): ?>
21
- <th><?= ucfirst ($ field ['fieldName ' ]) ?> </th>
10
+ <th><?= ucfirst ($ field ['fieldName ' ]) ?> </th>
22
11
<?php endforeach ; ?>
23
- <th>actions</th>
24
- </tr>
25
- </thead>
26
- <tbody>
27
- {% for <?= $ entity_var_singular ?> in <?= $ entity_var_plural ?> %}
28
- <tr>
12
+ <th>actions</th>
13
+ </tr>
14
+ </thead>
15
+ <tbody>
16
+ {% for <?= $ entity_var_singular ?> in <?= $ entity_var_plural ?> %}
17
+ <tr>
29
18
<?php foreach ($ entity_fields as $ field ): ?>
30
- <td>{{ <?= $ helper ->getEntityFieldPrintCode ($ entity_var_singular , $ field ) ?> }}</td>
19
+ <td>{{ <?= $ helper ->getEntityFieldPrintCode ($ entity_var_singular , $ field ) ?> }}</td>
31
20
<?php endforeach ; ?>
32
- <td>
33
- <a href="{{ path('<?= $ route_name ?> _show', {'<?= $ entity_identifier ?> ': <?= $ entity_var_singular ?> .<?= $ entity_identifier ?> }) }}">show</a>
34
- <a href="{{ path('<?= $ route_name ?> _edit', {'<?= $ entity_identifier ?> ': <?= $ entity_var_singular ?> .<?= $ entity_identifier ?> }) }}">edit</a>
35
- </td>
36
- </tr>
37
- {% else %}
38
- <tr>
39
- <td colspan="<?= (count ($ entity_fields ) + 1 ) ?> ">no records found</td>
40
- </tr>
41
- {% endfor %}
42
- </tbody>
43
- </table>
21
+ <td>
22
+ <a href="{{ path('<?= $ route_name ?> _show', {'<?= $ entity_identifier ?> ': <?= $ entity_var_singular ?> .<?= $ entity_identifier ?> }) }}">show</a>
23
+ <a href="{{ path('<?= $ route_name ?> _edit', {'<?= $ entity_identifier ?> ': <?= $ entity_var_singular ?> .<?= $ entity_identifier ?> }) }}">edit</a>
24
+ </td>
25
+ </tr>
26
+ {% else %}
27
+ <tr>
28
+ <td colspan="<?= (count ($ entity_fields ) + 1 ) ?> ">no records found</td>
29
+ </tr>
30
+ {% endfor %}
31
+ </tbody>
32
+ </table>
44
33
45
- <div class="example-actions">
46
- <a href="{{ path('<?= $ route_name ?> _new') }}">Create new</a>
47
- </div>
48
- </div>
34
+ <a href="{{ path('<?= $ route_name ?> _new') }}">Create new</a>
49
35
{% endblock %}
0 commit comments