Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- easy_admin:
- entities:
- Users:
- list:
- actions:
- - { name: 'refresh', label: 'Refresh', icon: 'sync' }
- {# /templates/bundles/EasyAdminBundle/default/list.html.twig #}
- {% extends '@!EasyAdmin/default/list.html.twig' %}
- {% block global_actions %}
- {{ parent() }}
- {# Add your code here, for example a button on the 'Users' list #}
- {% if _entity_config.name == "Users" %}
- <div class="button-action">
- <a class="btn btn-primary" href="#">Refresh</a>
- </div>
- {% endif %}
- {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement