deblan.tv/vendor/trinity/src/Trinity/Bundle/AdminBundle/Resources/views/BaseAdmin/indexTbody.html.twig

41 lines
1.1 KiB
Twig

<tbody>
{% for object in pager %}
{% if i18n is defined and i18n %}
{% set locale = object.setLocale(i18n_cultures[0]) %}
{% endif %}
<tr {% if rankable %}data-id="{{ object.id }}"{% endif %}>
{% if batch_actions %}
<td class="batch_td">
<!-- {{ form_widget(form_batch["objects"]) }} -->
<input type="checkbox" name="{{ form_batch.vars.full_name }}[objects][]" value="{{ object.getId }}" />
</td>
{% endif %}
{% for key, field in fields %}
<td class="cols_td">
{% set href = list_actions[highlighting] is defined and key == 0 ? path(route_prefix ~ highlighting, { id: object.id }) : false %}
{{ field_render(object, field.method, field.template, href) }}
</td>
{% endfor %}
{% if list_actions|length %}
<td class="actions_td" width="{{ list_actions|length * 20 }}">
{% for action, template in list_actions %}
{% include template %}
{% endfor%}
</td>
{% endif %}
</tr>
{% endfor %}
{% if not pager|length %}
<tr>
<td>
<p>{{ 'crud.list.empty'|trans({}, 'TrinityAdminBundle') }}</p>
</td>
</tr>
{% endif %}
</tbody>