N°7383 Show data table even when there is no data after filtering (#695)

This commit is contained in:
Timmy38
2025-01-06 11:06:18 +01:00
committed by GitHub
parent 1225ee1e78
commit 1e674d7bdc

View File

@@ -23,25 +23,23 @@
{% set iTableCount = 0 %}
{% if aGroupingAreasData|length > 0 %}
{% for aAreaData in aGroupingAreasData %}
{% if aAreaData.iItemsCount > 0 %}
{% set iTableCount = iTableCount + 1 %}
<div class="panel panel-default">
<div class="panel-heading clearfix">
<h3 class="panel-title" style="float: left;">{{ aAreaData.sTitle }}</h3>
{% if bCanExport %}
<a href="{{ app.url_generator.generate('p_manage_brick_excel_export_start', {'sBrickId': sBrickId, 'sGroupingTab': sGroupingTab, 'sGroupingArea': aAreaData.sId})|raw }}"
id="btn_export_excel_for_{{ aAreaData.sId }}"
data-toggle="modal" data-target="#modal-for-all">
<span class="fas fa-download fa-lg" style="float: right;"
data-tooltip-content="{{ 'ExcelExporter:ExportMenu'|dict_s }}"></span>
</a>
{% endif %}
</div>
<div class="panel-body">
<table id="table-{{ aAreaData.sId }}" class="object-list table table-striped table-bordered responsive" width="100%"></table>
</div>
{% set iTableCount = iTableCount + 1 %}
<div class="panel panel-default">
<div class="panel-heading clearfix">
<h3 class="panel-title" style="float: left;">{{ aAreaData.sTitle }}</h3>
{% if bCanExport %}
<a href="{{ app.url_generator.generate('p_manage_brick_excel_export_start', {'sBrickId': sBrickId, 'sGroupingTab': sGroupingTab, 'sGroupingArea': aAreaData.sId})|raw }}"
id="btn_export_excel_for_{{ aAreaData.sId }}"
data-toggle="modal" data-target="#modal-for-all">
<span class="fas fa-download fa-lg" style="float: right;"
data-tooltip-content="{{ 'ExcelExporter:ExportMenu'|dict_s }}"></span>
</a>
{% endif %}
</div>
{% endif %}
<div class="panel-body">
<table id="table-{{ aAreaData.sId }}" class="object-list table table-striped table-bordered responsive" width="100%"></table>
</div>
</div>
{% endfor %}
{% endif %}