base_list_inner_row.html.twig 682 B

1234567891011121314151617181920
  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.elements %}
  8. {% if field_description.name == '_action' and app.request.isXmlHttpRequest %}
  9. {# Action buttons disabled in ajax view! #}
  10. {% elseif field_description.getOption('ajax_hidden') == true and app.request.isXmlHttpRequest %}
  11. {# Disable fields with 'ajax_hidden' option set to true #}
  12. {% else %}
  13. {{ object|render_list_element(field_description) }}
  14. {% endif %}
  15. {% endfor %}