{% extends '/Admin/list.html.twig' %} {% block model_create_icon %}user-plus{% endblock %} {% block list_column_headers %} Name Email Pavilions {% endblock %} {% block list_row %} {% if item.hasRole('ROLE_ADMIN') %}{% else %}{% endif %} {{ item.name }} {{ item.email }} {{item.pavilions|join(', ')}} {% endblock %} {% block delete_button %} {% if is_granted('ROLE_SUPER_ADMIN') and item.id != app.user.id %} {{ parent() }} {% endif %} {% endblock %} {% block edit_button %} {% if is_granted('ROLE_SUPER_ADMIN') or item.id == app.user.id %} {{ parent() }} {% endif %} {% endblock %} {% block create_button %} {% if is_granted('ROLE_SUPER_ADMIN') %} {{ parent() }} {% endif %} {% endblock %} {% block extra_actions %} {% if is_granted('ROLE_SUPER_ADMIN') or item.id == app.user.id %} Send Welcome Email {% endif %} {% endblock %}