You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 line
1.1KB

  1. {% extends '@EasyAdmin/default/list.html.twig' %}
  2. {% block content_title %}
  3. {{ parent() }}
  4. {% if 'action' in app.request.uri and app.request.get('action') == "listChildren" %}
  5. <strong>: {{ entity.title }}</strong>
  6. {% endif %}
  7. {% endblock %}
  8. {% block new_action %}
  9. <div class="button-action">
  10. <a class="{{ _action.css_class|default('') }}"
  11. href="{{ path('easyadmin', _request_parameters|merge({ action: _action.name })) }}"
  12. target="{{ _action.target }}">
  13. {% if _action.icon %}<i class="fa fa-fw fa-{{ _action.icon }}"></i>{% endif %}
  14. {{ _action.label is defined and not _action.label is empty ? _action.label|trans(_trans_parameters) }}
  15. </a>
  16. {% if _entity_config['list']['edit_position'] is defined %}
  17. <a class="{{ _action.css_class|default('') }}"
  18. href="{{ path('easyadmin', _request_parameters|merge({ action: 'sort' })) }}"
  19. target="{{ _action.target }}">
  20. Modifier position
  21. </a>
  22. {% endif %}
  23. </div>
  24. {% endblock %}