Align FormTable row metadata forwarding with Datatables/StaticTables ones

This commit is contained in:
Stephen Abello
2021-09-29 14:51:58 +02:00
parent 4b8ef4f919
commit a35c80de57
2 changed files with 6 additions and 2 deletions

View File

@@ -462,7 +462,7 @@ try {
} }
break; break;
} }
$aTableRow['CSSClass'] = $sCSSRowClass; $aTableRow['@class'] = $sCSSRowClass;
$aTableRow['line'] = sprintf("%0{$sMaxLen}d", 1 + $iLine + $iRealSkippedLines); $aTableRow['line'] = sprintf("%0{$sMaxLen}d", 1 + $iLine + $iRealSkippedLines);
$aTableRow['status'] = $sStatus; $aTableRow['status'] = $sStatus;
$aTableRow['object'] = $sUrl; $aTableRow['object'] = $sUrl;

View File

@@ -1,7 +1,11 @@
{# @copyright Copyright (C) 2010-2021 Combodo SARL #} {# @copyright Copyright (C) 2010-2021 Combodo SARL #}
{# @license http://opensource.org/licenses/AGPL-3.0 #} {# @license http://opensource.org/licenses/AGPL-3.0 #}
<tr role="row" id="{{ oUIBlock.GetRef() }}_row_{{ oUIBlock.GetRowId() }}" {% for cellName,cellValue in oUIBlock.GetData() %} {% if cellName == 'CSSClass' %}class="{{ cellValue }}"{% endif %}{% endfor %}> <tr role="row" id="{{ oUIBlock.GetRef() }}_row_{{ oUIBlock.GetRowId() }}" {% for cellName,cellValue in oUIBlock.GetData() %}
{% if cellName == '@id' %}id="{{ cellValue }}" {% endif %}
{% if cellName == '@class' %} class="{{ cellValue }}"{% endif %}
{% if cellName == '@meta' %} {{ cellValue | raw}}{% endif %}{% endfor %}
>
{% for colName,column in oUIBlock.GetColumns() %} {% for colName,column in oUIBlock.GetColumns() %}
<td> <td>
{% set cellValueHtml = '' %} {% set cellValueHtml = '' %}