Source of file twig__list_table.tpl.php
Size: 1,356 Bytes - Last Modified: 2023-11-16T22:56:03+01:00
/home/websites/teicee/packagist/site/phpdoc/conf/../vendor/teicee/make-bundle/src/Resources/skeleton/crud/twig__list_table.tpl.php
| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | {# <table id="itemlist" class="table table-striped table-hover tic-datatable"> #} <thead> <tr><?php foreach ($entity_fields as $field): ?> <th>{{ '<?= $trans_base ?>label.<?= strtolower($field['fieldName']) ?>'|trans }}</th> <?php endforeach ?> <th class="no-sort"> </th> </tr> </thead>{% if not nofooter|default(false) %} <tfoot> <tr><?php foreach ($entity_fields as $field): ?> <th>{{ '<?= $trans_base ?>label.<?= strtolower($field['fieldName']) ?>'|trans }}</th> <?php endforeach ?> <th class="tic-col-actions"> {{ path('<?= $route_name ?>create')|bsAction('new', 'btn.create') }} </th> </tr> </tfoot>{% endif %} <tbody> {% for item in items %} <tr><?php foreach ($entity_fields as $field): ?> <td>{{ <?= $ticHelper->getEntityFieldPrintCode("item", $field) ?> }}</td> <?php endforeach ?> <td class="tic-col-actions"> {{ path('<?= $route_name ?>show', {'<?= $entity_key ?>': item.<?= $entity_key ?>})|bsAction('show', 'btn.show', 'info') }} {{ path('<?= $route_name ?>update', {'<?= $entity_key ?>': item.<?= $entity_key ?>})|bsAction('edit', 'btn.update') }} </td> </tr> {% else %} <tr class="no-records"><td colspan="<?= (count($entity_fields) + 1) ?>" class="text-center">{{ 'alert.action.no_records'|trans }}</td> </tr> {% endfor %} </tbody>{# </table> #} |