{% extends 'base.html.twig' %} {% set titleName = "Collaborators" %} {% block title %} POWER DATA - {{titleName}} {% endblock %} {% block page %}{{titleName}}{% endblock %} {% block breadcrumb %} {% if titleName != "Home" %} {{titleName}} {% endif %} {% endblock %} {% block css %} {% endblock %} {% block content %}

DataTable with default features

{% for message in app.flashes('notice') %} {% endfor %} {% for message in app.flashes('error') %} {% endfor %} {% for user in users %} {% if user.id != app.user.id and user.roles[0] != "ROLE_CLIENT" %} {% endif %} {% endfor %}
ID Full Name Email Roles Status Action
{{ user.id }} {{ user.firstname }} {{ user.lastname }} {{ user.email }} {% if user.roles is not null %} {% for role in user.roles %} {% if role == 'ROLE_SUPER_ADMIN' %} {{ role }} {% elseif role == 'ROLE_ADMIN' %} {{ role }} {% elseif role == 'ROLE_USER' %} {{ role }} {% elseif role == 'ROLE_CLIENT' %} {{ role }} {% else %} {{ role }} {% endif %} {% endfor %} {% endif %} {% if user.status == 1 %} Enabled {% else %} Disabled {% endif %}
View Edit Delete
ID Full Name Email Roles Status Action
{% endblock %} {% block script %} {% endblock %}