{% extends 'AdminBundle:Admin:adminLayout.html.twig' %} {% set tabularData = report.getDataTabular() %} {% set barData = report.getDataBar() %} {% set pieData = report.getDataPie() %} {% block breadcrumb %} {{ backendHelpers.breadcrumb({ ("reportviewer.titles.reports"|trans) : (path(paths.home)), (report.getTitle()) : '' }) }} {% endblock %} {% block head %} {{ parent() }} {% if tabularData is not null%} {% endif %} {% endblock %} {% block js_files %} {{ parent() }} {% if tabularData is not null%} .script('{{ asset('bundles/reportviewer/js/datatables/js/jquery.dataTables.min.js') }}') {% endif %} {% if (barData is not null) or (pieData is not null) %} .script('{{ asset('bundles/reportviewer/js/highcharts/js/highcharts-all.js') }}') {% endif %} {% endblock %} {#{% block bottomScripts %}#} {% block js_document_ready %} {{ parent() }} {% if barData is not null %} {% include 'ReportViewerBundle:Report:_bar.html.twig' %} {% endif %} {% if pieData is not null %} {% include 'ReportViewerBundle:Report:_pie.html.twig' %} {% endif %} {% if tabularData is not null%} jQuery(function($) { $('#tabularData').DataTable({ paging: false, searching: false, autoWidth: false, info: false }); }); {% endif %} {% endblock %} {% block gridFilter %} {{ backendHelpers.gridFilter( filterDefinition, filterValues, path(paths.report,{'mode':'filter', 'service_alias':reportService.getAlias(), 'report_alias':report.getAlias() }), path(paths.report, {'service_alias':reportService.getAlias(), 'report_alias':report.getAlias() })) }} {% endblock %} {% block content %} {{ backendHelpers.pageTitle( report.getTitle() ) }} {% if (tabularData is not null) or (barData is not null) or (pieData is not null) %}