vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/base_list_inner_row.html.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. {% for field_description in admin.list.getElements() %}
  8.     {% if field_description.name == constant('Sonata\\AdminBundle\\Datagrid\\ListMapper::NAME_ACTIONS') and app.request.isXmlHttpRequest %}
  9.         {# NEXT_MAJOR: Remove this case in version 5 and recommend using the option `ajax_hidden` instead. #}
  10.         {# Action buttons disabled in ajax view! #}
  11.     {% elseif field_description.getOption('ajax_hidden') == true and app.request.isXmlHttpRequest %}
  12.         {# Disable fields with 'ajax_hidden' option set to true #}
  13.     {% else %}
  14.         {{ object|render_list_element(field_description) }}
  15.     {% endif %}
  16. {% endfor %}