{% extends 'base.html.twig' %} {% set titleName = "Shippers" %} {% block title %} POWER DATA | {{titleName}} {% endblock %} {% block page %}{{titleName}}{% endblock %} {% block breadcrumb %} {% if titleName != "Home" %} {{titleName}} {% endif %} {% endblock %} {% block css %} {% endblock %} {% block content %}
{% for message in app.flashes('success') %} {% endfor %} {% for message in app.flashes('error') %} {% endfor %}

DataTable with default features

{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_SHIPPERS_MANAGER') %} {% endif %}
{% for shipper in shippers %} {% if shipper.isDeleted == false %} {% endif %} {% endfor %}
ID Type Name Status Action
{{ shipper.id }} {{ shipper.type }} {{ shipper.name }} {{ shipper.status ? 'Enabled' : 'Disabled' }} {# View #} {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_SHIPPERS_MANAGER') %} {# Delete #} {% endif %}
ID Type Name Status Action
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_SHIPPERS_MANAGER') %} {% endif %} {% endblock %} {% block script %} {% endblock %}