<div class="p5 display-flex align-items-start">
    <div>
        <button type="button" class="btn" onclick="showReportList();">
            <span>[{isys type="lang" ident="LC__UNIVERSAL__BACK"}]</span>
        </button>
    </div>

    <div class="ml20">
        <h2>[{$reportTitle}] <span class="text-neutral-400">[[{$listing.num}] [{isys type="lang" ident="LC__REPORT__MATCHES"}]]</span></h2>
        <p>[{$reportDescription}]</p>
    </div>
</div>

[{if is_array($listing.headers)}]
    <script type="text/javascript">
        idoit.Translate.set('LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__EMPTY_RESULTS', '[{isys type="lang" ident="LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__EMPTY_RESULTS"}]');
        idoit.Translate.set('LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__ERROR_DATA', '[{isys type="lang" ident="LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__ERROR_DATA"}]');
        idoit.Translate.set('LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__ERROR_URL', '[{isys type="lang" ident="LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__ERROR_URL"}]');
        idoit.Translate.set('LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__FILTER_LABEL', '[{isys type="lang" ident="LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__FILTER_LABEL"}]');
        idoit.Translate.set('LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__LOADING', '[{isys type="lang" ident="LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__LOADING"}]');
        idoit.Translate.set('LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__SEARCH_LABEL', '[{isys type="lang" ident="LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__SEARCH_LABEL"}]');
        idoit.Translate.set('LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__PAGINATEN_OF', '[{isys type="lang" ident="LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__PAGINATEN_OF"}]');
        idoit.Translate.set('LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__PAGINATEN_PAGES', '[{isys type="lang" ident="LC__CMDB__OBJECT_BROWSER__SCRIPT_JS__PAGINATEN_PAGES"}]');
        idoit.Translate.set('LC__UNIVERSAL__PAGER__FIRST_PAGE', '[{isys type="lang" ident="LC__UNIVERSAL__PAGER__FIRST_PAGE"}]');
        idoit.Translate.set('LC__UNIVERSAL__PAGER__PREVIOUS_PAGE', '[{isys type="lang" ident="LC__UNIVERSAL__PAGER__PREVIOUS_PAGE"}]');
        idoit.Translate.set('LC__UNIVERSAL__PAGER__NEXT_PAGE', '[{isys type="lang" ident="LC__UNIVERSAL__PAGER__NEXT_PAGE"}]');
        idoit.Translate.set('LC__UNIVERSAL__PAGER__LAST_PAGE', '[{isys type="lang" ident="LC__UNIVERSAL__PAGER__LAST_PAGE"}]');
    </script>

    [{if $listing.grouped}]
        [{include file="./listing_group.tpl"}]
    [{else}]
        [{include file="./listing.tpl"}]
    [{/if}]

[{elseif $listing.num eq 0}]
    <div class="p5">
        <p>[{isys type="lang" ident="LC__REPORT__EMPTY_RESULT"}]</p>
    </div>
[{else}]
    <div class="p5">
        <p>[{isys type="lang" ident="LC__REPORT__EXCEPTION_TRIGGERED"}]</p>
    </div>
[{/if}]
