N°2847 - Datatables Fix external keys search

This commit is contained in:
Eric
2020-11-12 15:52:52 +01:00
parent 0a02c10287
commit 4c8a8fc510
15 changed files with 209 additions and 29 deletions

View File

@@ -13,23 +13,8 @@
</tr>
</thead>
<tbody>
{% for rowId,data in oUIBlock.GetData() %}
<tr role="row" id="{{ oUIBlock.GetRef() }}_row_{{ rowId }}">
{% for name,column in columns %}
<td>
{% set cellValueHtml = '' %}
{% for cellName,cellValue in data %}
{% if cellName == name %}
{% set cellValueHtml = cellValue %}
{% endif %}
{% endfor %}
{% if cellValueHtml is empty %}
{% set cellValueHtml = '&nbsp;' %}
{% endif %}
{{ cellValueHtml|raw }}
</td>
{% endfor %}
</tr>
{% for oSubBlock in oUIBlock.GetRows() %}
{{ render_block(oSubBlock, {aPage: aPage}) }}
{% endfor %}
</tbody>
</table>