daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. easy_admin:
  2.   entities:
  3.     Users:    
  4.       list:
  5.         actions:
  6.           - { name: 'refresh', label: 'Refresh', icon: 'sync' }
  7.      
  8. {# /templates/bundles/EasyAdminBundle/default/list.html.twig #}
  9.  
  10. {% extends '@!EasyAdmin/default/list.html.twig' %}
  11.  
  12. {% block global_actions %}
  13.     {{ parent() }}
  14.  
  15.     {# Add your code here, for example a button on the 'Users' list #}
  16.     {% if _entity_config.name == "Users" %}
  17.         <div class="button-action">
  18.             <a class="btn btn-primary" href="#">Refresh</a>
  19.         </div>
  20.     {% endif %}
  21. {% endblock %}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top